Page MenuHomePhabricator

uclimit per user
Closed, DeclinedPublic

Description

In the API, it is currently possible to request the uc list for multiple users (not really well explained in the api.php help btw.) You can limit these results with uclimit. You can do: "Get the last 50 contributions made by either of these 8 users", with that option. However it is very difficult to do something like: "get the last 5 contributions of these 8 users". I'm working on a "userwatchlist" type of javascript on en.wikipedia.org and I could really benefit from a uclimitperuser.


Version: unspecified
Severity: enhancement

Details

Reference
bz13372

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:02 PM
bzimport set Reference to bz13372.
bzimport added a subscriber: Unknown Object (MLST).

Bryan.TongMinh wrote:

That is not really possible without querying once for each user, I think.

This isn't gonna happen, because it would allow for huge limits (uclimit=500&ucuser=A|B|C|....|Z would give 13000 results) and lots of DB queries. Even if this were to be implemented, it would hardly be faster than simply doing 8 requests.

So you're just gonna have to do:

ucuser=Alice&uclimit=5
ucuser=Bob&uclimit=5
etc.