feat(knowledge): select_all batch ops by filter (supersedes #2590) - #2685
Open
LiangYuHai wants to merge 3 commits into
Open
feat(knowledge): select_all batch ops by filter (supersedes #2590)#2685LiangYuHai wants to merge 3 commits into
LiangYuHai wants to merge 3 commits into
Conversation
Allow batch delete/reparse/move/tag/cancel-parse to accept select_all with list filters and exclude_ids so the server resolves the ID set instead of requiring the client to page through all matches. Explicit ID mode keeps the existing 200-per-request limit.
Replace cross-page ID pagination with an all_matching selection mode that snapshots list filters and sends select_all to the backend. Explicit multi- select still chunks by 200. Add batch-bar stop-parse wired to the new batch-cancel-parse API, and keep per-row move/delete scoped to one item.
CI Check formatting failed on field alignment and comment indent.
LiangYuHai
force-pushed
the
feat/batch-select-all-by-filter
branch
from
August 14, 2026 06:34
35ccdb4 to
ad7e08e
Compare
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.
按在 #2590 的反馈,不再用前端翻页拉取全量 ID,改为批量请求携带
select_all+ 列表筛选filter+exclude_ids,由后端解析目标集合。select_allPOST /knowledge/batch-cancel-parse,批量栏增加「停止解析」(上游原先仅有单条 cancel)maxBatch=200限制,前端继续按 200 分片exclude_ids排除;单行「移动到目录」不会误用全选语义folder_path/folder_recursive)这是对 feat(frontend): select all documents across pages #2590(前端循环分页全选)的替代方案;显式多选的 200 分片逻辑与 fix(frontend): chunk batch delete/reparse to respect backend id limit #2588 互补。
Type of Change
Related Issue
Supersedes #2590
Related #2588
Testing
go test ./internal/handler/ -run 'TestResolveBatch|TestChunkString'go test ./internal/application/repository/ -run 'TestListKnowledgeIDsByFilter'Checklist
git diff --check origin/main...HEADpassesgolangci-lint run --new-from-rev=origin/main ./...)docs/, Swagger annotations, etc.)