Last modified: 2012-09-19 20:55:16 UTC
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
Explanation hashed out in http://etherpad.wikimedia.org/bug35939 == Current situation == 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 == Proposed solution (1) == 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 == Proposed solution (2) == (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); == Proposed solution (1) == Phasing out wgStylePath and wgExtensionAssetsPath, instead make broader use of wgResourceBasePath skins/ * (site).org/w/static-$version/skins --> (common)/php-$version/skins * Usage: $wgResourceBasePath/skins extensions * (site).org/w/static-$version/extensions --> (common)/php-$version/extensions * Usage: $wgResourceBasePath/extensions resources/ * (site).org/w/static-$version/resources --> (common)/php-$version/resources * Usage: $wgResourceBasePath/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".