Page MenuHomePhabricator

Admins should be able to remove an active block in Special:Block
Closed, ResolvedPublic

Description

Background
Admins should be able to remove a block from a target user or IP range if the user has shown good behavior or if the block is no longer necessary.

Recovered from original description
After T348682: List existing blocks on Special:Block, it could be useful to link directly to unblock from the list of active blocks. Special:Unblock should be able to preload the block information by block id. Special:Unblock might need to change depending on wether we are unblocking a target (removing all active blocks) or removing a specific block

User Story
As an admin on the wikis, when I search for a user or IP on on Special:Block, then I should see a list of their active blocks, and I should have an easy way to remove blocks that are no longer necessary.

Benefits (why should this be implemented?):

  • Admins will need ways to remove a user's block.

Acceptance Criteria:

  • A user must have admin rights to see the block search results
  • Typing in a valid IP address, range, or username should populate that target's blocks
  • The blocks should appear in a table
  • Clicking remove should direct the user to special:Unblock` with the block pre-loaded
  • The admin should provide a reason for removing the block.
  • The admin can also monitor the user/talk pages when removing the block
  • By confirming, the block should be removed and the block log should be updated.

Details for QA:
Admins should be linked to Special:Unblock/#id

Designs:
TBD. Depends on T348682: List existing blocks on Special:Block

Related Conversations:
https://meta.wikimedia.org/wiki/Talk:Community_Wishlist_Survey_2023/Multiblocks

Event Timeline

@KSiebert @dmaza I'm curious if we can use more consistent language in this ticket to create more clarity? I assume "unblock" and "delete block" are the same. Can we use the same language throughout the ticket to prevent any confusion? The title of the ticket is "Delete existing blocks on Special:Block" and the "Benefits" section mentions "deletion" again, but the description talks about unblocking and so does the user story.

@aishwaryavardhana I am happy for you to suggest which language to go with. As for the discussion, @dmaza who needs to be involved in this discussion and when is it happening? Also, keep in mind that this is an epic/story that other tasks are children of.

dmaza renamed this task from Delete existing blocks on Special:Block to Have easy access to Special:Unblock from Special:Block.Nov 16 2023, 9:42 PM
dmaza updated the task description. (Show Details)
dmaza renamed this task from Have easy access to Special:Unblock from Special:Block to Remove active blocks from Special:Block.Nov 16 2023, 9:49 PM
JWheeler-WMF renamed this task from Remove active blocks from Special:Block to Admins should be able to remove an active block in Special:Block.May 23 2024, 9:54 PM

It looks like another part of this story is when we open Special:Block/ExampleUser?id=123&unblock=1 and want to be able to remove a block. Currently this doesn't work, but after T380189 there will be a remove-block confirmation dialog that could be triggered. However, that dialog doesn't contain all the information about the block, so the user wouldn't see which block they're actually removing (whereas in the normal flow they'd have got to that dialog by clicking 'remove' in the active blocks table and so we assume they remember what they're removing). We probably need a new task, and it should decide if we a) want to open the dialog anyway; b) only highlight the row in the active blocks table; or c) something else.