Page MenuHomePhabricator

Display partial action blocks properly in Special:CentralAuth
Closed, ResolvedPublic1 Estimated Story Points

Description

If a user has a partial block against a page, namespace and action, it displays something like this on Special:CentarlAuth:

image.png (190×279 px, 11 KB)

We need to add the message for centralauth-block-editing-action, and remove the link, which currently links to a "Bad title" error page.

The list is built in SpecialCentralAuth::getRestrictionListHTML

We should display action restrictions conditional on the feature flag $wgEnablePartialActionBlocks.

Event Timeline

Do we also want to hide this behind the feature flag, so it does not show when action restrictions are disabled?

Do we also want to hide this behind the feature flag, so it does not show when action restrictions are disabled?

Good point yes - task description updated

Do we also want to hide this behind the feature flag, so it does not show when action restrictions are disabled?

Good point yes - task description updated

It should be shown if action blocks are enabled on the wiki with the block, regardless of if they are enabled on the wiki where the viewer is looking at Special:CentralAuth - is this possible? If not, I would suggest always showing action blocks if they exist

Assuming this is no longer a concern.
Tested by blocking test accounts from pages, namespaces and actions on DE Beta + EN Beta and do have a proper list of pages and namespaces and actions on both Special:CentralAuth and Special:BlockList

  • EN Beta

Screenshot 2023-07-11 at 2.48.08 PM.png (442×1 px, 81 KB)

Screenshot 2023-07-11 at 2.48.15 PM.png (846×1 px, 156 KB)

  • DE beta

Screenshot 2023-07-11 at 2.48.08 PM.png (442×1 px, 81 KB)

Screenshot 2023-07-11 at 2.44.43 PM.png (1×2 px, 259 KB)

@AGueyte Would it be possible to allow access to your screenshots in T282586#9006234?

@AGueyte Would it be possible to allow access to your screenshots in T282586#9006234?

Done!

Tchanders updated the task description. (Show Details)

Thanks - resolving.