When sending the API request to edit a block, pass the block's ID as the value for id.
Description
Description
NOTE: T381495: If the Special:Block url contains id, load the user and the block and show form in edit mode and T378147: Block API: Add support for multiblocks need to be complete and merged first
Details
Details
- Other Assignee
- dom_walden
Related Changes in Gerrit:
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| SpecialBlock: Handle block ID or 'newblock' when saving form | mediawiki/core | master | +28 -8 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | Samwilson | T380187 Pass `id` with the API request to edit a block | |||
| Resolved | tstarling | T378147 Block API: Add support for multiblocks | |||
| Resolved | • HMonroy | T378140 SpecialBlock: Accept a block ID to modify a specific block |
Event Timeline
Comment Actions
Already being worked on as part of T381342: Special:Block empty state. Hide the block form until user clicks "new block" or "edit" it seems :)
Comment Actions
Change #1105102 had a related patch set uploaded (by Samwilson; author: Samwilson):
[mediawiki/core@master] SpecialBlock: Handle block ID or 'newblock' when saving form
Comment Actions
Change #1105102 merged by jenkins-bot:
[mediawiki/core@master] SpecialBlock: Handle block ID or 'newblock' when saving form
Comment Actions
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.