Skip to content

Improve NOT_FOUND response handling on ThreatMonitoring page

Arthur Evstifeev requested to merge threat-monitoring-improve-not-found into master

What does this MR do?

NOT_FOUND responses use the same code path as successful responses but provide unexpected payload. Such payloads break underlying mutator and cause loading state component to stay indefinitely. This patch normalises payloads between 2 flows and improves this logic by letting mutator decide which code path to use.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Arthur Evstifeev

Merge request reports