]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Only closed issues should be displayed at the top
authorStas Vilchik <vilchiks@gmail.com>
Wed, 2 Jul 2014 09:29:03 +0000 (15:29 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 2 Jul 2014 09:29:11 +0000 (15:29 +0600)
sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee
sonar-server/src/main/coffee/component-viewer/source.coffee

index 8554bbd796491d596b1e1051780f418509430a89..2bee7384f30639797e24f0391bf192ae5400fbb8 100644 (file)
@@ -65,7 +65,7 @@ define [
       @sourceView.resetShowBlocks()
       issues.forEach (issue) =>
         line = issue.line || 0
-        if issue.resolution == 'FIXED' || issue.resolution == 'REMOVED'
+        if issue.status == 'CLOSED'
           @sourceView.addShowBlock 0, 0, true
         else
           @sourceView.addShowBlock line - LINES_AROUND_ISSUE, line + LINES_AROUND_ISSUE, line == 0
@@ -93,7 +93,7 @@ define [
       issues.forEach (issue) =>
         if predicate issue
           line = issue.line || 0
-          if issue.resolution == 'FIXED' || issue.resolution == 'REMOVED'
+          if issue.status == 'CLOSED'
             @sourceView.addShowBlock 0, 0, true
           else
             @sourceView.addShowBlock line - LINES_AROUND_ISSUE, line + LINES_AROUND_ISSUE, line == 0
index d0bad4a91820b7c2c9d255448b9894a4fe495f13..7d47af82001b755598af0e7d1578247253bd8874 100644 (file)
@@ -105,7 +105,7 @@ define [
       rendered = 0
       issues.forEach (issue) =>
         line = issue.line || 0
-        line = 0 if issue.resolution == 'FIXED' || issue.resolution == 'REMOVED'
+        line = 0 if issue.status == 'CLOSED'
         row = @$("##{@cid}-#{line}")
         unless row.length > 0
           line = 0