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 <rm...@wikimedia.org>
Gerrit-Reviewer: Catrope <roan.katt...@gmail.com>
Gerrit-Reviewer: Jdlrobson <jrob...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to