Page MenuHomePhabricator

Documentation and API are inconsistent (action=parse, contentmodel)
Closed, ResolvedPublic

Description

In action=parse, the documentation states that "contentmodel - Content model of the input text. Default is the model of the specified title, or wikitext if title is not specified" long ago. However, https://git.wikimedia.org/commitdiff/mediawiki%2Fcore.git/1104392eba1b7701582054fed11d353868614d62 discourages doing so by showing a warning that there should be a contentmodel if title is not specified. Hence, now the code and the documentation are inconsistent. To make them consistent, either suppressing the warning or changing the documentation to discourage input without contentmodel must be done. I don't know, though, that which way is better.


Version: unspecified
Severity: normal

Details

Reference
bz60192

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:04 AM
bzimport set Reference to bz60192.
bzimport added a subscriber: Unknown Object (MLST).

Change 108307 had a related patch set uploaded by Nullzero:
Update documentation and suppress warning when parsing summary

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

Change 108307 merged by jenkins-bot:
API: update documentation and suppress warning when parsing summary

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

Should be deployed to WMF wikis with 1.23wmf14, see https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the schedule.