Page MenuHomePhabricator

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


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
eg. <u userid="3235" name="[redacted]" editcount="1" recenteditcount="121"

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

Reported to Mediawiki-L and declared a bug

Version: unspecified
Severity: normal



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

Change 130093 merged by jenkins-bot:
API: Fix queries for list=allusers&auactiveusers

Should be deployed to WMF wikis with 1.24wmf12, see for the schedule.