Page MenuHomePhabricator

Add a maintenance script to set global preferences for listed users
Closed, ResolvedPublic

Description

In the parent task, we're going to change the defaults for whom UserInfoCard is turned on by default. However, for those people who will no longer have UIC turned on by default, we'd like to preserve it by switching a global preference for them. Given that currently there is no maintenance script for that, we'd like to implement one.

Acceptance criteria

  • There exists a maintenance script in GlobalPreferences, which can be used to set a preference to a given value for an arbitrary list of user names (loaded from file)

Event Timeline

Change #1294940 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/GlobalPreferences@master] Add SetGlobalPreference maintenance script

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

Change #1294940 merged by jenkins-bot:

[mediawiki/extensions/GlobalPreferences@master] Add SetGlobalPreference maintenance script

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

Change #1295875 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/GlobalPreferences@wmf/1.47.0-wmf.4] Add SetGlobalPreference maintenance script

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

Change #1295875 merged by jenkins-bot:

[mediawiki/extensions/GlobalPreferences@wmf/1.47.0-wmf.4] Add SetGlobalPreference maintenance script

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

Mentioned in SAL (#wikimedia-operations) [2026-06-01T13:14:11Z] <mszwarc@deploy1003> Started scap sync-world: Backport for [[gerrit:1295875|Add SetGlobalPreference maintenance script (T427476)]]

Mentioned in SAL (#wikimedia-operations) [2026-06-01T13:15:55Z] <mszwarc@deploy1003> mszwarc: Backport for [[gerrit:1295875|Add SetGlobalPreference maintenance script (T427476)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-06-01T13:20:34Z] <mszwarc@deploy1003> Finished scap sync-world: Backport for [[gerrit:1295875|Add SetGlobalPreference maintenance script (T427476)]] (duration: 06m 22s)