Page MenuHomePhabricator

API: Ability to search by user id
Closed, ResolvedPublic

Description

Currently, you can use the API to search for a list of users using usernames (the ususers propery). However, there is no way to search using their user ids instead.

It would be nice if such a parameter existed (or the ususers property was updated to also accept a list of user ids)

(Current API info is at https://www.mediawiki.org/wiki/API:Users)


Version: 1.20.x
Severity: enhancement

Details

Reference
bz32494
ReferenceSource BranchDest BranchAuthorTitle
repos/mediawiki/services/ipoid!194main-I5e7aef67f734f234e632f05f4a2a7ebaee6bc74amainkharlanblubber: Use "includes" instead of "copies"
repos/mediawiki/services/ipoid!193main-Ibadfffbb27d96ff9c4ef30bc1db22de6b39d5ab7mainkharlaninit-db: Don't assume that database exists
repos/mediawiki/services/ipoid!187fix-import-continuemaintchandersupdate-db.js: Fix logging to import_status
repos/mediawiki/services/ipoid!172main-If648356e2b62b2c310d9adcef7db361040c29dacmainstranGuard against already-run imports
repos/mediawiki/services/ipoid!171main-I2dc633c649816aa02e79ee04f5a01b19ec456a8amainstranRecover from failed batches
repos/mediawiki/services/ipoid!170main-I3a652b4673a21d5d1c9b95468859a2ca7b9fa3a8mainstranAllow imports to continue even if a batch has an error
repos/mediawiki/services/ipoid!169guard-rerunning-importsmainstranGuard against already-run imports
repos/mediawiki/services/ipoid!168rerun-failed-batchesmainstranDraft: Recover from failed batches
repos/mediawiki/services/ipoid!167implement-batch-err-recoverymainstranDraft: Allow imports to continue even if a batch has an error
repos/mediawiki/services/ipoid!155update-tunnel-definitionmainstranRemove anonymous property from tunnels
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:00 AM
bzimport set Reference to bz32494.

I'm intrested to work on this bug.Can someone please assign this to me?

aravikn wrote:

Would someone help me with this?

Aravind: How could I help you with this? (Intentional counterquestion; as your question is too vague to get answered in a helpful way.)

aravikn wrote:

I'm sorry Andre, this always happens with me. The reason why the question was vague was because I did not really understand what I'm supposed to do with the code. I was able to locate it in the code though.

Change 252893 had a related patch set uploaded (by TyA):
T34494 API: Get user info with user ids

https://gerrit.wikimedia.org/r/252893

TyA set Security to None.

Change 252893 abandoned by TyA:
T34494 API: Get user info with user ids

Reason:
Thanks for the comments Anomie! I believe I bit off a bit more than I can chew at the moment, so rather than letting this rot I'm going to abandon the change.

https://gerrit.wikimedia.org/r/252893

Anomie removed TyA as the assignee of this task.Jul 26 2016, 4:00 PM
Anomie removed a project: Patch-For-Review.
Anomie added a subscriber: TyA.

Yes, this task says "Open, Low" in the upper left corner.

McIntireEvan renamed this task from API: Give user information for user ids to API: Ability to search by user id.Nov 30 2016, 8:45 PM
McIntireEvan updated the task description. (Show Details)
McIntireEvan subscribed.

I will mentor this in Google-Code-In-2016

(or the ususers property was updated to also accept a list of user ids)

That's not terribly likely to be workable, since it's possible to have a username that is an integer.

Filip subscribed.

I'll make it for GCI.

Change 325259 had a related patch set uploaded (by Filip):
Added "API: Ability to search by user id"

https://gerrit.wikimedia.org/r/325259

Change 325259 merged by jenkins-bot:
ApiQueryUsers: Add ability to search by user ID

https://gerrit.wikimedia.org/r/325259