Add Gitlab Internal Events to Frontend to unify RedisHLL/Snowplow
What does this MR do and why?
Created trackInternalEvent
on the frontend, which, with a single call, tracks an Event via Snowplow but also increments an according RedisHLL counter.
This change is similar to !118928 (diffs) for backend.
For example, I have updated devops_adoption_app.vue
file where we are calling two methods to track. With this unified API, we can track with only one API.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- In GDK go to
http://127.0.0.1:3000/admin/dev_ops_reports
- Click on the
dev
tab, there will be two API calls of snowplow and/increment_unique_users
are being called - Before this change also, those two were called, difference is now we are calling
this.trackInternalEvent
instead of two seperate functions insidedevops_adoption_app.vue
component.
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.
Edited by Ankit Panchal