574400 - Clickhouse QueryBuilder for NewAiUserMetricsService
What does this MR do and why?
This MR is part for breaking !210409 down.
Here we are adding a new service that's more extendable from the original AiUserMetricsService. What has changed is:
- Accepting specific event names as a filter
- Consolidating multiple separate database queries into a single query
The next MR will update graphql endpoint to use this new service and add new fields
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- Run the spec file
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #574400
Edited by Amr Taha