Page MenuHomePhabricator

[Regression] Language in sidebar should not show on pages without languages
Closed, ResolvedPublicBUG REPORT

Description

The language sidebar box is showing up on https://fr.wikipedia.org/wiki/Projet_de_constitution_fran%C3%A7aise_du_19_avril_1946 per @Patafisik report. This should have been fixed in 1.38.0-wmf.20 on T295555

Acceptance criteria

  • Language notice should not show on pages that only have one language

QA Results - Beta

ACStatusDetails
1T302018#7747821T302018#7749417

QA Results - Prod

ACStatusDetails
1T302018#7758971

Event Timeline

Change 763853 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/skins/Vector@master] Fix language alert regression

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

I think what's happening here is that https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/skins/Vector/+/refs/heads/master/includes/SkinVector.php#869 adds a class to hide the language button which isn't accounted for in the check to display the language alert.

cjming assigned this task to phuedx.
cjming moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
cjming added a subscriber: phuedx.

Change 763853 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Fix language alert regression

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

cjming moved this task from Code Review to QA on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
cjming added a subscriber: nray.
Edtadros subscribed.

Test Result - Beta

Status:
Environment: beta
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

❌ AC1: Language notice should not show up for pages with only one language.

The language notice does not show up when logged in, but it does show up when anon.

Screen Shot 2022-03-02 at 7.36.45 AM.png (1×1 px, 335 KB)

Screen Shot 2022-03-02 at 7.36.22 AM.png (1×1 px, 342 KB)

@nray I assigned it to you because as best as I could tell you worked on it. Feel free to reassign or clarify if the anon behavior is correct.

hi @Edtadros -- can you test again with a query param to break the cache? if you open up that Spain page in beta as anon with a fake query param, the language alert does not show as intended. Also similar pages (i.e. without language button in header) seem to work as intended as well whether logged in or as anon -- https://en.wikipedia.beta.wmflabs.org/wiki/Germany)

https://en.wikipedia.beta.wmflabs.org/wiki/Spain?foo=bar

thanks to @nray for the hint on breaking cache (see thread in https://wikimedia.slack.com/archives/G8QAPHCTT/p1646237206910449)

Test Result - Beta

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

Test Artifact(s):

QA Steps

✅ AC1: Language notice should not show up for pages with only one language.

Screen Shot 2022-03-02 at 4.23.57 PM.png (1×1 px, 297 KB)

Screen Shot 2022-03-02 at 4.25.14 PM.png (1×1 px, 384 KB)

Screen Shot 2022-03-02 at 4.23.25 PM.png (1×1 px, 369 KB)

Screen Shot 2022-03-02 at 4.23.39 PM.png (1×1 px, 285 KB)

Change 768786 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/skins/Vector@wmf/1.38.0-wmf.24] Fix language alert regression

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

Change 768786 merged by jenkins-bot:

[mediawiki/skins/Vector@wmf/1.38.0-wmf.24] Fix language alert regression

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

Mentioned in SAL (#wikimedia-operations) [2022-03-07T21:37:36Z] <urbanecm@deploy1002> Synchronized php-1.38.0-wmf.24/skins/Vector/includes/SkinVector.php: eac551c: Fix language alert regression (T302018) (duration: 00m 50s)

Test Result - Prod

Status: ✅ PASS
Environment: enwiki, frwiki
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: Language notice should not show up for pages with only one language.

Screen Shot 2022-03-07 at 5.32.57 PM.png (1×1 px, 288 KB)

Screen Shot 2022-03-07 at 5.32.41 PM.png (1×1 px, 443 KB)