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

This seems to be happening, but only with removing the category and template {{Reflist}}.

Happened with the article ડ્રેગનફ્રુટ in guwiki.

Examples using diff, where SX is removing category [[શ્રેણી:ફળ]] and template {{Reflist}}

  1. https://gu.wikipedia.org/w/index.php?title=ડ્રેગનફ્રુટ&diff=prev&oldid=823588&diffmode=source
  2. https://gu.wikipedia.org/w/index.php?title=ડ્રેગનફ્રુટ&diff=next&oldid=823594&diffmode=source

@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!