Yurik (Code Review)
2016-02-11 02:56:53 UTC
Yurik has uploaded a new change for review.
https://gerrit.wikimedia.org/r/269896
Change subject: Add $wgGraphAllowedDomains setting for future
......................................................................
Add $wgGraphAllowedDomains setting for future
Graph will use new settings style instead of current one,
this is a noop for now.
Corresponding puppet patch I5b737345af00818f5eb048222889a938b7fd440e
Change-Id: Ifd765e960264359c9630c1c65825d314446fb31c
---
M wmf-config/CommonSettings-labs.php
M wmf-config/CommonSettings.php
2 files changed, 35 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config refs/changes/96/269896/1
diff --git a/wmf-config/CommonSettings-labs.php b/wmf-config/CommonSettings-labs.php
index 79fa503..2faec53 100644
--- a/wmf-config/CommonSettings-labs.php
+++ b/wmf-config/CommonSettings-labs.php
@@ -352,6 +352,14 @@
$wgEchoSharedTrackingCluster = false;
}
+if ( $wmgUseGraph ) {
+ // **** THIS LIST MUST MATCH puppet/hieradata/labs/deployment-prep/common.yaml ****
+ $wgGraphAllowedDomains['http'] = array( 'wmflabs.org' );
+ $wgGraphAllowedDomains['wikirawupload'][] = 'upload.beta.wmflabs.org';
+ $wgGraphAllowedDomains['wikidatasparql'][] = 'wdqs-test.wmflabs.org';
+}
+
+
// Experimental
$wgGadgetsCaching = false;
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 918519d..07b664d 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2926,6 +2926,33 @@
// Soon $wgGraphDataDomains will be removed
$wgGraphDataDomains = $wgGraphHttpsDomains;
+ // This setting will replace both of the above
+ //
+ // **** THIS LIST MUST MATCH puppet/hieradata/role/common/scb.yaml ****
+ //
+ $wgGraphAllowedDomains = array(
+ 'https' => array(
+ 'mediawiki.org',
+ 'wikibooks.org',
+ 'wikidata.org',
+ 'wikimedia.org',
+ 'wikimediafoundation.org',
+ 'wikinews.org',
+ 'wikipedia.org',
+ 'wikiquote.org',
+ 'wikisource.org',
+ 'wikiversity.org',
+ 'wikivoyage.org',
+ 'wiktionary.org',
+ ),
+ 'wikirawupload' => array(
+ 'upload.wikimedia.org',
+ ),
+ 'wikidatasparql' => array(
+ 'query.wikidata.org',
+ )
+ );
+
if ( $wmgUseGraphWithNamespace ) {
$wgJsonConfigModels['Graph.JsonConfig'] = 'Graph\Content';
$wgJsonConfigs['Graph.JsonConfig'] = array(
--
To view, visit https://gerrit.wikimedia.org/r/269896
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd765e960264359c9630c1c65825d314446fb31c
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Yurik <***@wikimedia.org>
https://gerrit.wikimedia.org/r/269896
Change subject: Add $wgGraphAllowedDomains setting for future
......................................................................
Add $wgGraphAllowedDomains setting for future
Graph will use new settings style instead of current one,
this is a noop for now.
Corresponding puppet patch I5b737345af00818f5eb048222889a938b7fd440e
Change-Id: Ifd765e960264359c9630c1c65825d314446fb31c
---
M wmf-config/CommonSettings-labs.php
M wmf-config/CommonSettings.php
2 files changed, 35 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config refs/changes/96/269896/1
diff --git a/wmf-config/CommonSettings-labs.php b/wmf-config/CommonSettings-labs.php
index 79fa503..2faec53 100644
--- a/wmf-config/CommonSettings-labs.php
+++ b/wmf-config/CommonSettings-labs.php
@@ -352,6 +352,14 @@
$wgEchoSharedTrackingCluster = false;
}
+if ( $wmgUseGraph ) {
+ // **** THIS LIST MUST MATCH puppet/hieradata/labs/deployment-prep/common.yaml ****
+ $wgGraphAllowedDomains['http'] = array( 'wmflabs.org' );
+ $wgGraphAllowedDomains['wikirawupload'][] = 'upload.beta.wmflabs.org';
+ $wgGraphAllowedDomains['wikidatasparql'][] = 'wdqs-test.wmflabs.org';
+}
+
+
// Experimental
$wgGadgetsCaching = false;
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 918519d..07b664d 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2926,6 +2926,33 @@
// Soon $wgGraphDataDomains will be removed
$wgGraphDataDomains = $wgGraphHttpsDomains;
+ // This setting will replace both of the above
+ //
+ // **** THIS LIST MUST MATCH puppet/hieradata/role/common/scb.yaml ****
+ //
+ $wgGraphAllowedDomains = array(
+ 'https' => array(
+ 'mediawiki.org',
+ 'wikibooks.org',
+ 'wikidata.org',
+ 'wikimedia.org',
+ 'wikimediafoundation.org',
+ 'wikinews.org',
+ 'wikipedia.org',
+ 'wikiquote.org',
+ 'wikisource.org',
+ 'wikiversity.org',
+ 'wikivoyage.org',
+ 'wiktionary.org',
+ ),
+ 'wikirawupload' => array(
+ 'upload.wikimedia.org',
+ ),
+ 'wikidatasparql' => array(
+ 'query.wikidata.org',
+ )
+ );
+
if ( $wmgUseGraphWithNamespace ) {
$wgJsonConfigModels['Graph.JsonConfig'] = 'Graph\Content';
$wgJsonConfigs['Graph.JsonConfig'] = array(
--
To view, visit https://gerrit.wikimedia.org/r/269896
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd765e960264359c9630c1c65825d314446fb31c
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Yurik <***@wikimedia.org>