]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9356 define property "sonar.onboardingTutorial.skip"
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>
Mon, 5 Jun 2017 09:50:51 +0000 (11:50 +0200)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Tue, 20 Jun 2017 11:10:53 +0000 (04:10 -0700)
server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java
sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java
sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java
sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java

index c55c3f304171f188499355c9b03c12f4762f8f98..542d916364e7abc91d55855225d883ddecb00cd0 100644 (file)
@@ -137,7 +137,7 @@ public class ComputeEngineContainerImplTest {
         + 23 // level 1
         + 46 // content of DaoModule
         + 3 // content of EsSearchModule
-        + 56 // content of CorePropertyDefinitions
+        + 57 // content of CorePropertyDefinitions
     );
     assertThat(
       picoContainer.getComponentAdapters().stream()
index 19c7a49bc12672d300da5c824365fb244c321121..ec0402616c7a7b6d0ec4d1816d33dfb4a504c430 100644 (file)
@@ -120,6 +120,14 @@ public class CorePropertyDefinitions {
         .multiValues(true)
         .defaultValue(CoreProperties.PREVIEW_EXCLUDE_PLUGINS_DEFAULT_VALUE)
         .build(),
+      PropertyDefinition.builder(CoreProperties.SKIP_ONBOARDING_TUTORIAL)
+        .name("Skip the onboarding tutorial")
+        .type(PropertyType.BOOLEAN)
+        .description("By default, each new user is lead through a tutorial, that explains how to analyze a first project, after logging in for the fist time. " +
+          "By enabling this setting, the tutorial will not be shown automatically, but only be visible in the help.")
+        .category(CoreProperties.CATEGORY_GENERAL)
+        .defaultValue(String.valueOf(false))
+        .build(),
       PropertyDefinition.builder(CoreProperties.CORE_AUTHENTICATOR_REALM)
         .name("Security Realm")
         .hidden()
index 6706eda9399692da5291894618e9e8277bb7d455..0d1e7f05b9f288425e9b1a161d25c3d2f257b92c 100644 (file)
@@ -33,7 +33,7 @@ public class CorePropertyDefinitionsTest {
   @Test
   public void all() {
     List<PropertyDefinition> defs = CorePropertyDefinitions.all();
-    assertThat(defs).hasSize(56);
+    assertThat(defs).hasSize(57);
   }
 
   @Test
index 1ab9759bb8899a0a64fe57d99ad69fd78b4ba74d..869022a2758830bb8d7d7c911969e9a8561ebfb5 100644 (file)
@@ -493,4 +493,8 @@ public interface CoreProperties {
    */
   String DEFAULT_ISSUE_ASSIGNEE = "sonar.issues.defaultAssigneeLogin";
 
+  /**
+   * @since 6.5
+   */
+  String SKIP_ONBOARDING_TUTORIAL = "sonar.onboardingTutorial.skip";
 }