Page MenuHomePhabricator

Update the GlobalBlockLookup service to read the value of gb_create_account
Closed, ResolvedPublic1 Estimated Story Points

Description

The GlobalBlockLookup service needs to read the value of gb_create_account and then apply this to the GlobalBlock instances that it returns. This so that the block can be optionally set to apply to account creation.

This is safe to do so now because the column exists on WMF wikis (T371415) and a default is set for this column of 1 which will ensure that the current behaviour (all global blocks prevent account creation) continues to apply.

Acceptance criteria
  • Update GlobalBlockLookup to read the value from the gb_create_account column and use it / return it where necessary.

Related Objects

StatusSubtypeAssignedTask
Resolvedkostajh
DeclinedNone
In ProgressNiharika
OpenNone
OpenDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedNone
DuplicateNone
ResolvedFeatureDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedLadsgroup
ResolvedDreamy_Jazz

Event Timeline

Change #1059087 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/GlobalBlocking@master] Update GlobalBlockLookup to read gb_create_account from globalblocks

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

Change #1059087 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Update GlobalBlockLookup to read gb_create_account

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

I would recommend for QA testing that global blocks still disable account creation. You can test this on the beta wikis, patch demo, or a local wiki.

Djackson-ctr subscribed.

Testing for Global Blocks has been completed, no issues discovered with the implementation of the new code (GlobalBlock still disables account creation).