Fix Security Reports widget not displaying error message
What does this MR do and why?
Fix Security Reports widget not displaying error message
If parsing the schema fails, backend returns a 400 status code. When this happens, display a top-level error message in the widget.
Changelog: fixed EE: true
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Checkout https://gitlab.com/gitlab-org/govern/demos/sandbox/minac/static-reports/mr-widget-with-malformed-reports
- Create a pipeline againts the default branch and set the
USE_MALFORMED_REPORT
environment variable totrue
- Modify the README.md and create a new MR
- Check the MR page
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #431850 (closed)
Edited by Savas Vedova