shaw
|
ba6de4c4d4
|
feat: /keys页面支持表单筛选
|
2026-03-04 11:29:31 +08:00 |
|
shaw
|
b8b5cec35c
|
fix: resolve CI lint errors and test compilation failures for rate limit feature
- Fix errcheck: properly handle rows.Close() error via named return + defer closure
- Fix gofmt: auto-format billing_cache.go, api_key_service.go, billing_cache_service.go
- Add missing rate limit interface methods to 4 test stubs (GetRateLimitData, IncrementRateLimitUsage, ResetRateLimitWindows)
- Fix NewBillingCacheService calls missing the new apiKeyRepo parameter
|
2026-03-03 15:43:08 +08:00 |
|
QTom
|
530a16291c
|
fix(gateway): 分组隔离 — 禁止未分组账号被跨组调度
当 API Key 无分组时,调度仅从未分组账号池中选取。
修复 isAccountInGroup 在 groupID==nil 时的逻辑,
同时补全 scheduler_snapshot_service 和 gemini_compat_service
中的 SimpleMode 保护,确保分组隔离在所有调度路径生效。
新增 ListSchedulableUngroupedByPlatform/s 方法,
使用 Ent 的 Not(HasAccountGroups()) 谓词实现未分组账号隔离。
新增 17 个单元和端到端隔离测试,覆盖所有分支和边界条件。
|
2026-03-03 13:20:58 +08:00 |
|
Wesley Liddick
|
9fd95df5cf
|
Merge pull request #679 from DaydreamCoding/feat/account-rpm-limit
feat: 添加账号级别 RPM(每分钟请求数)限流功能
|
2026-02-28 22:37:10 +08:00 |
|
QTom
|
212cbbd3a2
|
fix: add missing rpmCache nil arg in sora_client_handler_test
|
2026-02-28 21:30:59 +08:00 |
|
QTom
|
6f9e690345
|
test(sora): 补充测试 stub 中缺失的 AddGroupToAllowedGroups 方法
feat/admin-apikey-group-update 分支给 UserRepository 接口新增了
AddGroupToAllowedGroups 方法,需要在测试 stub 中补充实现以通过编译。
- sora_client_handler_test.go: stubUserRepoForHandler
- sora_generation_service_test.go: stubUserRepoForQuota
|
2026-02-28 20:55:31 +08:00 |
|
yangjianbo
|
bb664d9bbf
|
feat(sync): full code sync from release
|
2026-02-28 15:01:20 +08:00 |
|