The GlobalBlockingHooks file needs to be updated to support global blocks on accounts, including the special contributions handler.
Description
Details
Event Timeline
Change #1037838 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):
[mediawiki/extensions/GlobalBlocking@master] Display global account blocks on Special:Contributions
Change #1039803 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):
[mediawiki/extensions/GlobalBlocking@master] [WIP] Test GlobalBlockingHooks
Change #1037838 merged by jenkins-bot:
[mediawiki/extensions/GlobalBlocking@master] Display global account blocks on Special:Contributions
Change #1040191 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):
[mediawiki/extensions/GlobalBlocking@master] [WIP] Update GlobalBlockingHooks for global account blocks
Change #1039803 merged by jenkins-bot:
[mediawiki/extensions/GlobalBlocking@master] Test GlobalBlockingHooks
Change #1040191 merged by jenkins-bot:
[mediawiki/extensions/GlobalBlocking@master] Update GlobalBlockingHooks for global account blocks
Testing notes
This updates a few features.
Setup:
- Set wgGlobalBlockingAllowGlobalAccountBlocks to true
- Globally block an IP address (regression testing)
- Globally block a user (new functionality)
Adding a block link to Special:Block and Special:BlockList:
- On Special:Block/<globallyBlockedIp> a message should appear at the top of the page saying the user is globally blocked, with a link to details
- Same for Special:Block/<globallyBlockedUser>, unless the blocked user is hidden and the performing user can't see hidden users
- Same for Special:BlockList/<globallyBockedIpOrUser>
- These should be shown even if the global block is locally disabled
Adding a notice on Special:Contributions:
- On Special:Contributions/<globallyBlockedIp> a notice should appear at the top of the page saying the user is globally blocked
- Same for Special:Contributions/<globallyBlockedUser>
- These should not be shown if the global block is locally disabled
Adding links to Special:Contributions
- On Special:Contributions/<globallyBlockedIp> the pipe-separated list of links at the top of the page should contain links for "modify the global block" and "remove the global block", which link to a form with the IP pre-filled
- On Special:Contributions/<notGloballyBlockedIp> there should instead be a link for "global block", which links to a form with the IP pre-filled
- Same for registered users
- If the accessing user doesn't have the globalblock right, they shouldn't see any of these links
With wgGlobalBlockingAllowGlobalAccountBlocks false, all this should behave the same as before this task.
I have verified the new code has been implemented and is functioning and displaying as expected...
Good Work @Dreamy_Jazz, and a big thank you to @Tchanders for the excellent Testing Notes which are greatly appreciated.
Screenshots for Adding a block link to Special:Block and Special:BlockList:
Screenshots for Adding a notice on Special:Contributions & Adding links to Special:Contributions:















