Branching off from bug 31173
see:
- bug 31173 comment 6
- bug 31173 comment 7
- https://www.mediawiki.org/w/resources-1.20wmf1/index.php
- https://www.mediawiki.org/w/resources-1.20wmf1/maintenance/update.php
Version: wmf-deployment
Severity: major
Branching off from bug 31173
see:
Version: wmf-deployment
Severity: major
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T38465 MediaWiki bugs to be fixed for 1.20wmf2 deployment (tracking) | |||
Resolved | None | T37939 1.19/1.20 wgResourceBasePath hack for accessing resourceloader /w/resources/ problems |
Explanation hashed out in http://etherpad.wikimedia.org/bug35939
skins/
(site).org/w/skins-$version --> common/php-$version/skins $wgStylePath / $wgStyleDirectory
extensions
(site).org/w/extensions-$version --> common/php-$version/extensions $wgExtensionAssetsPath
resources/
(site).org/w/resources-$version --> common/php-$version $wgResourcesPath/resources
Phasing out wgStylePath and wgExtensionAssetsPath, instead make broader use of wgResourceBasePath
skins/
(site).org/w-$version/skins --> common/php-$version/skins $wgResourceBasePath/skins
extensions
(site).org/w-$version/extensions --> common/php-$version/extensions $wgResourceBasePath/extensions
resources/
(site).org/w-$version/resources --> common/php-$version/resources $wgResourceBasePath/resources
(bug 31173) Implement wgResourcesPath / wgResourcesDirectory
skins/
(site).org/w/skins-$version --> common/php-$version/skins $wgStylePath / $wgStyleDirectory
extensions
(site).org/w/extensions-$version --> common/php-$version/extensions $wgExtensionAssetsPath
resources/
(site).org/w/resources-$version --> common/php-$version/resources $wgResourcesPath /wgResourcesDirectory
Moving the milestone to 1.20wmf2. We may kick this one down the road a little bit if we don't get to it immediately. It should not be an emergency blocker for a deployment; just something that we need to get fixed.
We're going with (1);
Phasing out wgStylePath and wgExtensionAssetsPath, instead make broader use of wgResourceBasePath
skins/
extensions
resources/
Fixed in r114955.
The symlinks will be generated from the next version on. The usage will not be incorporated as described above in the software, instead local configurations can set existing variables to it if they want to use a central bits location like WMF has:
$wgResourceBasePath = 'bits.wikimedia.org/static-{$mwVersion}';
$wgStylePath = "{$wgResourceBasePath}/skins";
$wgExtensionAssetsPath = {$wgResourceBasePath}/extensions";
and resources is already naturally handled by ResourceLoader using wgResourceBasePath as root through "$wgResourceBasePath/resources".