Page MenuHomePhabricator

thumbor sharded swift container should happen before projlang rewrite
Closed, ResolvedPublic

Description

in images.py's translate.py legacy cases are handled to translate

# Legacy special cases taken from rewrite.py
if project == 'wikipedia':
    if language in ('meta', 'commons', 'internal', 'grants'):
        project = 'wikimedia'
    if language == 'mediawiki':
        project = 'mediawiki'
        language = 'www'

and then shard is appended if the container is in sharded_containers, though the list in sharded_container has non-legacy names (i.e. commons is listed as wikipedia-commons-local-thumb) so the sharding detection should happen before the legacy rewrites

Revisions and Commits

rTHMBREXT Thumbor Plugins
Restricted Differential Revision