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

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

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

Should be deployed to WMF wikis with 1.24wmf12, see https://www.mediawiki.org/wiki/MediaWiki_1.24/Roadmap for the schedule.