Page MenuHomePhabricator

Add count to Special:GlobalUsage
Closed, ResolvedPublic

Description

There schould be a count() at https://commons.wikimedia.org/w/index.php?title=Special%3AGlobalUsage&limit=50&target=Test.svg (Special:GlobalUsage) to see how much times a file has been used.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Would you be ok with - if > 5000 times, just say > 5000? As that would make the patch less scary performance wise.

If added, should also probably add to ?action=info

Would you be ok with - if > 5000 times, just say > 5000? As that would make the patch less scary performance wise.

If added, should also probably add to ?action=info

Yes, it should be fine.

For a exact output we/i can write a tools labs tool if necessary. Just tested with the most used file:

MariaDB [commonswiki_p]> SELECT COUNT(gil_page)
    -> FROM globalimagelinks
    -> WHERE gil_to  = "Commons-logo.svg";
+-----------------+
| COUNT(gil_page) |
+-----------------+
|         7939852 |
+-----------------+
1 row in set (6.02 sec)

EDIT: Created http://tools.wmflabs.org/globalusagecount/

Steinsplitter claimed this task.

Included the aforementioned tool labs tools in MediaWiki:Globalusage-header-image (with i18n support) , so we don't have to care about performance on production.