Page MenuHomePhabricator

Add ParserOutput::getWarnings() to action=parse output
Closed, ResolvedPublic

Description

This information is available from an edit preview, and should be via the API too. As a node in the result, of course, not as API warnings.

If applicable, also expose it via action=expandtemplates or other endpoints that deal with a ParserOutput.

Event Timeline

Anomie raised the priority of this task from to Needs Triage.
Anomie updated the task description. (Show Details)
Anomie added a project: MediaWiki-Action-API.
Anomie moved this task to Needs Code on the MediaWiki-Action-API board.
Anomie subscribed.

I would like to work on this. Something like following api result is required?

{  
"parse": {
          "title": "API",
          "text": {
              "*": "parsed text"
          },
          "parse_warnings": [],         
      } 
}
"parse_warnings": [],

Yes, although "parsewarnings" might fit better with the rest of the API.

Change 196898 had a related patch set uploaded (by Bmansurov):
[mediawiki/core@master] API: Allow returning parse warnings for action=parse

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

Change 196898 merged by jenkins-bot:
[mediawiki/core@master] API: Allow returning parse warnings for action=parse

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

Anomie assigned this task to bmansurov.