Last modified: 2008-02-05 15:45:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12912 - Search for contributions for more than one user in one request to api.php
Search for contributions for more than one user in one request to api.php
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-04 22:03 UTC by Tra
Modified: 2008-02-05 15:45 UTC (History)
1 user (show)

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


Attachments

Description Tra 2008-02-04 22:03:32 UTC
In query.php, it is possible to request the user contributions for more than one user, using a url like:
http://en.wikipedia.org/w/query.php?what=usercontribs&titles=User:Example1|User:Example2&uclimit=20&uccomments

It would be good to have this same functionality in api.php, perhaps using a url like:
http://en.wikipedia.org/w/api.php?action=query&list=usercontribs&ucuser=Example1|Example2
Comment 1 Roan Kattouw 2008-02-05 14:38:48 UTC
This can be done, but note that the implementation will differ from query.php's at certain points. uclimit will be the *total* number of contributions to return (not *per user*), and the example link you provided will not separate Example1's and Example2's contributions: you'll just get a list of the 10 most recent contributions that were made by either Example1 or Example2, with no guarantee that you won't get 10 contribs by the same user. query.php's implementation may be somewhat more user-friendly, but causes a significant performance hit.

I'll probably implement this today.
Comment 2 Roan Kattouw 2008-02-05 15:45:00 UTC
Added in r30578.

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


Navigation
Links