Repository navigation
fix(pagination): bound list queries and preserve workspace candidates - #1477
Merged
fit2cloud-chenyw merged 4 commits intoNov 20, 2026
Merged
Conversation
Contributor
|
复核结论:提交
兼容性说明:外部 API 调用方请求超过 500 条时需要继续翻页;候选用户较多时弹窗增加分批请求,打开可能更慢。该限制约束单次返回条数,不限制 count 的扫描成本或弹窗最终持有的全部候选数据。独立术语/SQL 示例分页不在本 PR 范围内。尚未执行 PostgreSQL、完整认证授权链及完整部署验收,现有验证不等同于这些层级通过。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
List endpoints using the shared paginator accepted zero or negative page sizes and unbounded sizes. Zero sizes caused division by zero, and invalid or extremely large offsets could fail at the database boundary.
Validation on main 5f1cd86 plus this change:
Scope: shared user/workspace-member/system-variable pagination. Independent terminology and SQL-example pagination is unchanged. SQLite and isolated browser HTTP fixtures do not replace PostgreSQL or full authentication/authorization deployment validation. The limit bounds returned rows per request; count/filter scan cost and the dialog's total in-memory candidate set remain proportional to the data.
Fixes #1476