Page MenuHomePhabricator

Drop User::getGlobalBlock and User::isBlockedGlobally
Closed, ResolvedPublic0.1 Estimated Story Points

Description

Summary

Both User::isBlockedGlobally and User::getGlobalBlock are hard deprecated and per the stable interface policy they can be removed.

Background & Technical notes

  • T387574: Hard deprecate User::getGlobalBlock hard deprecated User::getGlobalBlock in 1.44 and 94acff644ad5354a449eeeae5786bf592b883190 hard deprecated User::isBlockedGlobally in 1.43
    • The UserIsBlockedGlobally hook which both of these rely on is currently soft deprecated, however, the hook is only called by these two hard-deprecated methods (so this hook can also be safely hard deprecated)
  • This task focuses on removing User::isBlockedGlobally and User::getGlobalBlock. Removing the hook these methods rely on can be done in a different ticket.

Acceptance criteria

  • User::isBlockedGlobally and User::getGlobalBlock are removed

Event Timeline

Dreamy_Jazz set the point value for this task to 0.1.

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

[mediawiki/core@master] Drop User::isBlockedGlobally and User::getGlobalBlock

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

Dreamy_Jazz closed this task as Resolved.EditedAug 21 2025, 2:43 PM

Patch has been +2'd (thanks for the quick review) + no need for QA = resolving

Change #1180821 merged by jenkins-bot:

[mediawiki/core@master] Drop User::isBlockedGlobally and User::getGlobalBlock

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