Issue #3613214: Per-user usage dashboard has no meaningful default sort order and its Sort by buttons only apply to the current page

Moves sorting to SQL for QuotaManager::getDashboardData() and RollupManager::getMonthAggregates(): a sort column/direction query arg, validated against an allow-list (calls, cost, tokens used, editor name), applied as ORDER BY before the pager's LIMIT/OFFSET, in both the current-month and rolled-up-month queries. Replaces the client-side sort buttons with server-side links. Also fixes a pre-existing test-isolation gap in DashboardTest.php (missing RunTestsInSeparateProcesses).

Closes #3613214

https://www.drupal.org/project/ai_metering/issues/3613214

Edited by Jérôme Tchania

Merge request reports

Loading