Refactor duoUsedCount to use ai_usage_events table
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
This MR refactors the `duoUsedCount` metric calculation in `DuoUsageService` to use the unified `ai_usage_events` table instead of querying separate `*_daily` tables.
cc @pshutsin
closes #572855
Edited by 🤖 GitLab Bot 🤖