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

whym created this task.Aug 28 2017, 9:04 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 28 2017, 9:04 AM
Anomie closed this task as Declined.Aug 28 2017, 1:43 PM
Anomie added a subscriber: Anomie.

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.