[go: up one dir, main page]

Page MenuHomePhabricator

Remove language switching alert box temporary feature flag - make it part of the core software
Closed, ResolvedPublic2 Estimated Story Points

Description

NOTE: See also T297368

The language switcher redirection was built as a temporary solution, but has now been present for over a year. We should remove the feature flag, as retaining it adds additional complexity to the skin and adds risk to deployments (e.g. it could be deployed without the language switcher where needed). The logic should be identical to the existing $wgVectorLanguageInHeader configuration, we don't need both.

Given our recent flurry of activity with indicators it would also be a good time to check in with a designert to see whether this should now be replaced with an indicator, given original designs preferred that.

Acceptance criteria

  • Remove VectorLanguageAlertInSidebar feature flag, and retain the existing behaviour when it's true. e.g. it should not be possible to remove the alert via configuration.
  • Talk to designer about whether it should be replaced with indicators. Create a ticket if necessary.

Developer notes

QA Steps

  1. Visit https://en.wikipedia.beta.wmflabs.org/wiki/Dog .
  2. Verify that language alert is in main menu
  3. Visit https://en.wikipedia.beta.wmflabs.org/wiki/Main_Page
  4. Verify that the language alert is in main menu
  5. Visit https://en.wikipedia.beta.wmflabs.org/wiki/Wiojfojafaw
  6. Verify that the language alert is NOT in the main menu

QA Results - Beta

ACStatusDetails
1T297237#8817530
2T297237#8817530
3T297237#8817530

QA Results - Prod

ACStatusDetails
1T297237#8829690
2T297237#8829690
3T297237#8829690

Event Timeline

cjming updated the task description. (Show Details)

Hi, with the deployment of the burger menu for the sidebar, actually the alert box is hidden for the most of users of Vector 2022.

Please consider to point out the alert box again, outside the collapsed menu by default, before the massive deployment on smallest wikis. Now it is hidden for the most of users of Vector 2022. This would help new users find the language button. It also would be useful to prevent a disorienting experience, similar to that already exerimented by early adopters wikis, which pushed to create this alert box.

Given this has stayed in the codebase much longer than expected would it make sense to make this part of the software instead of a feature flag? Right now the feature is disabled by default (hence why new wikis are not getting it). We can always remove the code later if we decide we no longer need it, but the feature flag has lived much longer than expected.

@ovasileva can this be replaced with the pointer that we're adding on page load? Wouldn't that be more consistent?

Jdlrobson raised the priority of this task from Medium to High.Apr 10 2023, 10:03 PM

I'm bumping this to high as this was meant as a temporary solution and we've now had this for over a year.

Time counting should be done separately for each wiki, starting from the time the new default skin is launched. Because users usually are not in all wikis at the same time, but in few or only one wiki. So some of them haven't seen it for more than a few months.

In the future, consider adding the alert again for 2-3 months at the moment of the rollout on other wikis, showing it only for those communities having the change.
In T329531#8645948, I also suggested to put an indicator like others instead of this alert, because actually it is hidden by default in the menu so it is not so effective.

Jdlrobson renamed this task from Remove language switching alert box in sidebar to Remove language switching alert box in sidebar or make it part of the core software rather than a temporary feature flag.Apr 11 2023, 3:26 PM
Jdlrobson renamed this task from Remove language switching alert box in sidebar or make it part of the core software rather than a temporary feature flag to Remove language switching alert box temporary feature flag - make it part of the core software.Apr 12 2023, 9:31 PM
Jdlrobson updated the task description. (Show Details)
ovasileva set the point value for this task to 2.Apr 13 2023, 4:54 PM

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

[mediawiki/skins/Vector@master] Remove language switching alert box temporary feature flag

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

Change 912982 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Remove language switching alert box temporary feature flag

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

nray subscribed.
  • Talk to designer about whether it should be replaced with indicators. Create a ticket if necessary.

Ticket created at T335594

Edtadros subscribed.

Test Result - Beta

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

Test Artifact(s):

QA Steps

Visit https://en.wikipedia.beta.wmflabs.org/wiki/Dog .
✅ AC1: Verify that language alert is in main menu

Screenshot 2023-05-01 at 2.04.49 PM.png (739×1 px, 429 KB)

Visit https://en.wikipedia.beta.wmflabs.org/wiki/Main_Page
✅ AC2: Verify that the language alert is in main menu
Screenshot 2023-05-01 at 2.05.10 PM.png (739×1 px, 227 KB)

Visit https://en.wikipedia.beta.wmflabs.org/wiki/Wiojfojafaw
✅ AC3: Verify that the language alert is NOT in the main menu
Screenshot 2023-05-01 at 2.05.32 PM.png (739×1 px, 203 KB)

looks good, moving to QA in prod

Edtadros removed Edtadros as the assignee of this task.

Test Result - Prod

Status: ✅ PASS
Environment: enwiki, cawiki
OS: macOS Ventura
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

Visit https://en.wikipedia.org/wiki/Dog .
✅ AC1: Verify that language alert is in main menu

Screenshot 2023-05-05 at 7.41.29 AM.png (2×1 px, 916 KB)

Visit https://en.wikipedia.org/wiki/Main_Page
✅ AC2: Verify that the language alert is in main menu

Screenshot 2023-05-05 at 7.41.48 AM.png (1×1 px, 519 KB)

Visit https://ca.wikipedia.org/wiki/Alfred_I,_Prince_of_Windisch-Gr%C3%A4tz
✅ AC3: Verify that the language alert is NOT in the main menu

Screenshot 2023-05-05 at 7.43.07 AM.png (1×1 px, 356 KB)