Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates or creates exploration voice artists link model during exploration update #20075

Merged
merged 115 commits into from
Apr 20, 2024

Conversation

Nik-09
Copy link
Member

@Nik-09 Nik-09 commented Mar 28, 2024

Overview

The method updates the voice artist link model whenever voiceover-related changes are made in an exploration.

Essential Checklist

  • The PR title starts with "Fix #bugnum: " or "Fix part of #bugnum: ...", followed by a short, clear summary of the changes.
  • I have followed the instructions for making a code change.
  • I have assigned the correct reviewers to this PR (or will leave a comment with the phrase "@{{reviewer_username}} PTAL" if I don't have permissions to assign reviewers directly).
  • The linter/Karma presubmit checks pass on my local machine, and my PR follows the coding style guide).
  • "Allow edits from maintainers" is checked. (See here for instructions on how to enable it.)

Proof that changes are correct

The video shows after adding voiceovers in Bangla language the ExplorationVoiceArtistsLinkModel automatically got updated, without explicitly running the MR job.

update_exp_voice_artist_link.mp4

Proof of changes on desktop with slow/throttled network

Proof of changes on mobile phone

Proof of changes in Arabic language

PR Pointers

@@ -2079,6 2080,9 @@ def compute_models_to_put_when_saving_new_exp_version(
)
)

voiceover_services.update_exploration_voice_artist_link_model(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method updates the exploration voice artists link model data for an exploration after the MR jobs have been triggered. This ensures the model always be consistent with the latest exploration data even after successful run of MR job.

representing the latest version.
"""

if not feature_flag_services.is_feature_flag_enabled(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature flag needs to be truned on after the job has successfully ran in prod servers.

Adding @seanlip for visibility. (I am updating the instruction doc for the beam job regarding this feature flag)

return

is_voiceover_changes_made: bool = False
for change in change_list:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checks if any voiceover related changes are made or not.

@Nik-09
Copy link
Member Author

Nik-09 commented Apr 9, 2024

Hi @vojtechjelinek, @BenHenning PTAL at this PR once you are free.
Thank you

Copy link
Member

@lkbhitesh07 lkbhitesh07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Nik-09, Just a minor nit, otherwise LGTM


Args:
user_id: str. The committer ID for the given change list.
change_list: list(ExplorationChange). A list of exploration chnage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
change_list: list(ExplorationChange). A list of exploration chnage
change_list: list(ExplorationChange). A list of exploration change

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@lkbhitesh07 lkbhitesh07 assigned Nik-09 and unassigned lkbhitesh07 Apr 10, 2024
@Nik-09 Nik-09 removed their assignment Apr 10, 2024
Copy link
Member Author

@Nik-09 Nik-09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @vojtechjelinek and @BenHenning a frindly ping to please review the PR once you are free.
Thank you

Copy link
Member

@vojtechjelinek vojtechjelinek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link

oppiabot bot commented Apr 13, 2024

Unassigning @vojtechjelinek since they have already approved the PR.

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Nik-09! Apologies for the delay--just had one comment otherwise the PR LGTM.

core/feature_flag_list.py Outdated Show resolved Hide resolved
@BenHenning BenHenning assigned Nik-09 and unassigned BenHenning Apr 16, 2024
Copy link
Member Author

@Nik-09 Nik-09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @BenHenning for the suggestion, I have updated the code. PTAL once you are free.

@Nik-09 Nik-09 assigned BenHenning and unassigned Nik-09 Apr 17, 2024
Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Nik-09! LGTM.

@BenHenning BenHenning assigned Nik-09 and unassigned BenHenning Apr 19, 2024
@oppiabot oppiabot bot added the PR: LGTM label Apr 19, 2024
Copy link

oppiabot bot commented Apr 19, 2024

Hi @Nik-09, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to merge this PR once the CI checks pass and you're happy with it. Thanks!

@seanlip seanlip added this pull request to the merge queue Apr 20, 2024
Merged via the queue into oppia:develop with commit bcbdf81 Apr 20, 2024
78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants