Page MenuHomePhabricator

Special:Mediastatistics is being weird and not grouping similar file types together
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
Bugreporter2
Tue, Apr 21, 4:05 AM
Referenced Files
F76983514: image.png
Tue, Apr 21, 4:05 AM
F76983429: image.png
Tue, Apr 21, 4:05 AM
F76983340: image.png
Tue, Apr 21, 4:05 AM
F76983268: image.png
Tue, Apr 21, 4:05 AM
F76983068: image.png
Tue, Apr 21, 4:05 AM

Description

Steps to replicate the issue:

What happens?:

Similar file types should be grouped together, but they're not being grouped for some reason. Resulting in this almighty mess:

image.png (806×1 px, 146 KB)

image.png (822×1 px, 151 KB)

image.png (757×1 px, 131 KB)

image.png (772×1 px, 129 KB)

image.png (846×1 px, 150 KB)

What should have happened instead?:

Similar file types (e.g. all bitmap files) should be grouped together under one heading. Same for audio, etc.

Software version:

Current Wikipedia:
1.46.0-wmf.24 (rMW84b78d8e3218)
23:19, 20 April 2026

Details

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

Probably caused by config change of wgFileSchemaMigrationStage.

https://gerrit.wikimedia.org/g/mediawiki/core/+/3ac6db3b7664487a97b45633dfe498e3e3087fc4/includes/Specials/SpecialMediaStatistics.php#159
"It's important that img_media_type come first, otherwise the tables will be fragmented." but the new code orders by file_type first.

Change #1276827 had a related patch set uploaded (by Ladsgroup; author: Ladsgroup):

[mediawiki/core@master] SpecialMediaStatistics: Fix grouping on read new

https://gerrit.wikimedia.org/r/1276827

Change #1276827 merged by jenkins-bot:

[mediawiki/core@master] SpecialMediaStatistics: Fix grouping on read new

https://gerrit.wikimedia.org/r/1276827

Ladsgroup claimed this task.