refactor: DSA 后续开发规划:[实时告警中心] 规则、触发历史、Web 管理… (#1202) - #1426
Closed
ZhuLinsen wants to merge 1 commit into
Closed
Conversation
🤖 自动审查报告
📁 修改的文件
🧠 AI 代码审查意见结论Ready to Merge 结构化审查结果
详细审查意见
综上所述,本次 PR 的变更内容与 PR 描述高度一致,对代码、文档和测试都进行了细致的更新和覆盖,达到了“代码 + 文档 + CI”的联合审查标准。
|
ZhuLinsen
commented
May 23, 2026
ZhuLinsen
left a comment
Owner
Author
There was a problem hiding this comment.
评审结论
- 必要性:通过,告警中心 P8 收口需要同步配置示例、配置注册、Web 文案、文档和 changelog,符合 AGENTS.md 对用户可见配置/文档变更同步更新的要求。
- 是否有对应 issue:有,Closes #1202。
- PR 类型:refactor,主要是配置展示边界、文案和文档收口,未新增告警运行时能力。
- description 完整性:完整,已说明范围、验证、兼容性、文档落点和回滚方式。
- 是否可直接合入:可,当前 CI 为 success,diff 与描述基本一致,未发现阻断性正确性问题;
mergeable_state=blocked更像分支保护状态,不单独构成不可合入理由。
主要问题
- [Nice to have]
apps/dsa-web/src/pages/SettingsPage.tsx/src/core/config_registry.py:本 PR 将AGENT_EVENT_ALERT_RULES_JSON设为不可编辑并在 Web 系统配置页隐藏,这是有意收口 legacy JSON 的行为,但也会让曾经通过系统配置页维护 legacy 规则的用户失去原入口。现有文档已说明 legacy 入口和 Web/API 推荐路径,但建议在发布说明或告警文档中更明确写一句“已有 legacy JSON 仍会被运行时读取,后续需通过.env/环境变量维护或迁移到/alerts”,避免用户误判为配置被删除。该项不阻断合入。
🤖 此回复由 OpenReview Bot 自动生成,仅供参考。如有疑问请 @维护者。
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.
PR Type
Background And Problem
+163 / -8。Scope Of Change
.env.exampleapps/dsa-web/src/pages/SettingsPage.tsxapps/dsa-web/src/pages/__tests__/SettingsPage.test.tsxapps/dsa-web/src/utils/systemConfigI18n.tsdocs/CHANGELOG.mddocs/alerts.mdsrc/core/config_registry.pytests/test_alerts_docs.pytests/test_system_config_service.pyDocumentation And Changelog
docs/CHANGELOG.md,docs/alerts.md。Issue Link
Closes #1202
Verification Commands And Results
关键输出/结论 / Key output & conclusion:
Compatibility And Risk
.env.example,apps/dsa-web/src/pages/SettingsPage.tsx,apps/dsa-web/src/pages/__tests__/SettingsPage.test.tsx,apps/dsa-web/src/utils/systemConfigI18n.ts,docs/CHANGELOG.md,docs/alerts.md,建议按文件范围复核。Rollback Plan
git revert <merge-commit>回滚本 PR 提交,重点确认.env.example,apps/dsa-web/src/pages/SettingsPage.tsx,apps/dsa-web/src/pages/__tests__/SettingsPage.test.tsx,apps/dsa-web/src/utils/systemConfigI18n.ts恢复正常。Acceptance Criteria
Checklist
docs/CHANGELOG.md,并在 PR 描述中说明文档落点 / Relevant docs anddocs/CHANGELOG.mdare updated, and the documentation location is stated in this PR