Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Page MenuHomePhabricator

Remove use of User::isBlockedGlobally and User::getGlobalBlock in FileImporter
Closed, ResolvedPublic1 Estimated Story Points

Description

Following T257701: Add global blocks into CompositeBlocks rather than treating them separately
Remove usage of User::isBlockedGlobally and User::getGlobalBlock in FileImporter

Usage of User::isBlockedGlobally found here
Usage of User::getGlobalBlock found here

Event Timeline

Change 841474 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/FileImporter@master] Use GlobalBlocking::getUserBlock instead of User::isGloballyBlocked

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

Change 841476 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[integration/config@master] Add GlobalBlocking phan dependency for FileImporter

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

WMDE-Fisch set the point value for this task to 1.

Change 841476 merged by jenkins-bot:

[integration/config@master] Add GlobalBlocking phan dependency for FileImporter

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

Change 841474 merged by jenkins-bot:

[mediawiki/extensions/FileImporter@master] Use GlobalBlocking::getUserBlock instead of User::isGloballyBlocked

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

As @dom_walden noted, we could remove this dependency on GlobalBlocking again, once T257701: Add global blocks into CompositeBlocks rather than treating them separately is done, since User::getBlock will get global blocks too.

@TThoabala Would you mind filing a follow-up task and linking that here? Thanks!

I checked that a blocked IP cannot see Special:ImportFile, and sees instead the MediaWiki:Blockedtext message.

https://commons.wikimedia.beta.wmflabs.org FileImporter – (f35ded3) 06:19, 19 October 2022. GlobalBlocking – (5b7ad2d) 06:19, 19 October 2022.

As @dom_walden noted, we could remove this dependency on GlobalBlocking again, once T257701: Add global blocks into CompositeBlocks rather than treating them separately is done, since User::getBlock will get global blocks too.

@TThoabala Would you mind filing a follow-up task and linking that here? Thanks!

Thanks @Tchanders, I have filled a follow up task here https://phabricator.wikimedia.org/T321240

I guess this is done and the follow up covers for remaining work? If not, feel free to re-open.