Skip to content

feat: improve account filters and queued tests#2304

Open
MiaoZang wants to merge 7 commits intoWei-Shaw:mainfrom
MiaoZang:upstream/account-filters-quota-test-queue
Open

feat: improve account filters and queued tests#2304
MiaoZang wants to merge 7 commits intoWei-Shaw:mainfrom
MiaoZang:upstream/account-filters-quota-test-queue

Conversation

@MiaoZang
Copy link
Copy Markdown

@MiaoZang MiaoZang commented May 8, 2026

Summary

  • Localize account quota/status filters and add active_excluding_quota_stopped plus OpenAI 5h/7d zero-usage filters.
  • Add account model/quota/proxy filter parameters across admin list/export flows.
  • Queue OpenAI account tests after quota reset/refresh and add safe batch account testing.
  • Keep this PR scoped to account filtering/testing; it does not include custom OAuth helper APIs such as addacc2/upacc2/clsacc.

Verification

  • go test ./internal/service -run 'Test.*Account.*(Model|Quota|Schedulable|Filter|Usage)|TestGatewayRequest' -count=1
  • go test ./internal/handler/admin -run 'Test.*(ResetQuota|Account|Batch|TestQueue)' -count=1
  • GOTMPDIR=T:\C++_save\GPT\sub2api部署\tmp-go go test ./internal/repository -run 'Test.*Account.*(Filter|List|Sort)' -count=1 -p 1
  • go test ./internal/handler/admin ./internal/service ./internal/repository ./internal/server -run 'Test(AccountHandler|AdminService|.*Account.*|.*Contract|.*API)' -count=1 -p 1
  • pnpm exec vitest run src/views/admin/__tests__/AccountsView.spec.ts
  • pnpm exec eslint src/views/admin/AccountsView.vue src/components/admin/account/AccountTableFilters.vue src/api/admin/accounts.ts src/components/admin/account/accountModelFilter.ts src/components/admin/account/accountProxyFilter.ts
  • git diff --check

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@MiaoZang
Copy link
Copy Markdown
Author

MiaoZang commented May 9, 2026

I have read the CLA Document and I hereby sign the CLA

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.

1 participant