Last modified: 2014-07-31 14:32:56 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
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
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' ),
Change 150823 merged by jenkins-bot: list=logevent userid is returned as string, should be integer https://gerrit.wikimedia.org/r/150823