Page MenuHomePhabricator

[Regression] User menu displaying blue translations and uploaded media links
Closed, ResolvedPublicBUG REPORT

Description

Steps to reproduce

  1. Go to https://en.wikipedia.org/wiki/Main_Page with legacy vector turned off
  2. Select user menu

What happens?:
Translations and uploaded media links appear blue

Screen Shot 2021-10-15 at 12.38.18 PM.png (786×1 px, 156 KB)

What should have happened instead?:
Styling should be the same for all links within the user menu

QA Results - Beta

ACStatusDetails
1T293507#7487930

QA Results - Prod

ACStatusDetails
1T293507#7487932

Event Timeline

Change 730920 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/ContentTranslation@master] Use addPortletLink for injecting links

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

@ovasileva raised in our morning meeting that we want to make sure this gets fixed ASAP so I will likely need to backport the change to at least one branch this week. If this could make the branch cut for this week's train, that would be greatly appreciated.

Change 730920 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Use addPortletLink for injecting links

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

Seems to be fixed now! However, if I open a page with the VE or NWE, both these links are displayed double:

Screenshot NWE user menu 2021-10-29.jpg (652×1 px, 187 KB)

EDIT: Additionally, anytime I exit the VE again without refreshing the page, the double links will remain in the menu. Repeating this, I can achieve an indefinite number of such links in the user menu.

Can you open a bug for ContentTranslation? It seems like the hook it's using is firing more than once. It should only be doing this once at the start.

Does the Uploads link also depend on ContentTranslation then?

Yes this link is added by ContentTranslation.

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Big Sur
Browser: Chrome
Device: MBP
Emulated Device: NA

Test Artifact(s):

QA Steps

Steps to reproduce
Go to https://en.wikipedia.org/wiki/Main_Page with legacy vector turned off
Select user menu
✅ AC1: Translations and uploaded media links should not appear blue and styling should be the same for all links within the user menu

Screen Shot 2021-11-07 at 7.24.28 AM.png (1×971 px, 338 KB)

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Big Sur
Browser: Chrome
Device: MBP
Emulated Device: NA

Test Artifact(s):

QA Steps

Steps to reproduce
Go to https://en.wikipedia.org/wiki/Main_Page with legacy vector turned off
Select user menu
✅ AC1: Translations and uploaded media links should not appear blue and styling should be the same for all links within the user menu

Screen Shot 2021-11-07 at 7.26.07 AM.png (1×972 px, 555 KB)

Looks good, resolving