Conversation
Add status.pendingReplyCount maintained by ReplyEventReconciler and query it in CommentQuery when filtering by approval state, so the console comment list no longer hides pending replies under approved root comments.
|
Author
This branch has not been deployed
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.




Add status.pendingReplyCount maintained by ReplyEventReconciler and query it in CommentQuery when filtering by approval state, so the console comment list no longer hides pending replies under approved root comments.
What type of PR is this?
What this PR does / why we need it:
后台评论管理按"待审核"筛选时,只有根评论(Comment)参与过滤,挂在已审核根评论下的待审核回复(Reply)永远不可见(#10236)。
本 PR 在 Comment.status 新增 pendingReplyCount,由现有的 ReplyEventReconciler 与 visibleReplyCount 同批维护,并注册索引。CommentQuery 新增 approved 查询参数,approved=false 时按 spec.approved=false OR status.pendingReplyCount>0 过滤,使包含待审核回复的整棵评论树都能被筛出。控制台在筛选生效时自动展开命中树,并在"N 条待审核回复"处展示计数入口。
存量数据:reconciler 启动时对 pendingReplyCount IS NULL 且有回复的评论入队回填,一次性的,稳态启动开销为空查询。新增 CommentQueryTest 覆盖三种筛选语义。
Which issue(s) this PR fixes:
Fixes #<10236>
Special notes for your reviewer:
涉及 LLM 辅助开发(本 PR 代码已经过逐文件人工审查并在本地按 issue 复现步骤验证)。api-docs 与 ui/packages/api-client 变更为 generateOpenApiDocs + api-client:gen 重新生成的产物。
Does this PR introduce a user-facing change?
评论管理列表按“待审核”筛选时,包含待审核回复的评论树不再被遗漏