Repository navigation
perf(admin): devpass usage reads from aggregator tables - #2328
Conversation
Top models/providers panels now sum projectHourlyModelStats joined to project -> organization with the DevPass filter, replacing the expensive scan over the raw log table. Top coding agents reads from globalSourceStats (cross-org), matching the global-stats endpoint since no per-org source aggregator exists.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThe DevPass usage reporting endpoint is refactored to use pre-computed rollup tables instead of raw logs. Model and provider totals now come from ChangesDevPass Usage Rollup Migration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Top models/providers panels now sum projectHourlyModelStats joined
to project -> organization with the DevPass filter, replacing the
expensive scan over the raw log table. Top coding agents reads from
globalSourceStats (cross-org), matching the global-stats endpoint
since no per-org source aggregator exists.
Summary by CodeRabbit