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
- Hovering or clicking on the ellipses at the right of the table should show "edit" or "remove."
- Selecting remove should populate a dialog where the user needs to provide a reason for removing the block.
- The user 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/#blockid
Designs:
TBD. Depends on T348682: List existing blocks on Special:Block
Related Conversations:
https://meta.wikimedia.org/wiki/Talk:Community_Wishlist_Survey_2023/Multiblocks