Page MenuHomePhabricator

Pass `id` with the API request to edit a block
Closed, ResolvedPublic

Description

When sending the API request to edit a block, pass the block's ID as the value for id.

Details

Event Timeline

TheresNoTime added subscribers: Samwilson, TheresNoTime.

will unlick as I think @Samwilson will have this covered (as mentioned above)

Cparle renamed this task from SpecialBlock: update the "edit" menu item in Active Blocks to Pass `blockid` with the api request to edit a block.Dec 11 2024, 12:47 PM
Cparle updated the task description. (Show Details)
Cparle updated the task description. (Show Details)
MusikAnimal renamed this task from Pass `blockid` with the api request to edit a block to Pass `id` with the api request to edit a block.Dec 12 2024, 6:08 PM

Change #1105102 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/core@master] SpecialBlock: Handle block ID or 'newblock' when saving form

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

Change #1105102 merged by jenkins-bot:

[mediawiki/core@master] SpecialBlock: Handle block ID or 'newblock' when saving form

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

Samwilson renamed this task from Pass `id` with the api request to edit a block to Pass `id` with the API request to edit a block.Dec 19 2024, 6:38 AM
Samwilson updated the task description. (Show Details)
dom_walden subscribed.

A lot of the same testing applies as T378147.

I specifically tested updating the same block many times with different parameters and checking that the block was updated correctly and/or the validation was consistent.