Page MenuHomePhabricator

Sticky header: ensure correct language presentation on multi-language wikis
Closed, ResolvedPublic2 Estimated Story Points

Description

Steps to reproduce

See AC3: https://phabricator.wikimedia.org/T289815#7556851.

  1. Go to commons and enable the sticky header using the url parameter
  2. Scroll down the page until the sticky header appears

Expected: no language switcher appears
Observed: language switcher appears with "0 languages"

Wikis with multiple languages within the same wiki (eg. commons, wikidata) are not expected to show the language switcher within the sticky header

Developer notes

Happens with:

$wgVectorLanguageInHeader =  [
	"logged_in" => false,
	"logged_out" => false,
];

$wgMFMwApiContentProviderBaseUri = "https://commons.wikimedia.org/w/api.php";

QA Results - Beta

ACStatusDetails
1T297362#7579291

QA Results - Prod

ACStatusDetails
1T297362#7579294

Event Timeline

@Jdlrobson, @bwang - noting some more oddity around this one. Either way, not a blocker for deployment as wikidata and commons have been removed from the deploy list:

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

[mediawiki/skins/Vector@master] Don't add language button to sticky header on pages without languages in content

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

Change 745596 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Don't add language button to sticky header on pages without languages in content

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

Test Result - Beta

Status: ✅ PASS
Environment: betacommons, betawikidata
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

Go to commons and enable the sticky header using the url parameter
Scroll down the page until the sticky header appears
✅ AC1: Expected: no language switcher appears

Screen Shot 2021-12-18 at 1.29.43 PM.png (932×859 px, 89 KB)

Screen Shot 2021-12-18 at 1.28.35 PM.png (932×859 px, 346 KB)

Edtadros subscribed.

Test Result - Prod

Status: ✅ PASS
Environment: commons, wikidata
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

Go to commons and enable the sticky header using the url parameter
Scroll down the page until the sticky header appears
✅ AC1: Expected: no language switcher appears

Screen Shot 2021-12-18 at 1.34.34 PM.png (932×859 px, 227 KB)

Screen Shot 2021-12-18 at 1.33.22 PM.png (932×859 px, 130 KB)