Page MenuHomePhabricator

Update the GlobalBlockingLinkBuilder service for global account blocks
Closed, ResolvedPublic1 Estimated Story Points

Description

The GlobalBlockingLinkBuilder needs to be updated to use a different message for the link to Special:GlobalBlock depending on the value of the config added in T356923: Create a configuration value to control whether global account blocks are enabled.

Acceptance criteria

QA Results - Local

Related Objects

StatusSubtypeAssignedTask
In ProgressNiharika
OpenNone
OpenNone
OpenNone
DuplicateNone
OpenSkizzerz
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
ResolvedDreamy_Jazz
OpenNone
OpenDreamy_Jazz
OpenNone
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz

Event Timeline

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

[mediawiki/extensions/GlobalBlocking@master] Update GlobalBlockingLinkBuilder service for global account blocks

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

Change 1007731 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Update GlobalBlockingLinkBuilder service for global account blocks

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

Suggested QA steps:

  1. Install GlobalBlocking, if required
  2. Set $wgGlobalBlockingAllowGlobalAccountBlocks = false; in your LocalSettings.php
  3. Load Special:GlobalBlockList while logged into an account with the steward group and verify the subtitle links look like the following:

image.png (176×1 px, 34 KB)

  1. Remove the code added in line 2 from LocalSettings.php
  2. Reload the page loaded in step 3 and verify the subtitle links have now changed to the following:

image.png (282×1 px, 61 KB)

@Dreamy_Jazz When $wgGlobalBlockingAllowGlobalAccountBlocks = false; is loaded to your LocalSettings.php. you will see "Globally block an IP address". When it is commented out, you will see "Globally block a user" as seen in the .webm. This will be moved to Done. Thanks for all your work and steps!

Status: ✅PASS
Environment: Local: commit 5bdc5ba4b28f6a82cf395cc9d0f3c350c8ed760f, Mon Mar 4 16:55:15 2024; GlobalBlocking: commit 21786b8b2e53b54d0638338c5317943dabfb3364, Mon Mar 4 11:47:57 2024
OS: macOS Sonoma 14.2.1
Browser: Chrome 122, Firefox 123, Safari 17.3, Edge 122
Skins. Vector 2022, Vector 2010, Minerva, Monobook, Timeless
Device: MBA M2
Emulated Device:: n/a
Test Links:
http://localhost:8080/w/index.php?title=Special:GlobalBlockList

✅AC1: https://phabricator.wikimedia.org/T358725

FirefoxSafariEdge
2024-03-04_13-21-30.png (844×3 px, 379 KB)
2024-03-04_13-20-13.png (735×3 px, 358 KB)
2024-03-04_13-21-10.png (688×2 px, 280 KB)