Update the security_training_promo_banner.vue to use the shared security_training_promo.vue component
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.
How to set up and validate locally
All the existing behaviors should exist:
- Go to a project's vulnerability report (Project > Security & Compliance > Vulnerability report)
- You will see the promo banner
- To test the dismissal, 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 #373274 (closed)
Edited by Samantha Ming