Page MenuHomePhabricator

Create GlobalBlockingConnectionProvider
Closed, ResolvedPublic1 Estimated Story Points

Assigned To
Authored By
Dreamy_Jazz
Feb 13 2024, 12:22 PM
Referenced Files
F41938404: T357399_GB_OldPatch.webm
Feb 17 2024, 2:44 AM
F41938377: 2024-02-16_18-34-10.png
Feb 17 2024, 2:44 AM
F41935603: T357399_GlobalBlock_Regression.webm
Feb 17 2024, 2:44 AM
F41935568: 2024-02-16_10-44-17.png
Feb 17 2024, 2:44 AM
F41935561: 2024-02-16_10-43-46.png
Feb 17 2024, 2:44 AM
F41935545: 2024-02-16_10-41-18.png
Feb 17 2024, 2:44 AM
F41935536: 2024-02-16_10-30-07.png
Feb 17 2024, 2:44 AM
F41935531: 2024-02-16_10-28-17.png
Feb 17 2024, 2:44 AM

Description

A service is needed that allows callers to get a database connection to the virtual-globalblocking database domain. This will replace the methods in the GlobalBlocking.php static utility class.

QA Results - Local

Event Timeline

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

[mediawiki/extensions/GlobalBlocking@master] Create GlobalBlockingConnectionProvider

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

Change 1002970 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Create GlobalBlockingConnectionProvider

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

Suggested steps for QA:

  1. Install GlobalBlocking, if not already installed
  2. Log into an account with steward rights if you have MediaWiki-extensions-CentralAuth installed or an account that has the globalblock right (you can give this right to admins using $wgGroupPermissions['sysop']['globalblock'] = true; in LocalSettings.php)
  3. Use Special:GlobalBlock to make a global block on an IP address
  4. Load Special:GlobalBlockList
  5. Verify that the global block you applied appears in the list of global blocks.

These steps were designed to verify that no changes to the on-wiki interface have been made by this patch (as this ticket and patch refactored existing code without changing functionality). You may wish to test that nothing changed compared to running these steps on a wiki which does not have this change applied.

@Dreamy_Jazz Nothing changed as previously and has the same functions as seen in screenshots and .webm. This will be moved to Done. Thanks for all your work!

Status: ✅PASS
Environment: Local: 1.42.0-alpha (f3389a3)23:25, 16 February 2024; GlobalBlocking: commit 093123a6b8b990b96061450874cfac5235d347e8 & bffe54f3cbc809dd36389ea26e9ca05f631b3414
OS: macOS Sonoma 14.2.1
Browser: Chrome 121
Skins. Vector 2022
Device: MBA M2
Emulated Device:: n/a
Test Links:
https://en.m.wikipedia.beta.wmflabs.org/wiki/Dog#

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

Steward rightsGlobal BlockGlobal Block ListUser BlockAfter ExpirationIP Range Global BlockIP Range Global Block List
2024-02-16_09-44-36.png (1,208×1,109 px, 212 KB)
2024-02-16_10-27-51.png (1,480×769 px, 130 KB)
2024-02-16_10-28-17.png (2,953×617 px, 161 KB)
2024-02-16_10-30-07.png (2,994×528 px, 168 KB)
2024-02-16_10-41-18.png (3,356×1,062 px, 209 KB)
2024-02-16_10-43-46.png (2,954×752 px, 156 KB)
2024-02-16_10-44-17.png (2,939×614 px, 159 KB)

'Latest Patch'

2/9 Patch

2024-02-16_18-34-10.png (973×491 px, 84 KB)