Skip to content

fix: reduce usage stats polling payload - #261

Merged
bbbugg merged 2 commits into
mainfrom
fix/usage
Sep 12, 2026
Merged

bbbugg merged 2 commits into
mainfrom
fix/usage

Conversation

@bbbugg

@bbbugg bbbugg commented Sep 5, 2026

Copy link
Copy Markdown
Member

Summary

  • prevent the status page from starting duplicate polling loops
  • default usage statistics to the last 30 days and send startTime/endTime with each request
  • filter usage records by startedAt on the server
  • ignore stale responses when the selected time range changes

Verification

  • npm run build:ui
  • node test/usage-stats-readers.test.js
  • node test/usage-stats-import-started-at.test.js

Fixes #260

@bbbugg
bbbugg merged commit b3fa8b0 into main Sep 12, 2026
1 check passed
@bbbugg
bbbugg deleted the fix/usage branch September 12, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[反馈]: /api/usage-stats 传输数据量过大

1 participant