Page MenuHomePhabricator

MinervaNeue: Watchstar missing for anonymous users
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

The MinervaNeue skin displays a watchstar for anonymous users, which when clicked, presents a modal encouraging users to create an account or login.
Since Mediawiki wmf/1.41.0-wmf.23 (Tuesday, August 22) the watchstar no longer appears.
e.g. on beta

Screenshot 2023-08-23 at 6.19.32 PM.png (1×2 px, 369 KB)

vs enwiki

Screenshot 2023-08-23 at 6.19.50 PM.png (1×2 px, 327 KB)

This appears to be introduced by the following commit (Since the watchstar does appear when on the prior commit):
watchlist: Prepare for IP Masking

This may be related, or a follow-up to T330518.

A/C

Environment: mobile web, minerva skin

  1. As an anonymous user, verify that the watchstar is visible on article pages. Clicking the watchstar should reveal a modal from the bottom of the page encouraging users to sign up.
  2. As a logged in user, verify that the watchstar still works: When clicked, it should add a page to the watchlist (either permanently or temporarily), and clicked again, it should remove the page from the watchlist.

QA Results - Beta

ACStatusDetails
1T344870#9124399
2T344870#9124399

QA Results - Prod

ACStatusDetails
1T344870#9151439
2T344870#9151439

Event Timeline

Change 952120 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/skins/MinervaNeue@master] watchlist: Do not assume users have to be named to have access to watchlist

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

This happened, because MinervaNeue (incorrectly) assumed all users have the viewmywatchlist and editmywatchlist permissions, but only named users have access to watchlist. Core changed that assumption in the commit you linked, which broke Minerva. I uploaded a patch to fix this -- please test as needed.

My patch should fix the reported issue. I discovered an alternate one and filled as T344925. Patch TBD.

Change 952120 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] watchlist: Don't assume only named users have watchlist access

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

Change 952130 had a related patch set uploaded (by Jdrewniak; author: Urbanecm):

[mediawiki/skins/MinervaNeue@wmf/1.41.0-wmf.23] watchlist: Don't assume only named users have watchlist access

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

ovasileva set the point value for this task to 2.Aug 24 2023, 4:47 PM

Change 952130 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@wmf/1.41.0-wmf.23] watchlist: Don't assume only named users have watchlist access

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

Mentioned in SAL (#wikimedia-operations) [2023-08-24T20:45:47Z] <thcipriani@deploy1002> Started scap: Backport for [[gerrit:952132|Add option to just create the 'Global rename script' system user (T344632)]], [[gerrit:952130|watchlist: Don't assume only named users have watchlist access (T344870)]]

Mentioned in SAL (#wikimedia-operations) [2023-08-24T20:47:14Z] <thcipriani@deploy1002> thcipriani and jdrewniak and krinkle: Backport for [[gerrit:952132|Add option to just create the 'Global rename script' system user (T344632)]], [[gerrit:952130|watchlist: Don't assume only named users have watchlist access (T344870)]] synced to the testservers mwdebug2001.codfw.wmnet, mwdebug1002.eqiad.wmnet, mwdebug2002.codfw.wmnet, mwdebug1001.eqiad.wmnet, and mw-debug kubernetes deployment (

Mentioned in SAL (#wikimedia-operations) [2023-08-24T20:58:19Z] <thcipriani@deploy1002> Finished scap: Backport for [[gerrit:952132|Add option to just create the 'Global rename script' system user (T344632)]], [[gerrit:952130|watchlist: Don't assume only named users have watchlist access (T344870)]] (duration: 12m 31s)

Edtadros subscribed.

Test Result - Beta

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

Test Artifact(s):

QA Steps

✅ AC1: As an anonymous user, verify that the watchstar is visible on article pages. Clicking the watchstar should reveal a modal from the bottom of the page encouraging users to sign up.

Screen Recording 2023-08-28 at 9.53.07 AM.mov.gif (770×1 px, 842 KB)

✅ AC2: As a logged in user, verify that the watchstar still works: When clicked, it should add a page to the watchlist (either permanently or temporarily), and clicked again, it should remove the page from the watchlist.
Screen Recording 2023-08-28 at 9.53.51 AM.mov.gif (770×1 px, 695 KB)

Edtadros removed Edtadros as the assignee of this task.

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Ventura
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: As an anonymous user, verify that the watchstar is visible on article pages. Clicking the watchstar should reveal a modal from the bottom of the page encouraging users to sign up.

screenshot 4.mov.gif (1×1 px, 1 MB)

✅ AC2: As a logged in user, verify that the watchstar still works: When clicked, it should add a page to the watchlist (either permanently or temporarily), and clicked again, it should remove the page from the watchlist.
screenshot 5.mov.gif (1×1 px, 1 MB)