Skip to content

Fix revert dismissal

What does this MR do and why?

Fixes the "undo dismissal" functionality when vulnerability feedback is deprecated.

See #361797 (comment 1345604228)

Steps to reproduce:

  1. Navigate to https://gitlab.com/gitlab-org/govern/threat-insights-demos/personal-test-projects/security-reports-empty/-/pipelines/793389204/security
  2. Click on a finding to open the modal
  3. Click "undo dismiss" link within the toast-message

Note: The "Undo dismiss" link only shows when the "Hide dismiss" toggle is enabled.

Screenshots or screen recordings

Before

Screen_Recording_2023-04-07_at_9.51.45_pm

After

tested on https://gitlab.com/gitlab-examples/security/security-reports/-/pipelines/824546831/security

Screen_Recording_2023-04-07_at_9.48.43_pm

How to set up and validate locally

  1. Enable FF: echo "Feature.enable(:deprecate_vulnerabilities_feedback)" | rails c

Follow the steps above on a local project.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by David Pisek

Merge request reports

Loading