Last modified: 2007-07-03 19:42:59 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 T12456, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10456 - prop=sortkey ignored for generator=categorymembers
prop=sortkey ignored for generator=categorymembers
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
http://de.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-03 19:00 UTC by Stefan Bauer
Modified: 2007-07-03 19:42 UTC (History)
1 user (show)

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


Attachments

Description Stefan Bauer 2007-07-03 19:00:57 UTC
cmprop is working fine in list mode, but in generator mode the parameter gcmprop is ignored.
Comment 1 Roan Kattouw 2007-07-03 19:02:15 UTC
(In reply to comment #0)
> cmprop is working fine in list mode, but in generator mode the parameter
> gcmprop is ignored.
Weird. Does this occur only with prop=sortkey (as the title suggest) or with the gcmprop parameter in its entirety? Either way, I'm on it.
Comment 2 Roan Kattouw 2007-07-03 19:11:01 UTC
Resolving as INVALID. Generators are just intended to generate a titles/pageids/revids array for use in the next step. Outputting sortkey while in generator mode is simply not possible.
Comment 3 Stefan Bauer 2007-07-03 19:30:56 UTC
No problem if this behaviour is as expected, but then the documentation should be checked - at the moment I can't find the slightest hint for these limitations.
Comment 4 Roan Kattouw 2007-07-03 19:32:34 UTC
(In reply to comment #3)
> No problem if this behaviour is as expected, but then the documentation should
> be checked - at the moment I can't find the slightest hint for these
> limitations.
The documentation is incomplete as hell anyway. Many API features are even entirely undocumented. 

Comment 5 Stefan Bauer 2007-07-03 19:40:39 UTC
I see, the normal way of programming ;-)

What about an error for paramters that are allowed in prop/list mode but ignored in generator mode - instead of just silently ignoring them?
Comment 6 Roan Kattouw 2007-07-03 19:42:59 UTC
(In reply to comment #5)
> I see, the normal way of programming ;-)
> 
> What about an error for parameters that are allowed in prop/list mode but
> ignored in generator mode - instead of just silently ignoring them?
Could be done. We had a little trouble with gwlprop, which wasn't allowed, but because there was a default value for it, an error would *always* be thrown. I suggested checking against the default, but Yuri fixed it by simply silently ignoring the gwlprop param. We'd have to discuss this with Yuri before we go around changing half a dozen files.

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


Navigation
Links