Page MenuHomePhabricator

Section Translation removes unrelated section after publishing
Closed, ResolvedPublicBUG REPORT

Description

When I published a translation for the "Geography" section of the Barren Island (Andaman Islands) article from English to Gujarati using Section Translation, it removed unrelated sections (External links) and all categories from the target article (Gujarati Wikipedia: બેરન આઇલેન્ડ (આંદામાન ટાપુઓ)).

Removed sections can be seen in this diff.

Event Timeline

Another example Where, {{Reflist}} section is lost.

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

[mediawiki/extensions/ContentTranslation@master] SX: Fix section number calculation for a given section title

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

Change 793457 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Fix section number calculation for a given section title

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

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

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

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

Change 797200 merged by jenkins-bot:

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

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

I published a section and it seems working fine now!

@KartikMistry using this : https://ig.wikipedia.org/wiki/Special:ContentTranslation?from=fr&to=ig&page=AL&targettitle=Al I tried to translate from French to Igbo. Will the displayed in the attached image be related to this defect?

Screen Shot 2022-06-01 at 10.54.05 PM.png (807×1 px, 249 KB)

@KartikMistry using this : https://ig.wikipedia.org/wiki/Special:ContentTranslation?from=fr&to=ig&page=AL&targettitle=Al I tried to translate from French to Igbo. Will the displayed in the attached image be related to this defect?

Screen Shot 2022-06-01 at 10.54.05 PM.png (807×1 px, 249 KB)

No, it is a different issue and surely not related to this bug.

@KartikMistry using this : https://ig.wikipedia.org/wiki/Special:ContentTranslation?from=fr&to=ig&page=AL&targettitle=Al I tried to translate from French to Igbo. Will the displayed in the attached image be related to this defect?

Screen Shot 2022-06-01 at 10.54.05 PM.png (807×1 px, 249 KB)

@EChukwukere-WMF this ticket is about Section Translation (mobile experience), while you are sharing a link and screenshot of Content Translation (desktop experience). Until both tools are better integrated this can be a bit confusing, but keeping an eye on the ".m" on the url may help.

@Pginer-WMF that is correct. I was checking to see if its not the same issue on both platforms. Thank you

Was able to successfully publish a section with External links as well

Test Status: QA PASS

@KartikMistry do we reopen this ticket or open a new ticket for this ?

@EChukwukere-WMF can you file a new task? Since SX is not removing the entire section and only a category and/or template at the end of the article. I'll try to reproduce this again too.

With the follow-up task created, we can resolve the current one. Thanks!