Page MenuHomePhabricator

Create method for deterministically opting new users into SUL3 rollout
Closed, ResolvedPublic

Description

Adapt T384549: Create a per-user flag for enabling SUL3 for signup. We can set the opt-in flag once the user account got created, to make subsequent login flows consistent with the signup flow, but for a signup we need to decide on the fly. Probably what we want is to adjust the isSul3Enabled() check in SpecialPageBeforeExecuteHookHandler::onSpecialPageBeforeExecute() (responsible for deciding which flow to use): if the user is not logged in, and isn't actively opted in or opted out, use a site configuration flag to determine with what probability the user ends up in SUL3.

This should still be overridable (there will be an opt-out link per T377140: Adapt user experience to expose the progressive rollout with a fallback link leading to the old signup page, and so the usesul3=0 flag needs to reliably work there). Probably easiest to do as a new $wgCentralAuthEnableSul3 type that takes lower priority than most other options; but unlike the always option, it must be specific to signup. Or maybe we should just split $wgCentralAuthEnableSul3 into a login and a signup version.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Tgr renamed this task from Create method for opting users into SUL3 rollout to Create method for opting new users into SUL3 rollout.Jan 20 2025, 2:35 PM
Tgr renamed this task from Create method for opting new users into SUL3 rollout to Create method for deterministically opting new users into SUL3 rollout.Jan 22 2025, 10:53 PM
Tgr updated the task description. (Show Details)

Change #1115497 had a related patch set uploaded (by ArielGlenn; author: ArielGlenn):

[mediawiki/extensions/CentralAuth@master] add configurations options and a global preference for the SUL3 rolllout

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

Change #1115497 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Add configuration options and global preference for the SUL3 rolllout

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

Change #1120977 had a related patch set uploaded (by Gergő Tisza; author: ArielGlenn):

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.16] Add configuration options and global preference for the SUL3 rolllout

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

Change #1120978 had a related patch set uploaded (by Gergő Tisza; author: ArielGlenn):

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.17] Add configuration options and global preference for the SUL3 rolllout

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

Change #1120977 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.16] Add configuration options and global preference for the SUL3 rolllout

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

Change #1120978 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.17] Add configuration options and global preference for the SUL3 rolllout

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

Mentioned in SAL (#wikimedia-operations) [2025-02-19T15:29:02Z] <tgr@deploy2002> Started scap sync-world: Backport for [[gerrit:1120977|Add configuration options and global preference for the SUL3 rolllout (T384549 T377144 T384552 T384215)]], [[gerrit:1120978|Add configuration options and global preference for the SUL3 rolllout (T384549 T377144 T384552 T384215)]]