Skip to content

Update the security_training_promo_banner.vue to use the shared security_training_promo.vue component

Samantha Ming requested to merge 373274-use-sec-training-promo-vul-page into master

What does this MR do and why?

This MR update the promo banner on the vulnerability page to use the shared security_training_promo.vue component

Screenshots or screen recordings

There is no UI/UX change in this MR. All functionalities remain the same.

image

How to set up and validate locally

All the existing behaviors should exist:

  1. Go to a project's vulnerability report (Project > Security & Compliance > Vulnerability report)
  2. You will see the promo banner
  3. To test the dismissal, open a new browser tab and go to the same project's security dashboard
  4. Close the banner on the vulnerability report, refresh both pages - the banner should not be visible on either
  5. 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 #373274 (closed)

Edited by Samantha Ming

Merge request reports

Loading