oppia
oppia copied to clipboard
Invalid translation counts in the ExplorationOpportunityModel
Steps to reproduce
- Steps to reproduce(in dev server)
- Submit translations for all cards of “Finding the value of a number” lesson
- Accept all translation suggestions for that lesson
- Change the second card of the lesson. Change the interaction to multiple choice and add three choices.
- Add one correct interaction
- Add two hints
- Publish the lesson
- Translate all the available cards for the lesson “Finding the value of a number” except one hint.
- Accept all the submitted cards
- Now go back to the lesson and revert the version back to the 2nd version of the lesson.
- Now go back to the CD “Translate Text” tab.
- You will see all the cards of the lesson again to translate.
- Add translations to them
- Now try to accept those translations
- You will get the error for invalid translations count.
This might be happening since we do not create new version of EntityTranslationModel when we reverting an exploration.
This needs to be fixed because, if not, translators will occasionally run into this error and it will block all translation progress
Related: https://github.com/oppia/oppia/issues/20033
Hello @chris7716, is this reproducible in local serve.
Hello @chris7716 , successfully reproduced on the local machine. I also found out that the modal to mark translation as stale was only popping up when we were updating an existing content with previous translation and not when we delete any existing content.
Also, is it the same issue for which you were writing a regeneration job.
Here's my analysis of this issue for future reference: https://gist.github.com/U8NWXD/628433fd22d5def7fe07f61e31c25169
@masterboy376 Could you create a debugging doc for this issue and fill it with everything you investigated/attempted so far? This will help the CD team leads be better informed on your progress for this issue, and it will allow others in the team to make suggestions and pose questions to help you when you get stuck.
To create the debugging doc, follow the instructions at https://github.com/oppia/oppia/wiki/Debugging-Docs
Actually, forget my last comment. I didn't see the PR on the issue thread by mistake.
Fixed by #20320