Last modified: 2012-08-15 10:20:27 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 T37635, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35635 - Loss of newuser/create API components with recent upgrade
Loss of newuser/create API components with recent upgrade
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.19
All All
: Highest major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-01 10:23 UTC by billinghurst
Modified: 2012-08-15 10:20 UTC (History)
9 users (show)

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


Attachments

Description billinghurst 2012-04-01 10:23:09 UTC
In version 1.18 the query
  https://wikisource.org/w/api.php?action=query&list=logevents&leaction=newusers/create&leprop=user%7Ctimestamp&lelimit=500
would allow one to filter out new users who were created on wiki, from those that are automatically created.  There looks to have been a change to the API with the introduction of "letype" though not all the functionality seems to flow through.

The closest that I can get the query would now be 
  ?action=query&list=logevents&leprop=type|user|timestamp&lelimit=5&letype=newusers
which shows

<api>
  <query>
    <logevents>
      <item type="newusers" action="autocreate" user="Rhy0614" timestamp="2012-04-01T10:12:21Z" />
      <item type="newusers" action="autocreate" user="Kratzbaum" timestamp="2012-04-01T10:09:42Z" />
      <item type="newusers" action="autocreate" user="Mogadir" timestamp="2012-04-01T10:04:32Z" />
      <item type="newusers" action="autocreate" user="Yuvalbleich" timestamp="2012-04-01T09:53:55Z" />
      <item type="newusers" action="create" user="MacixeXopuji" timestamp="2012-04-01T09:36:22Z" />
    </logevents>
  </query>
</api>

One cannot filter on
  &leaction=create
and it seems to be that all the newuser actions are non-existent, and the instructions would seem to show that too.
Comment 1 Sam Reed (reedy) 2012-04-01 12:54:53 UTC
$wgLogTypes = array(
	'',
	'block',
	'protect',
	'rights',
	'delete',
	'upload',
	'move',
	'import',
	'patrol',
	'merge',
	'suppress',
)


$wgLogActions = array(
	'block/block'        => 'blocklogentry',
	'block/unblock'      => 'unblocklogentry',
	'block/reblock'      => 'reblock-logentry',
	'protect/protect'    => 'protectedarticle',
	'protect/modify'     => 'modifiedarticleprotection',
	'protect/unprotect'  => 'unprotectedarticle',
	'protect/move_prot'  => 'movedarticleprotection',
	'rights/rights'      => 'rightslogentry',
	'rights/autopromote' => 'rightslogentry-autopromote',
	'upload/upload'      => 'uploadedimage',
	'upload/overwrite'   => 'overwroteimage',
	'upload/revert'      => 'uploadedimage',
	'import/upload'      => 'import-logentry-upload',
	'import/interwiki'   => 'import-logentry-interwiki',
	'merge/merge'        => 'pagemerge-logentry',
	'suppress/block'     => 'blocklogentry',
	'suppress/reblock'   => 'reblock-logentry',
);


It's not the API at fault, as that's only listing what's available.

Most likely, it would be related to the logging rewrite... CC'ing Niklas
Comment 2 MZMcBride 2012-06-08 13:27:13 UTC
Possible API breakage is a high priority.
Comment 3 Niklas Laxström 2012-06-18 14:50:14 UTC
https://gerrit.wikimedia.org/r/11864

There might be extensions using the foo/* syntax still. Maybe the API should just allow specifying the type instead of limiting it to predefined values.
Comment 4 matanya 2012-07-15 12:19:54 UTC
Niklas, are you planning on releasing a new patch?
Comment 5 Niklas Laxström 2012-07-15 19:18:11 UTC
Someone already did.
Comment 6 matanya 2012-07-15 19:25:09 UTC
ok, so marking as need-review.
Comment 7 Alex Monk 2012-07-24 23:23:09 UTC
Merged by Catrope.

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


Navigation
Links