]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Set issues limit to 100. Add issues limit reached message.
authorStas Vilchik <vilchiks@gmail.com>
Tue, 1 Jul 2014 06:36:54 +0000 (12:36 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 1 Jul 2014 06:36:54 +0000 (12:36 +0600)
sonar-core/src/main/resources/org/sonar/l10n/core.properties
sonar-server/src/main/coffee/component-viewer/source.coffee
sonar-server/src/main/hbs/component-viewer/source.hbs

index e8bbcf55a703df88785b76a044c228797ca65a94..2d746c379924c45b388a1df5d52d6282de8e7be0 100644 (file)
@@ -2670,6 +2670,7 @@ component_viewer.more_actions=More Actions
 component_viewer.new_window=Open in New Window
 component_viewer.get_permalink=Get Permalink
 component_viewer.covered_lines=Covered Lines
+component_viewer.issues_limit_reached=Only the first {0} issues are displayed
 
 component_viewer.workspace=Workspace
 component_viewer.workspace.tooltip=Keeps track of history of navigation
index 12392598ee8809965305ce99a21c8cbdb670c6bd..d1e255f01a8463d40ecdd3505d6820cea784b149 100644 (file)
@@ -22,7 +22,7 @@ define [
   $ = jQuery
 
   API_COVERAGE_TESTS = "#{baseUrl}/api/tests/test_cases"
-  ISSUES_LIMIT = 50
+  ISSUES_LIMIT = 100
 
 
   class SourceView extends Marionette.ItemView
@@ -288,3 +288,5 @@ define [
       component: @options.main.component.toJSON()
       columns: @getStatColumnsCount() + 1
       showZeroLine: @showZeroLine()
+      issuesLimit: ISSUES_LIMIT
+      issuesLimitReached: @model.get('activeIssues')?.length > ISSUES_LIMIT
index 980570b8f36d5cdfa01fa043853e40fc4ad3350c..707abcb8b88c03c440d1797373493d956eb1a7b6 100644 (file)
@@ -8,6 +8,10 @@
     <p class="marginbottom10">{{t 'duplications.dups_found_on_deleted_resource'}}</p>
   {{/if}}
 
+  {{#if issuesLimitReached}}
+    <p class="marginbottom10">{{tp 'component_viewer.issues_limit_reached' issuesLimit}}</p>
+  {{/if}}
+
   <table class="code">
     {{#if showZeroLine}}
       <tr class="row row-hidden" data-line-number="0" id="{{uid}}-0">