From 05b53e3a88f91d6ab952b0abca96c687afe62653 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 17 Jun 2015 13:46:28 +0200 Subject: [PATCH] SONAR-6618 limit number of issues loaded in source viewer --- .../sonar-web/src/main/js/components/source-viewer/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/sonar-web/src/main/js/components/source-viewer/main.js b/server/sonar-web/src/main/js/components/source-viewer/main.js index 947d6582af0..0b4e94ab908 100644 --- a/server/sonar-web/src/main/js/components/source-viewer/main.js +++ b/server/sonar-web/src/main/js/components/source-viewer/main.js @@ -46,7 +46,7 @@ define([ className: 'source-viewer', template: Templates['source-viewer'], - ISSUES_LIMIT: 100, + ISSUES_LIMIT: 3000, LINES_LIMIT: 1000, TOTAL_LINES_LIMIT: 3000, LINES_AROUND: 500, @@ -85,7 +85,6 @@ define([ this.issueViews = []; this.loadSourceBeforeThrottled = _.throttle(this.loadSourceBefore, 1000); this.loadSourceAfterThrottled = _.throttle(this.loadSourceAfter, 1000); - this.scrollTimer = null; this.highlightedLine = null; this.listenTo(this, 'loaded', this.onLoaded); }, @@ -279,7 +278,7 @@ define([ resolved: false, s: 'FILE_LINE', asc: true, - ignorePaging: true + ps: this.ISSUES_LIMIT } }; return this.issues.fetch(options).done(function () { -- 2.39.5