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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy