Update training promo widget cancel text
What does this MR do and why?
This MR updates the text
Before | After (this MR) |
---|---|
"Do not show again" | "Don't show again" |
Screenshots or screen recordings
How to set up and validate locally
This feature is behind a feature flag. Enable :refactor_security_extension
to turn this feature on.
echo "Feature.enable(:refactor_security_extension)" | rails c
- Create a new MR and run a pipeline
- Expand security widget
- You will see the security training banner
- The "Enable security training" button will go to help page
- The "Do no show again" will dismiss the promo. Refresh the page, the banner will still be gone.
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
Alternatively, you can following these steps to mock the API (copied from !84896 (merged))
- Go to any MR
- (Optional but handy) Download Mokku for mocking the API: https://chrome.google.com/webstore/detail/mokku-mock-api-calls-seam/llflfcikklhgamfmnjkgpdadpmdplmji?hl=en
- (Optional but handy) Import the following mocks to Mokku mr-security-widget.json
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 #377503 (closed)
Edited by Samantha Ming