Page MenuHomePhabricator

[Regression] "[dismiss]" button shows up on all pages for no apparent reason
Closed, ResolvedPublicPRODUCTION ERROR

Description

Seen on mediawiki.org today.

The MediaWiki:Sitenotice page is empty, but yet [dismiss] shows up everywhere.

Steps to reproduce

  1. Go to any article on a production wiki (ex: https://ca.wikipedia.org/wiki/Tuc_de_la_Llan%C3%A7a)

Expected:

  • If no banner is running, no dismiss link is displayed

Observed:

  • Dismissed link is displayed

Screen Shot 2021-01-07 at 11.59.37 AM.png (1×2 px, 1 MB)

QA Results - Beta|Prod

ACStatusDetails
1T271365#6740642

Event Timeline

Krinkle triaged this task as Unbreak Now! priority.EditedJan 6 2021, 9:27 PM

This seems likely caused by the surprise work on merging the feature (along wit its known tech debt) into MW core, ref T259903, T262118.

I've lef some post-merge code review at https://gerrit.wikimedia.org/r/c/mediawiki/core/+/631177. The change was high-risk and made major changes to the logic that are unexplained, likely unintended, and were not noticed during the original code review.

I'd recommend revert for now so that it can be properly reviewed, tested, and documented in a core patch for next week.

Change 654460 had a related patch set uploaded (by Krinkle; owner: Krinkle):
[mediawiki/core@master] Revert "Provide native support to dismiss sitenotice in core."

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

Change 654461 had a related patch set uploaded (by Krinkle; owner: Krinkle):
[mediawiki/core@wmf/1.36.0-wmf.25] Revert "Provide native support to dismiss sitenotice in core."

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

@Jdlrobson Can you confirm that VERSION_MAJOR is safe to revert at this time? Afaik things should fall into place, but want to make sure train conductors don't roll forward without your input on that.

Change 654460 merged by jenkins-bot:
[mediawiki/core@master] Revert "Provide native support to dismiss sitenotice in core."

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

@Jdlrobson Can you confirm that VERSION_MAJOR is safe to revert at this time? Afaik things should fall into place, but want to make sure train conductors don't roll forward without your input on that.

Ftr, there's a comment about that in the wmf.25 patch with a CR+1 from Jon.

Change 654461 merged by jenkins-bot:
[mediawiki/core@wmf/1.36.0-wmf.25] Revert "Provide native support to dismiss sitenotice in core."

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

Mentioned in SAL (#wikimedia-operations) [2021-01-07T19:53:42Z] <urbanecm@deploy1001> Synchronized php-1.36.0-wmf.25/includes/skins/: rMW59866730ea75: Revert "Provide native support to dismiss sitenotice in core." (T271365; T259903; 1/3) (duration: 01m 04s)

Mentioned in SAL (#wikimedia-operations) [2021-01-07T19:55:01Z] <urbanecm@deploy1001> Synchronized php-1.36.0-wmf.25/resources/: rMW59866730ea75: Revert "Provide native support to dismiss sitenotice in core." (T271365; T259903; 2/3) (duration: 01m 05s)

Mentioned in SAL (#wikimedia-operations) [2021-01-07T19:56:27Z] <urbanecm@deploy1001> Synchronized php-1.36.0-wmf.25/includes/DefaultSettings.php: rMW59866730ea75: Revert "Provide native support to dismiss sitenotice in core." (T271365; T259903; 3/3) (duration: 01m 03s)

Jdlrobson lowered the priority of this task from Unbreak Now! to Medium.Jan 7 2021, 8:16 PM

Let's verify the dismiss link is gone before resolving.

The footer comment of DefaultSettings.php was incorrectly reverted. It should be restored.

We have pushed 1.36.0-wmf.25 everywhere, I have removed this task from the list of blockers.

Change 655192 had a related patch set uploaded (by Shirayuki; owner: Shirayuki):
[mediawiki/core@master] DefaultSettings: Improve custom folding and grouping

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

Change 655192 merged by jenkins-bot:
[mediawiki/core@master] DefaultSettings: Improve custom folding and grouping

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

Edtadros subscribed.

Test Result - Prod

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

Test Artifact(s):

QA Steps

Go to any article on a production wiki (ex: https://ca.wikipedia.org/wiki/Tuc_de_la_Llan%C3%A7a)
Expected:

✅ AC1: [dismiss] link is NOT displayed

Screen Shot 2021-01-12 at 9.52.30 AM.png (913×1 px, 467 KB)