Skip to content

Fix Security Reports widget not displaying error message

Savas Vedova requested to merge 431850-fix-error-status into master

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
image image

How to set up and validate locally

  1. Checkout https://gitlab.com/gitlab-org/govern/demos/sandbox/minac/static-reports/mr-widget-with-malformed-reports
  2. Create a pipeline againts the default branch and set the USE_MALFORMED_REPORT environment variable to true
  3. Modify the README.md and create a new MR
  4. 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.

Related to #431850 (closed)

Edited by Savas Vedova

Merge request reports