[FE] Implement export for "security" for group dashboard
Add functionality to make request to the BE API
Reference spike for more info: [FE] Spike on "security" for group dashboard (!192451 - closed)
const svgUrl = this.echartsInstance.getDataURL({
type: 'svg',
excludeComponents: ['toolbox', 'dataZoom'],
});
Data Schema
This is the planned schema. But the field name may change if needed.
{
report_data: {
project_security_status: [
{
grade: "F",
project_count: 6,
projects: [{
name,
href,
most_severe_vulnerability: {severity: 'critical', count: 1}
}]
},
],
group_full_path: ''
}
}
Requirement
- Payload: need to double check with BE API implementation
- Make request
- Add error alert if request fails
Edited by 🤖 GitLab Bot 🤖