Page MenuHomePhabricator

SX: Unable to continue draft translation on some occasions
Closed, ResolvedPublicBUG REPORT

Description

Sometimes, for yet unknown reasons, inside the translation corpora there may be user translated segments with ids that do not exist in the corresponding source subsection/paragraph.

While it is not yet known, why this can happen, this issue blocks such draft translations from being continued, and we should change the application behaviour to silently fail to restore that specific segment/sentence, instead of leading to an error, and blocking the draft translation continuation.

The frequency of this issue is also unknown at this point.

Event Timeline

ngkountas triaged this task as Unbreak Now! priority.

Change 961804 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX draft restoration: Check if sentence found before setting its content

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

Screencast of the issue happening on greek (el) production wiki:

Screencasts before and after the fix (from my own local dev environment):

Before fix:

After fix:

Change 961804 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX draft restoration: Check if sentence found before setting its content

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

Change 962059 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

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

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

Change 962059 merged by jenkins-bot:

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

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

Nikerabbit lowered the priority of this task from Unbreak Now! to High.Oct 9 2023, 1:10 PM

Test status: QA PASS

able to continue translations. Will able continue to keep an eye on this feature