Last modified: 2008-08-16 21:21:55 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 T17178, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15178 - Hidden categories and various category-related queries
Hidden categories and various category-related queries
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.14.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-16 12:29 UTC by MER-C
Modified: 2008-08-16 21:21 UTC (History)
2 users (show)

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


Attachments

Description MER-C 2008-08-16 12:29:48 UTC
This feature request has three logically related facets:

1) Hidden categories marked as __HIDDENCAT__ should be marked as hidden in some way, e.g. <cl ns="14" title="Category:Move protected" hidden=""/>. Sample query is the URL for this bug. The current way of determining this is to get the text of the category page or through list=allcategories (either way, a cumbersome second query) because...

2) ... prop=categoryinfo doesn't mention hidden status either (sample query: http://en.wikipedia.org/w/api.php?action=query&prop=categoryinfo&titles=Category:Move+protected).

3) There should be an option to show/hide hidden categories on prop=categories, e.g. clshow={nothidden,hidden,both}. The current behaviour is both, hidden would return only hidden cats and nothidden only non-hidden cats.
Comment 1 Roan Kattouw 2008-08-16 21:21:55 UTC
(In reply to comment #0)
> This feature request has three logically related facets:
> 
> 1) Hidden categories marked as __HIDDENCAT__ should be marked as hidden in some
> way, e.g. <cl ns="14" title="Category:Move protected" hidden=""/>. Sample query
> is the URL for this bug. The current way of determining this is to get the text
> of the category page or through list=allcategories (either way, a cumbersome
> second query) because...
prop=categories doesn't mention hidden status, but it doesn't need to, because...

> 2) ... prop=categoryinfo doesn't mention hidden status either (sample query:
> http://en.wikipedia.org/w/api.php?action=query&prop=categoryinfo&titles=Category:Move+protected).
...once bug 15191 is fixed, this will work, and you can use generator=categories&prop=categoryinfo
> 
> 3) There should be an option to show/hide hidden categories on prop=categories,
> e.g. clshow={nothidden,hidden,both}. The current behaviour is both, hidden
> would return only hidden cats and nothidden only non-hidden cats.
That's the only remaining issue for this bug. It was fixed in r39504 (of course that won't work either until bug 15191 is fixed).

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


Navigation
Links