From: Stas Vilchik Date: Wed, 2 Jul 2014 09:29:03 +0000 (+0600) Subject: SONAR-5209 Only closed issues should be displayed at the top X-Git-Tag: 4.4-RC1~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=61d46832513df5ab8a5671e9c01d4c053448a997;p=sonarqube.git SONAR-5209 Only closed issues should be displayed at the top --- diff --git a/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee b/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee index 8554bbd7964..2bee7384f30 100644 --- a/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee +++ b/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee @@ -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 diff --git a/sonar-server/src/main/coffee/component-viewer/source.coffee b/sonar-server/src/main/coffee/component-viewer/source.coffee index d0bad4a9182..7d47af82001 100644 --- a/sonar-server/src/main/coffee/component-viewer/source.coffee +++ b/sonar-server/src/main/coffee/component-viewer/source.coffee @@ -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