Page MenuHomePhabricator

Need a username parameter in query-continue for API usercontribs
Closed, ResolvedPublic

Description

Author: herd

Description:
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.


Version: 1.14.x
Severity: normal

Details

Reference
bz16018

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:20 PM
bzimport set Reference to bz16018.

Created attachment 5449
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.

Attached: