Page MenuHomePhabricator

Unblock API: Add support for multiblocks
Open, Needs TriagePublic

Description

Background

The Unblock API currently assumes $wgEnableMultiBlocks is false, and provides no means to remove a specific block.

For the Block API, see T378147

Acceptance criteria

  • Use the existing id parameter to support block ID, which tells the backend to remove only that block
  • If both an id and username are provided, error out with a detailed message - "you should only provide username OR id, not both"
  • If no id is provided and a user is provided, remove all blocks for that user (this is the current behaviour)

Details

SubjectRepoBranchLines +/-
mediawiki/coremaster+227 -108
Customize query in gerrit

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Cparle updated the task description. (Show Details)

Change #1102408 had a related patch set uploaded (by Dmaza; author: Dmaza):

[mediawiki/core@master] [WIP]

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

I changed the acceptance criteria to use the existing id parameter, instead of a new blockid. https://en.wikipedia.org/w/api.php?action=help&modules=unblock

Change it back if that doesn't work, for whatever reason.