Last modified: 2014-07-31 14:32:56 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 T70921, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68921 - list=logevent userid is returned as string, should be integer
list=logevent userid is returned as string, should be integer
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-31 14:23 UTC by Aaron Halfaker
Modified: 2014-07-31 14:32 UTC (History)
5 users (show)

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


Attachments

Description Aaron Halfaker 2014-07-31 14:23:32 UTC
When making the following query:

http://en.wikipedia.org/w/api.php?action=query&list=logevents&leprop=ids|user|userid&format=jsonfm&lelimit=1

the "userid" field's value is surrounded by quotes, making it a string.  Similar queries (e.g. to prop=revisions) return userid as an integer.  

http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Anarchism&rvlimit=1&rvprop=ids|user|userid&format=jsonfm
Comment 1 Gerrit Notification Bot 2014-07-31 14:25:47 UTC
Change 150823 had a related patch set uploaded by Reedy:
list=logevent userid is returned as string, should be integer

https://gerrit.wikimedia.org/r/150823
Comment 2 Sam Reed (reedy) 2014-07-31 14:26:47 UTC
The inbuilt docs say it should be an int too

			'userid' => array(
				'userhidden' => 'boolean',
				'userid' => array(
					ApiBase::PROP_TYPE => 'integer',
					ApiBase::PROP_NULLABLE => true
				),
				'anon' => 'boolean'
			),
Comment 3 Gerrit Notification Bot 2014-07-31 14:32:11 UTC
Change 150823 merged by jenkins-bot:
list=logevent userid is returned as string, should be integer

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

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


Navigation
Links