mirror of
https://github.com/SonarSource/sonarqube.git
synced 2024-09-09 22:26:02 +02:00
SONAR-11369 SONAR-11370 SONAR-11371 Remove mocking of WS
This commit is contained in:
parent
a8634266cf
commit
15fa6622e9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user