From: Pascal Mugnier Date: Tue, 23 Oct 2018 07:46:09 +0000 (+0200) Subject: SONAR-11369 SONAR-11370 SONAR-11371 Remove mocking of WS X-Git-Tag: 7.5~234 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=15fa6622e97c982072cef37084152468b2547878;p=sonarqube.git SONAR-11369 SONAR-11370 SONAR-11371 Remove mocking of WS --- diff --git a/server/sonar-web/src/main/js/api/security-reports.ts b/server/sonar-web/src/main/js/api/security-reports.ts index 74006076097..2747ea7536f 100644 --- a/server/sonar-web/src/main/js/api/security-reports.ts +++ b/server/sonar-web/src/main/js/api/security-reports.ts @@ -27,15 +27,5 @@ export function getSecurityHotspots(data: { includeDistribution?: boolean; branch?: string; }): Promise<{ categories: Array }> { - return getJSON('/api/security_reports/show', data) - .then(data => { - /* MOCK, must be removed after backend implementation */ - data.categories = data.categories.map((v: SecurityHotspot, index: number) => { - v.activeRules = index; - v.totalRules = 200; - return v; - }); - return data; - }) - .catch(throwGlobalError); + return getJSON('/api/security_reports/show', data).catch(throwGlobalError); }