Closed (fixed)
Project:
AI Metering
Version:
1.0.0-beta1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
26 Jul 2026 at 03:24 UTC
Updated:
3 Aug 2026 at 17:32 UTC
Jump to comment: Most recent
QuotaManager::getDashboardData() and RollupManager::getMonthAggregates() duplicate the same joins, quota-percentage expression, and sort/ORDER BY logic across two classes. Issue #3613214 needed the same ORDER BY fix in both places and missed one on the first pass, because nothing keeps them in sync.
Extract the shared joins, quota-percentage expression, and sort resolution into one place both classes use. Each method keeps its own table-specific aggregation (raw log vs pre-aggregated rollup).
Yes.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
codeitwisely commentedComment #6
codeitwisely commented