Last modified: 2012-12-30 20:51:07 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 T37614, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35614 - Feature request: Module "List all (sub-)category-members"
Feature request: Module "List all (sub-)category-members"
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-30 16:50 UTC by Rainer Rillke @commons.wikimedia
Modified: 2012-12-30 20:51 UTC (History)
5 users (show)

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


Attachments

Description Rainer Rillke @commons.wikimedia 2012-03-30 16:50:05 UTC
Allow listing of files in a category + all sub-categories. This request is for an API module.

It is a highly requested feature on Commons and would solve the problem of too deep categorization vs. categories with too many category members.

This is nothing expected to be done in 1/2 year and of course you must create the technical infrastructure before.

The current system is neither efficient nor sufficient for the editors and viewers.

There might be better ideas on [[:commons:User:Multichill/Next generation categories]]
Comment 1 Sam Reed (reedy) 2012-03-30 16:56:23 UTC
What's wrong with list=categorymembers and the cmtype set to subcat|file?

https://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Physics&cmtype=subcat|file
Comment 2 Rainer Rillke @commons.wikimedia 2012-03-30 17:12:04 UTC
Nothing except it does not list the subcategory *members* and one has to do recursive calls. And when all of these calls are ready, one can start with sorting. This must be more efficient. Do you need samples for use cases?
Comment 3 Sam Reed (reedy) 2012-03-30 17:20:03 UTC
That makes sense, though, I'm not sure why it needs to be done on the server side.

If you pull a list of all category members, and recursively go through and pull the members lists (using continue where necessary). Track which categories you've been to (so you don't visit them multiple times pointlessly).

I'm not sure having the server do this automagically is sensible, or even more efficient, as for some category trees, the number of members will explode by many magnitudes


I'm inclined to WONTFIX this
Comment 4 Rainer Rillke @commons.wikimedia 2012-03-30 17:43:00 UTC
It would be also useful for the interface:
* According to our current system, it would be ideal if [[Category:Churches]] only contains subcategories.
* You have no possibility to view all churches without going along the whole category tree
* Instead of getting an overview, you get lost in the tree. Often seeing only one file in one category.

Sorting would not be that important in this case.

If you decline this request, I assume you will decline an interface request as well.
Comment 5 Rainer Rillke @commons.wikimedia 2012-03-30 17:44:37 UTC
And yes, there is http://toolserver.org/~magnus/catscan_rewrite.php

But how long should we send people to toolserver for tasks that should be done by the software itself?
Comment 6 Sam Reed (reedy) 2012-03-30 18:03:11 UTC
(In reply to comment #5)
> But how long should we send people to toolserver for tasks that should be done
> by the software itself?

I'm not sure what dictates when a piece of software should or shouldn't have an arbitrary feature
Comment 7 Rainer Rillke @commons.wikimedia 2012-03-30 18:10:16 UTC
You don't have a working feedback system for MediaWiki. That's one of the biggest weaknesses in my eyes so one has to use bugzilla. (http://input.mozilla.com/en/feedback)
Comment 8 Rd232 2012-03-31 11:21:29 UTC
(In reply to comment #7)
> You don't have a working feedback system for MediaWiki. That's one of the
> biggest weaknesses in my eyes so one has to use bugzilla.
> (http://input.mozilla.com/en/feedback)

+1. Bugzilla is fine for simple *bugs*, but for complex feature requests, it sucks, IMO. I've never understood why there isn't some kind of a wiki-based discussion system attached.

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


Navigation
Links