Browse Source

SONAR-8151 remove property category Organizations from UI for 6.2

tags/6.2-RC1
Sébastien Lesaint 7 years ago
parent
commit
ba3c13b388

+ 1
- 1
server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java View File

@@ -108,7 +108,7 @@ public class ComputeEngineContainerImplTest {
+ 26 // level 1
+ 47 // content of DaoModule
+ 2 // content of EsSearchModule
+ 63 // content of CorePropertyDefinitions
+ 62 // content of CorePropertyDefinitions
+ 1 // content of CePropertyDefinitions
);
assertThat(picoContainer.getParent().getParent().getParent().getParent()).isNull();

+ 12
- 9
sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java View File

@@ -292,15 +292,18 @@ public class CorePropertyDefinitions {
.category(CoreProperties.CATEGORY_EXCLUSIONS)
.subCategory(CoreProperties.SUBCATEGORY_DUPLICATIONS_EXCLUSIONS)
.multiValues(true)
.build(),

// ORGANIZATIONS
PropertyDefinition.builder(ORGANIZATIONS_ANYONE_CAN_CREATE)
.name("Allow any authenticated user to create organizations")
.defaultValue(Boolean.toString(false))
.category(CATEGORY_ORGANIZATIONS)
.type(PropertyType.BOOLEAN)
.build()));
.build()
// FIXME remove organization property category from UI for release 6.2
// ,
//
// // ORGANIZATIONS
// PropertyDefinition.builder(ORGANIZATIONS_ANYONE_CAN_CREATE)
// .name("Allow any authenticated user to create organizations")
// .defaultValue(Boolean.toString(false))
// .category(CATEGORY_ORGANIZATIONS)
// .type(PropertyType.BOOLEAN)
// .build()
));
return defs;
}
}

+ 1
- 1
sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java View File

@@ -35,7 +35,7 @@ public class CorePropertyDefinitionsTest {
@Test
public void all() {
List<PropertyDefinition> defs = CorePropertyDefinitions.all();
assertThat(defs).hasSize(65);
assertThat(defs).hasSize(64);
}

@Test

Loading…
Cancel
Save