Page MenuHomePhabricator

Add global file usage count to MediaWiki's info action
Open, LowPublicFeature

Description

The output of MediaWiki's info action should include an entry with the number of global uses of a file (a page in the File namespace). This is related to T43366 ("Add local file usage count to MediaWiki's info action").


Version: unspecified
Severity: enhancement

Details

Reference
bz41367

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:13 AM
bzimport set Reference to bz41367.
bzimport added a subscriber: Unknown Object (MLST).

Bryan.TongMinh wrote:

Need to hook to "InfoAction".

Would you suggest to add this to the "properties" section in action=info or to create a new one?

Tgr claimed this task.

File usage has been removed completely from MediaViewer.

Sorry, that was the wrong ticket.

Tgr removed Tgr as the assignee of this task.Dec 26 2014, 7:56 AM
Tgr subscribed.
Tgr set Security to None.

This does not seem easy to me. We don't track global usage count currently, and counting on the fly does not perform well with InnoDB, so a new table would have to be added to the database to keep track of it. You'd have to deal with race conditions etc.

The task could be dumbed down to "show global usage count if it is less then X", and then a query with LIMIT could be used to ensure good performance, but I'm not sure how useful that would be.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:14 AM
Aklapper removed a subscriber: wikibugs-l-list.