Last modified: 2014-09-18 22:44:50 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 T73020, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71020 - list=logevents tries to return both the creating user's and the created user's ids as "userid"
list=logevents tries to return both the creating user's and the created user'...
Status: ASSIGNED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.24rc
All All
: Lowest enhancement (vote)
: ---
Assigned To: Brad Jorsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-18 19:59 UTC by Nathan Larson
Modified: 2014-09-18 22:44 UTC (History)
5 users (show)

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


Attachments

Description Nathan Larson 2014-09-18 19:59:51 UTC
list=logevents doesn't return the user ID of the user who is creating an account. The userid property contains the user ID of the account that is being created, but there is no property containing the user ID of the account that is creating it (which would be different in create2 log actions).
Comment 1 Brad Jorsch 2014-09-18 21:00:34 UTC
It does when leprop=userid is used. See the following query, for example: User:Conieliandi created User:Conielia, and you can see that the 'userid' field returned is that for Conieliandi, not Conielia.

https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&list=logevents|users&leprop=ids|title|type|user|userid|timestamp|comment|parsedcomment|details|tags&leaction=newusers/create2&lelimit=1&lestart=2014-09-18T20:49:50Z&ususers=Conielia|Conieliandi

OTOH, if you omit leprop=userid, then the 'userid' field is that for Conielia; it's not possible to get both at the same time.


I'm going to assign this bug to myself, to be fixed during the major overhaul of logevents detail handling described at https://www.mediawiki.org/wiki/Requests_for_comment/API_roadmap#Clean_up_log_event_parameter_handling_in_action.3Dlogevents.

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


Navigation
Links