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:
- Navigate to https://gitlab.com/gitlab-org/govern/threat-insights-demos/personal-test-projects/security-reports-empty/-/pipelines/793389204/security
- Click on a finding to open the modal
- 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
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by David Pisek