Last modified: 2008-02-05 15:45:00 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 T14912, the corresponding Phabricator task for complete and up-to-date bug report information.
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