fix(usage): fetch full trend/export series via page=-1

Trend charts and breakdown exports need the complete date series. The old
perPage=10000 workaround (and the missing page param on the token trend,
which fell back to perPage=20) dropped low-traffic — often most recent —
buckets, leaving gaps in the charts (#5690).

Send page=-1 (the backend's no-pagination sentinel) for the token trend,
the storage/instances trend charts and table exports, the resource export
dialog, and the summary-tab date trends.
This commit is contained in:
michelia
2026-06-27 22:27:42 +08:00
committed by jialin
parent 8b34f68824
commit abe705c034
5 changed files with 22 additions and 6 deletions
+4 -2
View File
@@ -140,7 +140,8 @@ const StorageTab: React.FC = () => {
// whole range. The default order is metric-desc, so partial (current/
// recent) buckets have smaller values and would be pushed onto later
// pages — dropping the newest hours from the chart under a small page.
perPage: 10000
// ``page: -1`` is the backend's no-pagination sentinel.
page: -1
})
);
@@ -283,7 +284,8 @@ const StorageTab: React.FC = () => {
...baseRequest(),
group_by: [g.key],
// A breakdown export is the full filtered set, not a page.
perPage: 10000
// ``page: -1`` is the backend's no-pagination sentinel.
page: -1
})
)
);