Page MenuHomePhabricator

Incorrect documentation of the dir parameter of list=watchlistraw
Closed, ResolvedPublic

Description

See e.g. https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bwatchlistraw. Description of wrdir states that

In which direction to enumerate:

newer
    List oldest first. Note: wrstart has to be before wrend.
older
    List newest first (default). Note: wrstart has to be later than wrend.

One of the following values: ascending, descending
Default: ascending

Values newer/older are not applicable here (apparently copied over from list=watchlist or other similar action). Also there are no wrstart and wrend parameters

Event Timeline

Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript
Anomie subscribed.

It's using the "standard" documentation for dir parameters, which seems inappropriate here.

Change 295240 had a related patch set uploaded (by WMDE-leszek):
Fix documentation of the dir parameter of list=watchlistraw API action

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

Anomie assigned this task to WMDE-leszek.

Change 295240 merged by jenkins-bot:
Fix documentation of the dir parameter of list=watchlistraw API action

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