[MR Widget V2] Handle error state for reports
Summary
When one of the reports return a 400
(when JSON is not being parsed for instance), we currently display an error like:
This implementation is currently missing in the MR Widget V2.
Implementation plan
-
ee/app/assets/javascripts/vue_merge_request_widget/extensions/security_reports/mr_widget_security_reports.vue
contains afetchCollapsedData
method which handles the API calls. Update the function to handle400
messages.
Verification steps
- Go to https://staging.gitlab.com/defend-team-test/security-reports/-/merge_requests/6
- Expand the security reports
- Check that Coverage fuzzing has an error message
Edited by Savas Vedova