Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/76652
Change subject: beta: points timeline backend to local directory
......................................................................
beta: points timeline backend to local directory
There is no 'local-multiwrite' filebackend in beta. The timeline
extension has a fallback to {$wgUploadDirectory}/timeline" hardcoded in:
// Get the backend to store plot data and pngs
if ( $wgTimelineSettings->fileBackend != '' ) {
$backend = FileBackendGroup::singleton()->get(
$wgTimelineSettings->fileBackend );
} else {
$backend = new FSFileBackend( array(
'name' => 'timeline-backend',
'lockManager' => 'nullLockManager',
'containerPaths' => array( 'timeline-render' =>
"{$wgUploadDirectory}/timeline" ),
'fileMode' => 777
) );
}
Setting $wgTimelineSettings->fileBackend to an empty string would
trigger the fallback and let us use timeline on the beta cluster.
Change-Id: I6cf66fe65b0dd50240bcb3a84fb7d01c3805037b
---
M wmf-config/CommonSettings.php
1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/52/76652/1
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 35312a1..13e38c0 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -543,7 +543,14 @@
} elseif ( $lang == 'zh' ) {
$wgTimelineSettings->fontFile = 'wqy-zenhei.ttc';
}
-$wgTimelineSettings->fileBackend = 'local-multiwrite';
+
+if ( $wmfRealm === 'labs' ) {
+ # timeline extension fallback to FSFileBackend pointing to
+ # "{$wgUploadDirectory}/timeline"
+ $wgTimelineSettings->fileBackend = '';
+} else {
+ $wgTimelineSettings->fileBackend = 'local-multiwrite';
+}
if ( file_exists( '/usr/bin/ploticus' ) ) {
$wgTimelineSettings->ploticusCommand = '/usr/bin/ploticus';
--
To view, visit https://gerrit.wikimedia.org/r/76652
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6cf66fe65b0dd50240bcb3a84fb7d01c3805037b
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits