소스 검색

SONAR-9356 define property "sonar.onboardingTutorial.skip"

tags/6.5-M2
Daniel Schwarz 7 년 전
부모
커밋
a5e983797e

+ 1
- 1
server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java 파일 보기

@@ -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()

+ 8
- 0
sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java 파일 보기

@@ -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()

+ 1
- 1
sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java 파일 보기

@@ -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

+ 4
- 0
sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java 파일 보기

@@ -493,4 +493,8 @@ public interface CoreProperties {
*/
String DEFAULT_ISSUE_ASSIGNEE = "sonar.issues.defaultAssigneeLogin";

/**
* @since 6.5
*/
String SKIP_ONBOARDING_TUTORIAL = "sonar.onboardingTutorial.skip";
}

Loading…
취소
저장