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
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown

🎉 此 PR 的修改已在版本 v1.3.8 中发布。
🎉 The changes in this PR have been released in version v1.3.8.

@bbbugg bbbugg added 🚀 Enhancement New feature or request ⚡️ Performance Speed or resource usage and removed 🚀 Enhancement New feature or request labels Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚡️ Performance Speed or resource usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant