jenkins-bot has submitted this change and it was merged.
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/filebackend-labs.php
1 file changed, 6 insertions(+), 1 deletion(-)
Approvals:
Demon: Looks good to me, approved
jenkins-bot: Verified
diff --git a/wmf-config/filebackend-labs.php b/wmf-config/filebackend-labs.php
index 9110fbe..4a6957b 100644
--- a/wmf-config/filebackend-labs.php
+++ b/wmf-config/filebackend-labs.php
@@ -7,9 +7,14 @@
# for LABS
#
-// labs does not have swift yet as of 20120525 -- hashar
+# Whenever the timeline extension is provided an empty string as a file
+# backend, it will gracefully fallback to a FSFileBackend pointing to
+# "{$wgUploadDirectory}/timeline"
+$wgTimelineSettings->fileBackend = '';
+// labs does not have swift yet as of 20120525 -- hashar
+
$wgLocalFileRepo = array(
'class' => 'LocalRepo',
'name' => 'local',
--
To view, visit https://gerrit.wikimedia.org/r/76652
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6cf66fe65b0dd50240bcb3a84fb7d01c3805037b
Gerrit-PatchSet: 3
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: Demon <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits