Last modified: 2008-10-18 10:14:48 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 T18018, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16018 - Need a username parameter in query-continue for API usercontribs
Need a username parameter in query-continue for API usercontribs
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.14.x
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-17 23:09 UTC by Splarka
Modified: 2008-10-18 10:14 UTC (History)
4 users (show)

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


Attachments
Patch (3.76 KB, patch)
2008-10-18 09:56 UTC, Roan Kattouw
Details

Description Splarka 2008-10-17 23:09:52 UTC
query-continue in list=usercontribs with multiple usernames (ucuser=foo|bar or ucuserprefix, user or IP) cannot query-continue completely:

Example: if 217.121.144.89 has 500 edits and .90 has one chronologically in the middle, the query-continue will never find the one by .90:
http://en.wikipedia.org/w/api.php?action=query&list=usercontribs&ucuserprefix=217.121.144

Another example with logged in users (sorted by userID in this case):
http://en.wikipedia.org/w/api.php?action=query&list=usercontribs&ucuser=Splarka|Tim_Starling

Ideally, after listing all contributions by first users (numerically by IP, numerically by user ID), the next user's list would start.

More ideally would to be sorting all matched users' contribs by time in a mixed format, but this was deemed too inefficient.
Comment 1 Roan Kattouw 2008-10-18 09:56:37 UTC
Created attachment 5449 [details]
Patch

The attached patch fixes this bug by introducing a uccontinue parameter which contains both the username and the timestamp to continue at. In single user mode (i.e. one username in ucuser), ucstart is still used as query-continue parameter.
Comment 2 Alexandre Emsenhuber [IAlex] 2008-10-18 10:14:48 UTC
applied in r42198.

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


Navigation
Links