Page MenuHomePhabricator

It should be possible to query the API to find out what lists an article is on
Closed, InvalidPublic

Description

When visiting the Spain article, I want to know which lists that I own that Spain appears on. This way I can easily show iconography that allows a user to add or remove an item from the list

There appears to be no API query to obtain this information leading to a confusing web experience showing all pages as belonging to no lists:

Screen Shot 2018-07-06 at 11.55.22 AM.png (483×356 px, 33 KB)

Event Timeline

Jhernandez added a subscriber: Jhernandez.

Please when creating subtasks be careful about the projects you keep on the task... It is creating unnecessary work for different people... :(

Set as low for now as we are focused on other things this quarter.

Totally makes sense. I guess this is not an issue in apps since they have the lists info downloaded locally, but I can see how without that being the case on web we would need some kind of query by title to get the list entries and lists it belongs to.

Thanks for the report 👍

Tgr added a subscriber: Tgr.

That's what project/title is for: action=query&meta=readinglists&rlproject=en.wikipedia.org&rltitle=Spain

You're right. Thank you.
Please consider expanding the doc for this part of the api, as it was a little confused:
"Title of the page to filter on. Must be used together with rlproject."

>

"Title of the page to filter on. Must be used together with rlproject. Will only return lists which include this title."

Change 451893 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/extensions/ReadingLists@master] Improve API documentation for query+readinglists project/title param

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

Change 451893 merged by jenkins-bot:
[mediawiki/extensions/ReadingLists@master] Improve API documentation for query+readinglists project/title param

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