Page MenuHomePhabricator

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

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 closed this task as Declined.Dec 26 2014, 7:54 AM
Tgr claimed this task.

File usage has been removed completely from MediaViewer.

Tgr reopened this task as Open.Dec 26 2014, 7:55 AM

Sorry, that was the wrong ticket.

Tgr removed Tgr as the assignee of this task.Dec 26 2014, 7:56 AM
Tgr added a subscriber: Tgr.
Tgr updated the task description. (Show Details)Dec 26 2014, 9:36 PM
Tgr set Security to None.
Tgr added a comment.Dec 27 2014, 6:26 PM

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.

Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 5:56 PM
Restricted Application added subscribers: Matanya, Aklapper. · View Herald TranscriptSep 4 2015, 5:56 PM