Page MenuHomePhabricator

Some mediawiki pages showing duplicate login + unstyled login status in user menu
Closed, ResolvedPublicBUG REPORT

Description

On mediawiki, some pages show duplicate login button plus off-styled login-status for anonymous users.

i.e. short list of affected pages:
https://www.mediawiki.org/wiki/Phabricator
https://www.mediawiki.org/wiki/Reading/Web/Chores
https://www.mediawiki.org/wiki/Project:Support_desk
https://www.mediawiki.org/wiki/Project:Help
https://www.mediawiki.org/wiki/Development_statistics

List of steps to reproduce (step by step, including full links if applicable):

What happens?:

  • Duplicate logins shown
  • "Not logged in" status not styled like the other items in the menu

What should have happened instead?:

  • 2nd login should not be there
  • "Not logged in" should not be there?

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Screen Shot 2022-03-16 at 1.28.54 PM.png (1×2 px, 608 KB)

Event Timeline

ovasileva subscribed.
ovasileva raised the priority of this task from High to Unbreak Now!.Mar 16 2022, 7:54 PM

Change 771452 had a related patch set uploaded (by Nray; author: Nray):

[mediawiki/skins/Vector@master] Fix duplicate login + unstyled login status bug in anon user menu

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

Change 771452 abandoned by Nray:

[mediawiki/skins/Vector@master] Fix duplicate login + unstyled login status bug in anon user menu

Reason:

See Idc9cd3a324f48d2c48243b5011d1559839789539 which includes an isset check

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

Change 771458 had a related patch set uploaded (by Nray; author: Bernard Wang):

[mediawiki/skins/Vector@master] Fix updateUserLinksDropdownItems not being called

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

Change 771391 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Revert "Refactor user links functions in Hooks.php to increase test coverage"

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

Change 771395 had a related patch set uploaded (by Jdlrobson; author: Bernard Wang):

[mediawiki/skins/Vector@wmf/1.38.0-wmf.26] Fix updateUserLinksDropdownItems not being called

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

Change 771391 abandoned by Jdlrobson:

[mediawiki/skins/Vector@master] Revert "Refactor user links functions in Hooks.php to increase test coverage"

Reason:

Using https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/771458

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

Jdlrobson moved this task from Code Review to QA on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
Jdlrobson subscribed.

Fixed locally. Can replicate on beta cluster when in an incognito mode, we can backport this change when we've confirmed it's fixed there:

Screen Shot 2022-03-16 at 3.37.14 PM.png (920×1 px, 153 KB)

Change 771458 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Fix updateUserLinksDropdownItems not being called

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

Change 771395 abandoned by Bernard Wang:

[mediawiki/skins/Vector@wmf/1.38.0-wmf.26] Fix updateUserLinksDropdownItems not being called

Reason:

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

Change 771395 restored by Bernard Wang:

[mediawiki/skins/Vector@wmf/1.38.0-wmf.26] Fix updateUserLinksDropdownItems not being called

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

Change 771395 merged by jenkins-bot:

[mediawiki/skins/Vector@wmf/1.38.0-wmf.26] Fix updateUserLinksDropdownItems not being called

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

Mentioned in SAL (#wikimedia-operations) [2022-03-17T18:53:06Z] <jhuneidi@deploy1002> Synchronized php-1.38.0-wmf.26/skins/Vector/includes/Hooks.php: Backport: [[gerrit:771395|Fix updateUserLinksDropdownItems not being called (T304002)]] (duration: 00m 50s)

Jdlrobson lowered the priority of this task from Unbreak Now! to Medium.Mar 17 2022, 8:21 PM

I can verify the fix in production:

Screen Shot 2022-03-17 at 1.21.12 PM.png (560×2 px, 312 KB)

Note due to caching you may need to run action=purge to clear any remaining instances of this.

ovasileva claimed this task.

Looks good! Resolving.