Page MenuHomePhabricator

User info API should report the number of upoads of the current user
Closed, DeclinedPublic

Description

An equivalent to editcount for uploads (uploadcount?) would be useful for apps like Commons Android app. (See https://github.com/commons-app/apps-android-commons/pull/857.)

Commons Android app currently uses a Toolforge tool instead (For User:Whym it's https://tools.wmflabs.org/urbanecmbot/uploadsbyuser/uploadsbyuser.py?user=Whym .) Since this approach does not work well if we want to provide the app for non-Wikimedia wikis, I'd like to see it supported by MediaWiki itself.

Unlike the tool mentioned above, it would be good enough if the API can report the current user's upload count.

Event Timeline

Anomie subscribed.

The editcount field is stored in the database, so it's cheap to report. Count of uploads is not so stored, so it would require a somewhat expensive query to fetch that information.

If you want to file a task to add such a field to the database and populate it, feel free to reopen this task as a subtask.