Make security training promotion callout dismissible
requested to merge 350441-add-storing-of-dismissal-state-to-security-training-promotion-callout into master
What does this MR do and why?
It makes the recently added promotion banner for the upcomping security-training feature dismissible.
Screenshots or screen recordings
N / A
How to set up and validate locally
- Enable the feature flag
echo "Feature.enable(:secure_vulnerability_training)" | rails c
-
Go to a project's vulnerability report
-
Open a new browser tab and go to the same project's security dashboard
-
Close the banner on the vulnerability report, refresh both pages - the banner should not be visible on either
-
To reset the dismissal state and try closing it again do (just replace "root" with your gdk's username):
echo 'User.find_by(username: "root").callouts.find_by(feature_name: "security_training_feature_promotion").destroy' | rails c
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.
Related to #350441 (closed)
Edited by David Pisek