diff options
author | Pascal Mugnier <pascal.mugnier@sonarsource.com> | 2018-10-23 09:46:09 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-10-25 20:21:02 +0200 |
commit | 15fa6622e97c982072cef37084152468b2547878 (patch) | |
tree | 93865d5dba48084148d3d2a841ac62e51858f9bb | |
parent | a8634266cf554b4679544e9842d726f0b3771a81 (diff) | |
download | sonarqube-15fa6622e97c982072cef37084152468b2547878.tar.gz sonarqube-15fa6622e97c982072cef37084152468b2547878.zip |
SONAR-11369 SONAR-11370 SONAR-11371 Remove mocking of WS
-rw-r--r-- | server/sonar-web/src/main/js/api/security-reports.ts | 12 |
1 files changed, 1 insertions, 11 deletions
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<SecurityHotspot> }> { - 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); } |