Page MenuHomePhabricator

Translation suggestion loading forever when a machine translation service fails
Closed, ResolvedPublicBUG REPORT

Description

On the mobile editor of Section Translation, the suggested translaiton card remains loading indefinitely when the translation service fails. This has been noticed for Meitei/Manipuri which is one of the languages for which Google Translate announced its support (T308248) but it is not working yet (T314557). However, this can be an opportunity to make the integration more reliable and avoid similar issues when the translation services fail for different reasons (e.g., server down, network glitch, etc.).

Steps to replicate the issue (include links if applicable):

What happens?:
After choosing an article to start translating, the interface begins to load endlessly as shown in the screenshot below.

image.png (2×1 px, 635 KB)

What should have happened instead?:

This ticket proposes to:

  • Communicate the issue explicitly.
  • Provide relevant actions as follow-ups for the user to either try again or select a different option (MT services, or start from the source/scratch)

Design details

Mobile - Proposed card error.png (568×320 px, 30 KB)

Event Timeline

Meitei/Manipuri is one of the languages for which Google Translate announced its support (T308248) but it is not working yet (T314557). So the machine translation is not expected to work right now. In any case, the infinite loading of the MT card is not the best way for our tool to respond to a failing MT service, and we can use this ticket to provide a better handling of these situations. For example, we could show a message to make the issue explicit ("Not available right now") and provide some follow-up actions (retry, and select another option).

Pginer-WMF renamed this task from A lag in loading the Section translation test instance to start translating articles to Manipuri to Translation suggestion loading forever when a machine translaiton service fails.Sep 1 2022, 10:17 AM
Pginer-WMF renamed this task from Translation suggestion loading forever when a machine translaiton service fails to Translation suggestion loading forever when a machine translation service fails.
Pginer-WMF triaged this task as Medium priority.
Pginer-WMF added a project: CX-mobile.
Pginer-WMF updated the task description. (Show Details)
Wangombe changed the task status from Open to In Progress.Sep 29 2022, 6:55 AM
Wangombe claimed this task.
Wangombe moved this task from Incoming to In Development on the Design board.

Note that the translation service used in the example is working now. So reproducing the case of an MT service failing may be more complex now (e.g., you can turn off your internet connection)

Change 839503 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/ContentTranslation@master] SX: Show error message and options to retry when MT fails

https://gerrit.wikimedia.org/r/839503

Change 839503 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Show error message and options to retry when MT fails

https://gerrit.wikimedia.org/r/839503

Change 842408 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/ContentTranslation@master] SX: RetryMtCard shows up alongside a proposed translation

https://gerrit.wikimedia.org/r/842408

Change 842408 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: RetryMtCard shows up alongside a proposed translation

https://gerrit.wikimedia.org/r/842408

Change 843486 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/ContentTranslation@master] Add Retry MT snapshot and test file.

https://gerrit.wikimedia.org/r/843486

Change 843486 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Add Retry MT snapshot and test file.

https://gerrit.wikimedia.org/r/843486

Testing Status: QA PASS

Able to observe Suggestions with Manipuri language ( using Google Translation) :

Change 850987 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20221031

https://gerrit.wikimedia.org/r/850987

Change 850987 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20221031

https://gerrit.wikimedia.org/r/850987