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.

Event Timeline

Legoktm raised the priority of this task from to Medium.
Legoktm updated the task description. (Show Details)
Legoktm added subscribers: Legoktm, Anomie.
DannyS712 lowered the priority of this task from Medium to Low.

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

@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