Skip to content

Add event tracking to Duo Pro (Code Suggestions) group owner alert

Roy Liu requested to merge 437774-add-trackings-to-cs-ga-group-owner-alert into master

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
Screenshot_2024-01-09_at_3.11.33_PM Screenshot_2024-01-09_at_2.56.56_PM

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)
  1. Setup GDK to simulate SaaS.
  2. Login as Admin and set a public group use EE plan that is not trial with instructions point 3 here
  3. 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

Merge request reports