Page MenuHomePhabricator

list=allusers "recenteditcount" result property is inaccurately named
Closed, ResolvedPublic

Description

I was doing some checking on activity using the API at a WMF wiki, and
found that the wiki was reporting that in some cases that the recentedit
count was reporting higher than editcount, and in some cases significantly
higher.

https://tt.wikipedia.org/w/api.php?action=query&list=allusers&auactiveusers&auwitheditsonly&aulimit=500&auprop=editcount
eg. <u userid="3235" name="[redacted]" editcount="1" recenteditcount="121"
/>

I checked logs for administrative rights, or patrolling, and they showed
nothing.

Reported to Mediawiki-L and declared a bug


Version: unspecified
Severity: normal

Details

Reference
bz67301

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:36 AM
bzimport set Reference to bz67301.
bzimport added a subscriber: Unknown Object (MLST).

"editcount" counts edits, specifically the creation of new revisions. "recenteditcount" counts all actions in recent changes; in the case of the user you mention, his recent "edits" appear to be Wikidata changes.

The real problem is probably that "recenteditcount" should be named "recentactions", but changing that is difficult due to backwards-compatibility concerns. I'm going to retitle the bug accordingly.

Change 130093 had a related patch set uploaded by Anomie:
API: Fix queries for list=allusers&auactiveusers

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