Page MenuHomePhabricator

ApiParse: Do not generate warning on parameter `variant`
Open, LowPublic

Description

API action=parse supports the URL parameter variant. Compare
https://sr.wikipedia.org/w/api.php?action=parse&format=jsonfm&formatversion=2&page=HTTP&variant=sr-ec and
https://sr.wikipedia.org/w/api.php?action=parse&format=jsonfm&formatversion=2&page=HTTP&variant=sr-el

But it generates the warning:

"warnings": "Unrecognized parameter: 'variant'"

So remove the warning and support the parameter officially.

Event Timeline

Fomafix created this task.Nov 3 2015, 2:52 PM
Fomafix claimed this task.
Fomafix raised the priority of this task from to Low.
Fomafix updated the task description. (Show Details)
Fomafix added a project: MediaWiki-API.
Fomafix added subscribers: Reedy, Aklapper, Fomafix.

Change 250686 had a related patch set uploaded (by Gerrit Patch Uploader):
ApiParse: Support parameter variant

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

cscott added a subscriber: cscott.Feb 28 2018, 6:20 PM

Quick cross-reference: the variant parameter is only documented here in phab: T44356#439479 and T34906#381101
The patch in gerrit seems to be stuck based on resolution of caching issues. Note that caching is apparently currently broken in some cases if you use this API parameter as a logged-in user, so beware.

Anomie added a subscriber: Anomie.Jul 11 2018, 5:48 PM

Resolving T44240: LanguageConverter should not inspect global state to determine the variant would make it easier to progress on this task, since then the API can have more direct control over the variant used (or at least better knowledge of how the variant is going to be determined).

Aklapper removed Fomafix as the assignee of this task.Jun 19 2020, 4:29 PM

This task has been assigned to the same task owner for more than two years. Resetting task assignee due to inactivity, to decrease task cookie-licking and to get a slightly more realistic overview of plans. Please feel free to assign this task to yourself again if you still realistically work or plan to work on this task - it would be welcome!

For tips how to manage individual work in Phabricator (noisy notifications, lists of task, etc.), see https://phabricator.wikimedia.org/T228575#6237124 for available options.
(For the records, two emails were sent to assignee addresses before resetting assignees. See T228575 for more info and for potential feedback. Thanks!)

Aklapper removed a subscriber: Anomie.Oct 16 2020, 5:02 PM