Skip to content

fix: reduce usage stats polling payload - #261

Open
bbbugg wants to merge 2 commits into
mainfrom
fix/usage
Open

fix: reduce usage stats polling payload#261
bbbugg wants to merge 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

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