Page MenuHomePhabricator

API:Categorymembers continue despite returning empty list
Closed, InvalidPublic

Description

The category members API appears to return a continue attribute and token even when it returns an empty list of pages as seen here.

Given that the API returns no pages, (an empty list) there shouldn't be a continue attribute sent back.

This bug only seems to surface when the cmnamespace filtering option is chosen.

Event Timeline

DannyS712 subscribed.

https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bcategorymembers has a note on cmnamespace (also shown on the api sandbox) saying "Note: Due to miser mode, using this may result in fewer than cmlimit results returned before continuing; in extreme cases, zero results may be returned."

In other words, not a bug - known behavior

(just so you know though, if you continue through to the end, or just set a high enough limit, you'll see that in this case there are 0 pages in the category in the specified namespace)

https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bcategorymembers has a note on cmnamespace (also shown on the api sandbox) saying "Note: Due to miser mode, using this may result in fewer than cmlimit results returned before continuing; in extreme cases, zero results may be returned."

In other words, not a bug - known behavior

(just so you know though, if you continue through to the end, or just set a high enough limit, you'll see that in this case there are 0 pages in the category in the specified namespace)

Ah, okay, I must've missed that :)