Page MenuHomePhabricator

wrong section in the link causes eternal loading
Closed, ResolvedPublicBUG REPORT

Description

Section translation supports linking to a specific section to translate (T260143). However, if we put a wrong section in the link, it kinda breaks sx (eternal loading of the section) but the user can always go back
https://sx.wmflabs.org/index.php/Special:ContentTranslation?page=Moon&section=WRONGSECTION&from=en&to=es&sx=true#/sx

*what should be the correct behaviour in this case?*

We should avoid the dead-end:

  • Check for the presence of such section in the article
  • When the section does not exist, show the regular confirmation step (with article selected, but no specific section)
  • Show a bubble notification with the message "Section "Wrongsection" not found in the article"

Event Timeline

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

[mediawiki/extensions/ContentTranslation@master] SX: Remove section URL param when selecting invalid section

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

Change 715758 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Remove section URL param when selecting invalid section

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

Jpita added a subscriber: Pginer-WMF.

@Pginer-WMF right now the behaviour is:

  1. go to wrong section link
  2. get the wrong section confirmation step
    Screenshot 2021-10-11 at 15.49.47.png (560×748 px, 50 KB)
  3. when we click the "Translate section" button we get no bubble notification, instead we are redirected to the "regular confirmation step" page
    Screenshot 2021-10-11 at 15.50.10.png (636×802 px, 82 KB)

is this ok?

@Pginer-WMF right now the behaviour is:

  1. go to wrong section link
  2. get the wrong section confirmation step
    Screenshot 2021-10-11 at 15.49.47.png (560×748 px, 50 KB)
  3. when we click the "Translate section" button we get no bubble notification, instead we are redirected to the "regular confirmation step" page
    Screenshot 2021-10-11 at 15.50.10.png (636×802 px, 82 KB)

is this ok?

The step 2 should be avoided. From clicking the link the expected result would be to reach step 3.

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

[mediawiki/extensions/ContentTranslation@master] SXTranslationConfirmer: Clear prefilled section from URL if invalid

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

Change 730148 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SXTranslationConfirmer: Clear prefilled section from URL if invalid

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

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

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.1.0+20211018

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

Change 731310 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.1.0+20211018

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