oppia-android icon indicating copy to clipboard operation
oppia-android copied to clipboard

[BUG]: What is Subtraction chapter: It is missing a box to answer a question when playing in Portuguese language

Open cam-pinheiro opened this issue 10 months ago • 9 comments

Describe the bug

In the chapter "What is a Subtraction", there is a question that does not have a box to write the answer, but it is possible keep playing, when the user clicks on the continue button. Furthermore, if the user clicks on the back arrow, the user is redirected to the previosly page and an error message is shown.

Steps To Reproduce

Note: I'm playing the lessons in portuguese

  1. Change to Portuguese Language
  2. Go to Addition and Subtraction Lesson
  3. Go to What is Subtraction Chapter
  4. Start play the Chapter
  5. See the question that the answer box is missing
  6. Click on the continue button
  7. Click on the back arrow
  8. See the error message

Expected Behavior

It is expected to view the answer box and keep playing by clicking on the continue button only after answer this question.

Screenshots/Videos

https://github.com/user-attachments/assets/e6b654b8-2830-4f83-9df5-4892042f6015

What device/emulator are you using?

OPPPO A79 5G

Which Android version is your device/emulator running?

Android 14

Which version of the Oppia Android app are you using?

0.14-beta-17f2ef3044

Additional Context

I'm testing in Portuguese language.

cam-pinheiro avatar Feb 11 '25 13:02 cam-pinheiro

Successfully reproduced the bug, will look into this.

pr1te3h avatar Feb 15 '25 16:02 pr1te3h

This is an interesting one:

The English lesson is correct, and works the same way as web.

https://github.com/user-attachments/assets/e9c61623-0911-4b6c-ac72-e7d1925262ec

The Portugues version is not correct. The card contains additional text and a question that are not in the English, Spanish, Hinglish and Arabic versions, as I have verified on web.

https://github.com/user-attachments/assets/fd09cd78-c10b-4c0e-af01-aa794cdda911

This is a content issue, cc @seanlip.

Also, web does not have a Portugues version of this lesson:

Image

adhiamboperes avatar Apr 24 '25 04:04 adhiamboperes

Thanks for debugging @adhiamboperes. I just checked the lesson creator interface on Web at https://www.oppia.org/create/W0xq3jW5GzDF#/translation/Addition%20vs%20Subtraction and the Portuguese content does not match the one shown on Android.

For reference, here is what the Portuguese translation looks like on Web. AFAIK the content below hasn't been modified since September 2024 (or earlier), so I am wondering, could Android be downloading an old version of the lesson? The current version of the lesson is 868, in case that's useful for debugging.

Image

seanlip avatar Apr 24 '25 10:04 seanlip

Thanks @seanlip. I have logged the exploration version correctly as 868. This helps direct where else to check, likely the download script.

adhiamboperes avatar Apr 24 '25 12:04 adhiamboperes

I have filed a content issue https://github.com/oppia/lessons-team/issues/1831. @seanlip, can I tag a specific person to look at this?

adhiamboperes avatar May 27 '25 16:05 adhiamboperes

@adhiamboperes I am a bit confused. Is this a Web issue or an Android issue?

The lesson team can only make fixes on the Web platform. Is this issue reproducible on the Web platform (have you checked the exploration there)? If not then it's a problem with Android and the lesson creation team can't do anything about it, so the issue you filed for them might not be helpful.

seanlip avatar May 28 '25 19:05 seanlip

@seanlip, I checked the create view per the link you shared above. The lesson in the creator dashboard has the correct content.

I also logged the version of the exploration we have on Android, and it indicates ** 868** which is what we expect. However, the Portuguese content contains the error in this bug. Image

It seems that something broke during asset downloads.

Assigning to @BenHenning.

adhiamboperes avatar May 29 '25 03:05 adhiamboperes

I've reviewed how translations are handled in the asset download script and confirmed that translation versions are not managed there. This means the incorrect version of the Portuguese lesson was not caused by the asset download pipeline.

I also checked the Creator Dashboard. While translations are visible, I couldn’t find where they are stored. I was able to access edit mode for the English version of the lesson, but not for the pt-BR translation. I don’t intend to make any changes; I’m just trying to understand how the translation system works.

Additionally, I could view the changelog for the English version, but not for its translations.

When an exploration is updated and published, is there a specific process for handling its translations? Also, where can I view the raw translations for the exploration? cc @seanlip.

adhiamboperes avatar Jun 04 '25 03:06 adhiamboperes

I’ve downloaded the assets, and the version I have now is correct. It looks like the version that was originally bundled with the release was either outdated or the translations changed sometime between March 12 and June 4. I haven’t found any clear regressions in either the web controller or the Android download script to explain this.

I am otherwise happy to close this issue @seanlip. Or wait for re-test to close.

Image

adhiamboperes avatar Jun 05 '25 07:06 adhiamboperes

@BenHenning and I discussed this -- let's close it, since the current instance seems to be fixed and it's going to be hard to repro and find the root cause of the original issue. But if it happens again feel free to reopen this or file a new issue, so we know it's a recurring problem. Thanks!

seanlip avatar Oct 01 '25 03:10 seanlip