Skip to content

Adding alert for duo pro trials for existing users

Ross Byrne requested to merge 448671-duo-pro-trials-alert into master

What does this MR do and why?

Resolves https://gitlab.com/gitlab-org/gitlab/-/issues/448671

Adding alert for Duo Pro trials for existing users

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Alert
Screenshot_2024-03-27_at_16.43.04
Project with empty repo Screenshot_2024-03-27_at_4.08.37_PM
Project with no repo Screenshot_2024-03-27_at_4.09.45_PM

How to set up and validate locally

  1. Setup GDK to simulate SaaS
  2. Enable Duo Pro trials Feature Flag: echo "Feature.enable :duo_pro_trials" | gdk rails c
  3. Enable alert Feature Flag: echo "Feature.enable :duo_pro_trial_alert" | gdk rails c
  4. Create a group that is on a paid plan such as premium or ultimate
  5. Go to Group, sub-group and project overview pages
  6. Alert should be visible

To clear a callout for the dismissed alert, run Users::Callout.last.destroy

Related to #448671

Edited by Roy Liu

Merge request reports