Skip to content

Make security training promotion callout dismissible

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

  1. Enable the feature flag
echo "Feature.enable(:secure_vulnerability_training)" | rails c
  1. Go to a project's vulnerability report

  2. Open a new browser tab and go to the same project's security dashboard

  3. Close the banner on the vulnerability report, refresh both pages - the banner should not be visible on either

  4. 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.

Related to #350441 (closed)

Edited by David Pisek

Merge request reports

Loading