Last modified: 2014-07-22 08:52:39 UTC
Beta should overwrite $wgInterwikiCache to point to a labs specific cdb. That might break some stuff on beta relying on the current behavior, but that would also make beta more production like (eg. transwiki-imports from a beta wiki to another will work then).
Alternatively we could provide extra interwiki prefixes for labs sites (if those don't exist already)... like beta-de (or so). That would also allow importing from labs.
Antoine: would this break any of the auto-fancy stuff like where we fetch an image from prod commons if we need it?
I have absolute no idea how interwikis are generated nor how they are cached. Maybe the interwiki.cdb file generated on beta uses the list of beta wikis and is thus up to date?
(In reply to Greg Grossmeier from comment #2) > Antoine: would this break any of the auto-fancy stuff like where we fetch an > image from prod commons if we need it? That is done by setting $wgUseInstantCommons = true which has commons URL hardcoded directly in includes/Setup.php if ( $wgUseInstantCommons ) { $wgForeignFileRepos[] = array( 'class' => 'ForeignAPIRepo', 'name' => 'wikimediacommons', 'apibase' => WebRequest::detectProtocol() === 'https' ? 'https://commons.wikimedia.org/w/api.php' : 'http://commons.wikimedia.org/w/api.php', ... ); } So the auto-fancy fetching of missing images will still work :]
(In reply to Antoine "hashar" Musso from comment #3) > I have absolute no idea how interwikis are generated nor how they are > cached. Maybe the interwiki.cdb file generated on beta uses the list of > beta wikis and is thus up to date? No, it's the interwiki.cdb from production (it's taken out of the mediawiki-configuration repo)