Page MenuHomePhabricator

Add an API action to just change content model
Closed, ResolvedPublic

Description

action=changecontentmodel to accompany the new Special:ChangeContentModel (rMWfa31bf1675af: Add Special:ChangeContentModel). We already allow people to change content model via action=edit, this would let them do it without re-sending the page text.

Details

Related Gerrit Patches:

Event Timeline

Legoktm created this task.Jul 28 2015, 5:53 PM
Legoktm raised the priority of this task from to Medium.
Legoktm updated the task description. (Show Details)
Legoktm added subscribers: Legoktm, Anomie.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 28 2015, 5:53 PM
Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.Jul 28 2015, 6:01 PM
DannyS712 lowered the priority of this task from Medium to Low.
DannyS712 moved this task from Unsorted to Next on the User-DannyS712 board.Aug 29 2019, 8:31 AM

Is Core Platform Team okay with this addition?

Seems reasonable and uncontroversial to me, I'd review and merge a patch without asking for additional consensus. I don't know what the actual PMs might think.

Seems reasonable and uncontroversial to me, I'd review and merge a patch without asking for additional consensus. I don't know what the actual PMs might think.

Thanks. I've written most of it, just trying to expand the tests to bit more (currently at 84% coverage)

Change 563701 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] Add an api module to edit the content model of a page

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

DannyS712 moved this task from Next to Awaiting review and deployment on the User-DannyS712 board.

@Anomie I've eliminated the duplication and added lots of tests. Can you take another look?

Change 563701 merged by jenkins-bot:
[mediawiki/core@master] Add a ContentModelChange helper, and an api module that uses it

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

Should be included in tech news