Page MenuHomePhabricator

Add option to filter by file extension/img_minor_mime in requeueTranscodes.php
Closed, ResolvedPublic

Description

Noticed from T226713: Run cleanupTranscodes.php for current midi files... There's no way to filter by a file specific type to just enqueue those types in requeueTranscodes.php...

We have a useful index... So as long as we pass in img_major_mime too in some way, we're already setting img_media_type to AUDIO or VIDEO

CREATE INDEX /*i*/img_media_mime ON /*_*/image (img_media_type,img_major_mime,img_minor_mime);

Probably better than a LIKE on img_name?

Details

Related Gerrit Patches:
mediawiki/extensions/TimedMediaHandler : wmf/1.34.0-wmf.11requeueTranscodes: Allow filtering by major and minor mime
mediawiki/extensions/TimedMediaHandler : masterrequeueTranscodes: Allow filtering by major and minor mime

Event Timeline

Reedy created this task.Jun 27 2019, 2:36 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 27 2019, 2:36 PM
Reedy updated the task description. (Show Details)Jun 27 2019, 2:37 PM
Reedy renamed this task from Add option to filter by file extension/img_minor_mime to Add option to filter by file extension/img_minor_mime in requeueTranscodes.php.Jun 27 2019, 2:45 PM
Reedy updated the task description. (Show Details)

Change 519540 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/TimedMediaHandler@master] Allow filtering by major and minor mime

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

Change 519540 merged by jenkins-bot:
[mediawiki/extensions/TimedMediaHandler@master] requeueTranscodes: Allow filtering by major and minor mime

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

Reedy closed this task as Resolved.Jun 28 2019, 9:45 AM
Reedy claimed this task.

Change 519608 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/TimedMediaHandler@wmf/1.34.0-wmf.11] requeueTranscodes: Allow filtering by major and minor mime

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

Change 519608 merged by jenkins-bot:
[mediawiki/extensions/TimedMediaHandler@wmf/1.34.0-wmf.11] requeueTranscodes: Allow filtering by major and minor mime

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