[MediaWiki-commits] [Gerrit] Enable QuickSurveys by default on labs with example survey - change (operations/mediawiki-config)

2015-09-08 Thread Robmoen (Code Review)
Robmoen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/236979

Change subject: Enable QuickSurveys by default on labs with example survey
..

Enable QuickSurveys by default on labs with example survey

Bug: T110199
Change-Id: I318d31e190e8c972ac384ce5b6d949dcdbe4442f
---
M wmf-config/CommonSettings-labs.php
M wmf-config/InitialiseSettings-labs.php
2 files changed, 27 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/79/236979/1

diff --git a/wmf-config/CommonSettings-labs.php 
b/wmf-config/CommonSettings-labs.php
index e7bbdeb..c661ea8 100644
--- a/wmf-config/CommonSettings-labs.php
+++ b/wmf-config/CommonSettings-labs.php
@@ -230,6 +230,29 @@
);
 }
 
+if ( $wmgUseQuickSurveys ) {
+   wfLoadExtensions( array( 'QuickSurveys' ) );
+
+   $wgQuickSurveysConfig[] = array(
+   "name" => "internal example survey",
+   "type" => "internal",
+   "question" => 
"ext-quicksurveys-example-internal-survey-question",
+   "answers" => array(
+   "positive" => 
"ext-quicksurveys-example-internal-survey-answer-positive",
+   "neutral" => 
"ext-quicksurveys-example-internal-survey-answer-neutral",
+   "negative"=> 
"ext-quicksurveys-example-internal-survey-answer-negative"
+   ),
+   "schema" => "QuickSurveysResponses",
+   "enabled" => true,
+   "coverage" => .5,
+   "description" => 
"ext-quicksurveys-example-internal-survey-description",
+   "platform" => array(
+   "desktop" => array( "stable" ),
+   "mobile" => array( "stable", "beta", "alpha" ),
+   ),
+   );
+}
+
 if ( $wmgUseSentry ) {
require_once( "$IP/extensions/Sentry/Sentry.php" );
$wgSentryDsn = $wmgSentryDsn;
diff --git a/wmf-config/InitialiseSettings-labs.php 
b/wmf-config/InitialiseSettings-labs.php
index 978f2d5..88fecc4 100644
--- a/wmf-config/InitialiseSettings-labs.php
+++ b/wmf-config/InitialiseSettings-labs.php
@@ -986,6 +986,10 @@
'metawiki' => true,
),
 
+   'wmgUseQuickSurveys' = array(
+   'default' => true,
+   ),
+
'wmgUseSentry' => array(
'default' => true,
),

-- 
To view, visit https://gerrit.wikimedia.org/r/236979
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I318d31e190e8c972ac384ce5b6d949dcdbe4442f
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Robmoen 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Enable QuickSurveys by default on labs with example survey - change (operations/mediawiki-config)

2015-09-08 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Enable QuickSurveys by default on labs with example survey
..


Enable QuickSurveys by default on labs with example survey

Bug: T110199
Change-Id: I318d31e190e8c972ac384ce5b6d949dcdbe4442f
---
M wmf-config/CommonSettings-labs.php
M wmf-config/InitialiseSettings-labs.php
2 files changed, 27 insertions(+), 0 deletions(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/wmf-config/CommonSettings-labs.php 
b/wmf-config/CommonSettings-labs.php
index e7bbdeb..d4d30d0 100644
--- a/wmf-config/CommonSettings-labs.php
+++ b/wmf-config/CommonSettings-labs.php
@@ -230,6 +230,29 @@
);
 }
 
+if ( $wmgUseQuickSurveys ) {
+   wfLoadExtensions( array( 'QuickSurveys' ) );
+
+   $wgQuickSurveysConfig[] = array(
+   'name' => 'internal example survey',
+   'type' => 'internal',
+   'question' => 
'ext-quicksurveys-example-internal-survey-question',
+   'answers' => array(
+   'positive' => 
'ext-quicksurveys-example-internal-survey-answer-positive',
+   'neutral' => 
'ext-quicksurveys-example-internal-survey-answer-neutral',
+   'negative' => 
'ext-quicksurveys-example-internal-survey-answer-negative',
+   ),
+   'schema' => 'QuickSurveysResponses',
+   'enabled' => true,
+   'coverage' => .5,
+   'description' => 
'ext-quicksurveys-example-internal-survey-description',
+   'platform' => array(
+   'desktop' => array( 'stable' ),
+   'mobile' => array( 'stable', 'beta', 'alpha' ),
+   ),
+   );
+}
+
 if ( $wmgUseSentry ) {
require_once( "$IP/extensions/Sentry/Sentry.php" );
$wgSentryDsn = $wmgSentryDsn;
diff --git a/wmf-config/InitialiseSettings-labs.php 
b/wmf-config/InitialiseSettings-labs.php
index 978f2d5..225f9b0 100644
--- a/wmf-config/InitialiseSettings-labs.php
+++ b/wmf-config/InitialiseSettings-labs.php
@@ -986,6 +986,10 @@
'metawiki' => true,
),
 
+   'wmgUseQuickSurveys' => array(
+   'default' => true,
+   ),
+
'wmgUseSentry' => array(
'default' => true,
),

-- 
To view, visit https://gerrit.wikimedia.org/r/236979
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I318d31e190e8c972ac384ce5b6d949dcdbe4442f
Gerrit-PatchSet: 3
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Robmoen 
Gerrit-Reviewer: Catrope 
Gerrit-Reviewer: Jdlrobson 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits