-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix #19110: Implement job to copy mis-placed translation images #21378
base: develop
Are you sure you want to change the base?
Conversation
Hi @vojtechjelinek, @DubeySandeep, @kevintab95, PTAL at this PR, it modifies files in jobs or platform folders. |
Hi @U8NWXD please assign the required reviewer(s) for this PR. Thanks! |
The as_stdout() and as_stderr() functions were annotated as only accepting str and int arguments, but they are designed (and frequently used) to process arbitrary input types. Therefore, they should actually accept inputs of type Any.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving a review hold until this is run on the server.
/cc @Nik-09
Unassigning @kevintab95 since the review is done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @U8NWXD, LGTM!
Assigning @Vir-8 for code owner reviews. Thanks! |
Unassigning @Vir-8 since they have already approved the PR. |
@kevintab95 the job has been submitted for testing |
Sorry @U8NWXD, I accidentally clicked the close button |
I will wait for the CI to pass completely, otherwise, the build for the release candidate will fail, after this, I will start the job run. Thanks. |
@Nik-09 FYI the CI checks have now passed. Thanks for handling the job testing! |
Hi @U8NWXD the audit job failed. id: "2024-12-20_20_45_26-4950297230698149536" |
As a note for the future, here are the logs with the formatting fixed:
|
1 similar comment
Hi @U8NWXD, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 4 days, it will be automatically closed so that others can take up the issue. |
Overview
exploration/<exploration_id>/assets/image/
toexploration_suggestions/<exploration_id>/assets/image/
in GCS.Essential Checklist
Please follow the instructions for making a code change.
Testing doc (for PRs with Beam jobs that modify production server data)
Proof that changes are correct
I manually verified that before #20188 was merged, translation suggestion images resided solely under
exploration_suggestions/
in GCS. Therefore, I reproduced this state in a local development server as follows:Log in as an admin user and grant yourself curriculum manager, release coordinator, and translation admin roles.
From the admin page, generate new structures.
Go to
/create/25
to edit one of the newly-generated explorations. Add an image to the first card. Save and publish changes.Log in as a non-admin user.
Go to the contributor dashboard and submit a translation suggestion for the card you added the image to ("Finding the place value of a number"). Make sure you copy the image in your translation.
In a terminal, open a shell to the
oppia-dev-server
Docker container and start an interactive Python session:View the images currently present:
Navigate to the contributor dashboard as the admin user and confirm that you can see the image:
onNewCommitPreMut.mov
Delete the images under
exploration_suggestions/25/assets
:Now we have a GCS state that the job can fix. On the contributor dashboard page, the admin user should see the problem described in #19110. Here is a screen recording showing how we can observe this problem, run the job introduced in this PR, and see that the problem has been resolved.
onNewCommitPostMut.mov
Further, we can use the Python shell to confirm that the image has been copied:
PR Pointers