Page MenuHomePhabricator

Title errors should prevent publishing
Open, MediumPublic

Assigned To
None
Authored By
Pginer-WMF
Jul 21 2022, 1:36 PM

Description

Content translaiton shows an error when the user uses invalid characters for the article title. However, the user is still allowed to press the publish button and the tool shows feedback as if the article had been published.

This was tested as part of the investigation on T225702 where OpenStreetMap is translated from English to Telugo and the title is changed to "ఓపెన్‌స్ట్రీట్‌మేప్ ( OSM )".

The sequence of screenshots below shows the issue:

Error card shown as soon as title is edited introducing invalid charactersWarning dialog shown when trying to publishConfirmation of page being publishedPage does not exist when following the link
test.wikipedia.org_w_index.php_title=Special_ContentTranslation&from=en&to=te&page=OpenStreetMap&targettitle=%E0%B0%93%E0%B0%AA%E0%B1%86%E0%B0%A8%E0%B1%8D%E2%80%8C%E0%B0%B8%E0%B1%8D%E0%B0%9F%E0%B1%8D%E0%B0%B0%E0%B1%80%E0%B0%9F%E0%B1%8D%E2%8.png (1×2 px, 602 KB)
test.wikipedia.org_w_index.php_title=Special_ContentTranslation&from=en&to=te&page=OpenStreetMap&targettitle=%E0%B0%93%E0%B0%AA%E0%B1%86%E0%B0%A8%E0%B1%8D%E2%80%8C%E0%B0%B8%E0%B1%8D%E0%B0%9F%E0%B1%8D%E0%B0%B0%E0%B1%80%E0%B0%9F%E0%B1%8D% (1).png (1×2 px, 568 KB)
test.wikipedia.org_w_index.php_title=Special_ContentTranslation&from=en&to=te&page=OpenStreetMap&targettitle=%E0%B0%93%E0%B0%AA%E0%B1%86%E0%B0%A8%E0%B1%8D%E2%80%8C%E0%B0%B8%E0%B1%8D%E0%B0%9F%E0%B1%8D%E0%B0%B0%E0%B1%80%E0%B0%9F%E0%B1%8D% (2).png (1×2 px, 590 KB)
test.wikipedia.org_wiki_%E0%B0%93%E0%B0%AA%E0%B1%86%E0%B0%A8%E0%B1%8D%26zwnj;%E0%B0%B8%E0%B1%8D%E0%B0%9F%E0%B1%8D%E0%B0%B0%E0%B1%80%E0%B0%9F%E0%B1%8D%26zwnj;%E0%B0%AE%E0%B1%87%E0%B0%AA%E0%B1%8D_(_OSM_)(iPad Air).png (1×2 px, 231 KB)

This ticket proposes to better communicate errors by either:

  • Keeping the publish button while there are errors. We may want to consider this approach only if we can provide a very solid solution that does not keep the button inactive for other cases. Otherwise users may not be able to publish.
  • Communicate there was an error when trying to publish with an error message instead of the successful published confirmation.

Note that if the publishing system is improved generally, there may be temporary errors where having the option to "retry" could be convenient, and disabling the publish button may be a problematic approach.