Page MenuHomePhabricator

Allow a user to perform global blocks on accounts using Special:GlobalBlock
Closed, ResolvedPublic2 Estimated Story Points

Assigned To
Authored By
Dreamy_Jazz
Feb 7 2024, 10:27 PM
Referenced Files
F54810160: image.png
Jun 1 2024, 5:04 AM
F54810137: image.png
Jun 1 2024, 5:04 AM
F54810095: image.png
Jun 1 2024, 5:04 AM
F54810067: image.png
Jun 1 2024, 5:04 AM
F54809954: image.png
Jun 1 2024, 5:04 AM
F54809947: image.png
Jun 1 2024, 5:04 AM
F54807999: image.png
Jun 1 2024, 5:04 AM
F54807991: image.png
Jun 1 2024, 5:04 AM

Description

Special:GlobalBlock allows a user to apply new and modify existing global blocks.

This special page should support applying and modifying global blocks for accounts.

Related Objects

StatusSubtypeAssignedTask
Resolvedkostajh
StalledNone
In ProgressNiharika
OpenNone
OpenNone
OpenNone
OpenNone
DuplicateNone
OpenFeatureDreamy_Jazz
OpenNone
OpenDreamy_Jazz
OpenDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
Resolved Marostegui
Resolved Marostegui
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedBUG REPORTDreamy_Jazz

Event Timeline

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

[mediawiki/extensions/GlobalBlocking@master] [Very WIP] Update GlobalBlockManager for global account blocks

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

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

[mediawiki/extensions/GlobalBlocking@master] [WIP] Update Special:GlobalBlock for account blocks

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

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

[mediawiki/extensions/GlobalBlocking@master] Partially SpecialGlobalBlock for global account blocks

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

Change 1009780 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Partially update SpecialGlobalBlock for global account blocks

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

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

[mediawiki/extensions/GlobalBlocking@master] Expand tests for SpecialGlobalBlock

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

Change #1034187 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Expand tests for SpecialGlobalBlock

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

Change #1007954 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Update Special:GlobalBlock for account blocks

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

Suggested QA steps, which can be performed on betawikis and/or patch demo and/or local wiki:

  1. Log into an account with the steward group
  2. Open Special:GlobalBlock
  3. Use that form to globally block IP and IP range, blocking at least one of these targets with the Globally block anonymous users only checkbox checked.
  4. Verify that these blocks appear in Special:GlobalBlockList after they are performed
  5. Open Special:GlobalBlock again
  6. Use the form to globally block a registered user account, verifying that the Globally block anonymous users only checkbox is disabled if a username is in the target field.
  7. Verify that the account block appears in Special:GlobalBlockList after they are performed
  8. Open Special:GlobalBlock again
  9. Test globally blocking an IP, IP range, and user target while the Also block the given user locally on this wiki checkbox is checked. Verify that the Locally block anonymous users only checkbox is disabled if the target is an account
  10. Verify that the local block is applied by checking it appears in Special:BlockList

You may also wish to test blocking temporary accounts and ensuring that the behaviour of the form is the same as for a normal user account.

One issue I found while writing the QA steps for this has been described at T366352: The "Locally block anonymous users only" checkbox is not properly disabled when it is made visible, and so can safely be ignored. This would affect step 9, where if you don't change the text inside the target input the Locally block anonymous users only checkbox may not be disabled.

I have verified the new code has been implemented and is functioning and displaying as expected... Thank You @Dreamy_Jazz!!!


image.png (859×1 px, 100 KB)

image.png (719×1 px, 111 KB)


image.png (843×1 px, 105 KB)

image.png (722×1 px, 117 KB)


image.png (872×1 px, 110 KB)

image.png (766×1 px, 110 KB)


image.png (974×1 px, 135 KB)

image.png (968×1 px, 131 KB)


image.png (879×434 px, 235 KB)

image.png (455×929 px, 236 KB)


image.png (905×741 px, 106 KB)

image.png (905×741 px, 106 KB)

image.png (685×910 px, 108 KB)

image.png (671×952 px, 234 KB)