Page MenuHomePhabricator

Update GlobalBlockingHooks for global autoblocks
Closed, ResolvedPublic2 Estimated Story Points

Description

The GlobalBlockingHooks file contains several pieces of code that need to be updated for global autoblocks. This includes not displaying global autoblocks on Special:Contributions for the IP address that is targeted by the autoblock and adding a block notice that is specific to global autoblocks.

Acceptance criteria
  • Special:Contributions does not display a block banner if the IP is only globally autoblocked
  • Special:Block does not have a "other blocks" link if the IP is only globally autoblocked
  • The block notice displayed when a user is prevented from performing actions is updated to display a custom notice for global autoblocks
    • This message is correctly overridden for WMF wikis, so that users are pointed to the correct place

Event Timeline

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

[mediawiki/extensions/GlobalBlocking@master] Update GlobalBlockingHooks for global autoblocks

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

Change #1080768 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Update GlobalBlockingHooks for global autoblocks

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

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

[mediawiki/extensions/WikimediaEvents@master] Add new GlobalBlocking blocked text message keys

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

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

[translatewiki@master] Mark globalblocking-blockedtext-* messages as ignored

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

Change #1080782 merged by jenkins-bot:

[translatewiki@master] [GlobalBlocking] Mark globalblocking-blockedtext-* as ignored

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

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

[mediawiki/extensions/WikimediaMessages@master] Add WMF overrides for global autoblock blocked text messages

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

Change #1080776 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] Add new GlobalBlocking blocked text message keys

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

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

[translatewiki@master] [GlobalBlocking] Ignore wikimedia-globalblocking-blockedtext-autoblock*

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

Change #1080798 merged by jenkins-bot:

[translatewiki@master] [GlobalBlocking] Ignore wikimedia-globalblocking-blockedtext-autoblock*

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

Change #1080796 merged by jenkins-bot:

[mediawiki/extensions/WikimediaMessages@master] Add WMF overrides for global autoblock blocked text messages

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

For QA I would suggest checking that the acceptance criteria have been met.

To be able to complete this test you will need to set $wgGlobalBlockingEnableAutoblocks = true; in your LocalSettings.php. If you wish to test this in patch demo, I can make a patch which you can include in the creation of the wiki to be able to test on patch demo (just let me know).

Djackson-ctr subscribed.

QA has been completed and the new code is functioning per the Acceptance Criteria.