]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5143 revert. Inclusions are coming back to UI !
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 18 Mar 2014 14:22:28 +0000 (15:22 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 18 Mar 2014 14:37:59 +0000 (15:37 +0100)
Conflicts:
sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java
sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql
sonar-server/src/main/webapp/WEB-INF/db/migrate/499_delete_inclusions_properties.rb

plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/ExclusionProperties.java
sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql
sonar-server/src/main/webapp/WEB-INF/db/migrate/499_delete_inclusions_properties.rb [deleted file]

index 00d7e7c061164c9827020bdc447c70b0aa007c80..b169a5729656d618b42d0782442313fe39255704 100644 (file)
@@ -34,24 +34,22 @@ class ExclusionProperties {
 
   static List<PropertyDefinition> definitions() {
     return ImmutableList.of(
-
-      // Do not display inclusions in UI
-      // https://jira.codehaus.org/browse/SONAR-5143
       PropertyDefinition.builder(CoreProperties.PROJECT_INCLUSIONS_PROPERTY)
         .name("Source File Inclusions")
         .multiValues(true)
         .category(CoreProperties.CATEGORY_EXCLUSIONS)
         .subCategory(CoreProperties.SUBCATEGORY_FILES_EXCLUSIONS)
-        .hidden()
+        .onQualifiers(Qualifiers.PROJECT)
+        .index(3)
         .build(),
       PropertyDefinition.builder(CoreProperties.PROJECT_TEST_INCLUSIONS_PROPERTY)
         .name("Test File Inclusions")
         .multiValues(true)
         .category(CoreProperties.CATEGORY_EXCLUSIONS)
         .subCategory(CoreProperties.SUBCATEGORY_FILES_EXCLUSIONS)
-        .hidden()
+        .onQualifiers(Qualifiers.PROJECT)
+        .index(5)
         .build(),
-
       PropertyDefinition.builder(CoreProperties.GLOBAL_EXCLUSIONS_PROPERTY)
         .name("Global Source File Exclusions")
         .multiValues(true)
index d01a3101ee42531ccd381edae6a992ea65b103bb..b924803a886afa368bd92726350b7a399bf52864 100644 (file)
@@ -208,7 +208,6 @@ INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('495');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('496');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('497');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('498');
-INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('499');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('510');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('511');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('512');
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/499_delete_inclusions_properties.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/499_delete_inclusions_properties.rb
deleted file mode 100644 (file)
index 84a8bfb..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# SonarQube, open source software quality management tool.
-# Copyright (C) 2008-2013 SonarSource
-# mailto:contact AT sonarsource DOT com
-#
-# SonarQube is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 3 of the License, or (at your option) any later version.
-#
-# SonarQube is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
-#
-
-#
-# SonarQube 4.2
-# SONAR-5143
-#
-class DeleteInclusionsProperties < ActiveRecord::Migration
-
-  class Property < ActiveRecord::Base
-  end
-
-  def self.up
-    Property.delete_all("prop_key = 'sonar.inclusions'")
-    Property.delete_all("prop_key = 'sonar.test.inclusions'")
-  end
-
-end