Add event tracking to Duo Pro (Code Suggestions) group owner alert
What does this MR do and why?
Related to #437774
Add two frontend tracking events to an alert
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
Event properties screenshots from snowplow debugger.
Alert is displayed | User click CTA |
---|---|
How to set up and validate locally
Setup feature flags
Feature.enable(:code_suggestions_ga_owner_alert)
Feature.enable(:ai_assist_ui)
Feature.enable(:ai_assist_flag)
- Setup GDK to simulate SaaS.
- Login as Admin and set a public group use EE plan that is not trial with instructions point 3 here
- On the group's admin page:
http://gdk.test:3000/admin/groups/<group_name>
, pick a owner group member to impersonate and view the group and projects in it to interact and observe the alert.
To clear user callout to show alert again, run ::Users::Callout.last.destroy
Edited by Roy Liu