Last modified: 2011-03-13 18:05:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18442, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16442 - API: Add a recursive mode to list=categorymembers
API: Add a recursive mode to list=categorymembers
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Roan Kattouw
http://en.wikipedia.org/w/api.php
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-23 23:03 UTC by Melancholie
Modified: 2011-03-13 18:05 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Melancholie 2008-11-23 23:03:25 UTC
Consider adding a recursive mode to list=categorymembers, allowing to easily go done a whole category tree with the API.

Especially on enwiki, categories are linked deep; there is no [[Category:Women]] where all women would be in, for example...
Comment 1 Roan Kattouw 2008-11-24 18:49:54 UTC
(In reply to comment #0)
> Consider adding a recursive mode to list=categorymembers, allowing to easily go
> done a whole category tree with the API.
>
Such a recursive mode would require a huge number of queries to be run which each return a huge number of results for enwiki-size categories (think [[Category:Living people]]) only to throw away most of the results to satisfy the limit. If you really need this recursive tree thing, you can easily do it on the client side. Of course that would take a lot of requests and a lot of time for a big category, but that's exactly why I won't implement it on the server side: while it's OK for your bot to take ages building a huge list, an enwiki server can't really do anything that would take longer than a few seconds.

> Especially on enwiki, categories are linked deep; there is no
> [[Category:Women]] where all women would be in, for example...
> 
Some wikis actually do 'overcategorize' articles, putting an article like [[John F. Kennedy]] in all of [[Category:1963 deaths]], [[Category:1960s deaths]], [[Category:20th century deaths]] and [[Category:Deceased people]], even though the first one implies all the other ones. enwiki doesn't do this, though, and AFAIK all other WMF wikis don't either.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links