Skip to content

Dismiss finding through GraphQL

What does this MR do and why?

Dismiss a finding through GraphQL. This work is required because lately we decided to switch to stateTransitions and they do not contain the dismissal_feedback id so we have to use GraphQL to make it work.

Screenshots or screen recordings

No visual changes but here's how the process looks like:

dismiss-finding

How to set up and validate locally

  1. Enable feature flag: :refactor_security_extension
  2. Fork https://gitlab.com/gitlab-examples/security/security-reports/
  3. Create an MR
  4. Click on a finding
  5. Dismiss it

It should dismiss the finding and close the modal. Opening the modal back should display the undo dismiss button.

Refreshing the page or reopening the modal will not display the dismissal information. That work is being captured in !114117 (merged).

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 #395618 (closed)

Merge request reports