]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5329 apply feedback
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 26 Jun 2014 12:59:07 +0000 (14:59 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 26 Jun 2014 12:59:24 +0000 (14:59 +0200)
https://jira.codehaus.org/browse/SONAR-5329?focusedCommentId=348742&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-348742

sonar-server/src/main/java/org/sonar/server/qualityprofile/RuleActivator.java

index cf80395feccab84cd060cea82beeb4ae9feb9661..aebd29c9341ac561b9773e5b91485096cc81333a 100644 (file)
@@ -137,7 +137,6 @@ public class RuleActivator implements ServerComponent {
 
     if (!changes.isEmpty()) {
       updateProfileDate(dbSession, context);
-      log.write(dbSession, Activity.Type.QPROFILE, changes);
       previewCache.reportGlobalModification(dbSession);
     }
     return changes;
@@ -197,7 +196,7 @@ public class RuleActivator implements ServerComponent {
     } else if (change.getType() == ActiveRuleChange.Type.UPDATED) {
       activeRule = doUpdate(change, context, dbSession);
     }
-
+    log.write(dbSession, Activity.Type.QPROFILE, change);
     return activeRule;
   }
 
@@ -316,7 +315,6 @@ public class RuleActivator implements ServerComponent {
 
     if (!changes.isEmpty()) {
       updateProfileDate(dbSession, context);
-      log.write(dbSession, Activity.Type.QPROFILE, changes);
       previewCache.reportGlobalModification(dbSession);
     }