Page MenuHomePhabricator

Loss of newuser/create API components with recent upgrade
Closed, ResolvedPublic

Description

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.


Version: 1.19
Severity: major

Details

Reference
bz35635

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 12:16 AM
bzimport set Reference to bz35635.
bzimport added a subscriber: Unknown Object (MLST).

$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

Possible API breakage is a high priority.

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.

Niklas, are you planning on releasing a new patch?

ok, so marking as need-review.