Page MenuHomePhabricator

SpecialUnblock: update block display, and blocking action
Closed, DeclinedPublic

Description

Background

Before, you could only place a single block on a user at a time. So the only information you need to remove a block is the username, i.e. Special:Unblock/Username.

With multiblocks, we need a means to remove a specific block on a user. This is necessary for no-JS users, and for any "unblock" links that may appear elsewhere on the wiki (such as Special:BlockList or at the top of Special:Contribs/SomeBlockedUser).

We've decided we do not want to update the form to use Codex.

Acceptance criteria

SpecialUnblock.php:

  • If neither the user/IP nor an id is specified
    • no change from current functionality
  • When the user is specified
    • hide the "IP address, username or block ID" input and show the username/IP instead
    • show the "reason" input
    • show the "Watch this user's user and talk pages" checkbox
    • Show a button saying "remove all blocks for this user"
      • clicking the button will remove all blocks (after asking for confirmation)
    • Show a full list of active blocks for the user
    • Show the block log and the suppression log underneath
  • When id is supplied
    • hide the "IP address, username or block ID" input and show the username/IP instead
    • show the "reason" input
    • show the "Watch this user's user and talk pages" checkbox
    • Show a button saying "remove block"
      • clicking the button will remove the specified block (after asking for confirmation)
    • show only the block that's about to be removed

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Cparle renamed this task from SpecialUnblock [multiblocks]: Accept a block ID to remove a specific block from a user to SpecialUnblock [multiblocks]: update tables and blocking action.Nov 18 2024, 11:35 AM
Cparle updated the task description. (Show Details)
Cparle updated the task description. (Show Details)
Cparle updated the task description. (Show Details)
Cparle renamed this task from SpecialUnblock [multiblocks]: update tables and blocking action to SpecialUnblock: update block display, and blocking action.Nov 18 2024, 3:32 PM
Cparle updated the task description. (Show Details)
Cparle updated the task description. (Show Details)
Cparle updated the task description. (Show Details)
Cparle updated the task description. (Show Details)