]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6087 Purge removed Views and Sub-Views Index on each Views analysis
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 28 Jan 2015 11:24:33 +0000 (12:24 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 29 Jan 2015 14:10:26 +0000 (15:10 +0100)
server/sonar-server/src/main/java/org/sonar/server/view/index/ViewIndex.java
sonar-core/src/main/java/org/sonar/core/component/db/ComponentMapper.java
sonar-core/src/main/resources/org/sonar/core/component/db/ComponentMapper.xml

index 424f9667337f0a47a334fff4cad18c18054b689b..54ffd0161a045403bbd0ecbe4593cddaad7e9a64 100644 (file)
@@ -78,7 +78,7 @@ public class ViewIndex implements ServerComponent {
       .setTypes(ViewIndexDefinition.TYPE_VIEW)
       .setQuery(QueryBuilders.filteredQuery(QueryBuilders.matchAllQuery(),
         FilterBuilders.termsFilter(ViewIndexDefinition.FIELD_UUID, viewUuids)
-        ))
+      ))
       .get();
   }
 }
index 5deb3808f10d62f4917e8757e311ae7581e60817..b38344c6921bd2995fc455b13137290b1facf2f8 100644 (file)
@@ -95,7 +95,7 @@ public interface ComponentMapper {
    * Return technical projects from a view or a sub-view
    */
   List<String> selectProjectsFromView(@Param("viewUuidLikeQuery") String viewUuidLikeQuery, @Param("projectViewUuid") String projectViewUuid,
-    @Param("subViewQualifier") String subViewQualifier);
+                                      @Param("subViewQualifier") String subViewQualifier);
 
   long countById(long id);
 
index e7b01ed806aaf7460dd89c43bce5040f50acfdcd..15fce5b455073ec38b058f4c4b2614d670d5fb20 100644 (file)
   <insert id="insert" parameterType="Component" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
     insert into projects <include refid="insertColumns"/>
     values (#{kee}, #{deprecatedKey}, #{uuid}, #{projectUuid}, #{moduleUuid}, #{moduleUuidPath}, #{name}, #{longName}, #{qualifier}, #{scope},
-      #{language}, #{parentProjectId}, #{path}, #{enabled}, #{createdAt}, #{authorizationUpdatedAt})
+    #{language}, #{parentProjectId}, #{path}, #{enabled}, #{createdAt}, #{authorizationUpdatedAt})
   </insert>
 
   <delete id="deleteByKey" parameterType="String">