Page MenuHomePhabricator

"Translate this page" button should not appear in ULS for nonexistent pages
Closed, ResolvedPublic

Description

Currently the "Translate this page" action item is registered inside ULS empty state, even if the page is missing. This is confusing since there is no page to be translated.

Screenshot of this unwanted behaviour:

Screenshot 2022-11-03 at 11.43.12 AM.png (1×2 px, 464 KB)

What should happen instead
The "Translate this page" button should not appear in ULS dropdown for missing pages

Event Timeline

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

[mediawiki/extensions/ContentTranslation@master] Do not load "Translate page" action button when page doesn't exist

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

Change 852138 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Do not load "Translate page" action button when page doesn't exist

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

Test status : QA PASS

Translate page is not longer shown in ULS in an empty state session

Screen Shot 2022-12-05 at 11.05.05 PM.png (790×1 px, 403 KB)