Last modified: 2014-07-22 08:52:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T69931, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67931 - Beta should not use productions interwiki.cdb
Beta should not use productions interwiki.cdb
Status: NEW
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-12 19:41 UTC by Marius Hoch
Modified: 2014-07-22 08:52 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Marius Hoch 2014-07-12 19:41:49 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).
Comment 1 Marius Hoch 2014-07-16 14:19:49 UTC
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.
Comment 2 Greg Grossmeier 2014-07-16 17:03:24 UTC
Antoine: would this break any of the auto-fancy stuff like where we fetch an image from prod commons if we need it?
Comment 3 Antoine "hashar" Musso (WMF) 2014-07-22 08:27:44 UTC
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?
Comment 4 Antoine "hashar" Musso (WMF) 2014-07-22 08:51:07 UTC
(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 :]
Comment 5 Marius Hoch 2014-07-22 08:52:39 UTC
(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)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links