feat: SQL 管控引入 SQL 治理能力#849
Merged
Merged
Conversation
Keep .cursor/ out of version control for developer-specific settings. Co-authored-by: Cursor <cursoragent@cursor.com>
Add remediation query/export types and client methods; extend list response types for SQL remediation tracking. Co-authored-by: Cursor <cursoragent@cursor.com>
Add level summary, i18n-aware display text, and ruleDesc mode to support remediation audit presentation across pages. Co-authored-by: Cursor <cursoragent@cursor.com>
Pass extended audit fields and ruleDesc display mode for consistent audit messaging with SQL management. Co-authored-by: Cursor <cursoragent@cursor.com>
Provide reusable drawer and diff view for SQL remediation detail and comparison workflows. Co-authored-by: Cursor <cursoragent@cursor.com>
Wire global modal name and list export events used by SQL management remediation UI. Co-authored-by: Cursor <cursoragent@cursor.com>
Cover remediation drawer, export actions, and first/current audit result wording in zh-CN and en-US. Co-authored-by: Cursor <cursoragent@cursor.com>
Add columns, export, status drawer updates, and remediation detail entry on the EE SQL management index. Co-authored-by: Cursor <cursoragent@cursor.com>
Update SqlAnalyze and SqlManage pages to surface remediation diff and related audit presentation. Co-authored-by: Cursor <cursoragent@cursor.com>
…collection Rename ScanTypeSqlCollection entry module, support remediation export on conf detail, and align audit plan mock data. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Update SqlAnalyze snapshots for remediation compare tab, mock react-router-dom and remediation API, and stabilize export/drawer tests with userEvent under fake timers. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…QL column Co-authored-by: Cursor <cursoragent@cursor.com>
Coverage report
Test suite run success2249 tests passing in 622 suites. Report generated by 🧪jest coverage report action from 6cafb82 |
Collaborator
Author
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.




关联的 issue
https://github.com/actiontech/sqle-ee/issues/2988
描述你的变更
本次 MR 为 EE 端 SQL 管理引入 SQL 治理(Remediation) 相关能力,覆盖列表展示、详情对比、导出及审计结果展示增强。
API 与类型
SqlManageAPI:新增治理查询/导出接口及类型定义,列表响应增加治理跟踪相关字段。SQL 管理列表
RemediationDetailDrawer弹窗 key。治理详情与对比
RemediationDetailDrawer组件,支持 SQL 修复前后 diff 对比。SqlAnalyze/SqlManage页面集成治理对比视图。ScanTypeSqlCollection重命名入口模块,支持首次审计结果列、治理导出及showAnnotation配置。审计结果展示增强
AuditResultMessage:支持审计等级汇总、i18n 展示文案及ruleDesc模式。ReportDrawer审计结果展示规则描述,与 SQL 管理页审计信息保持一致。国际化
测试与其他
AuditLevelSummaryTS 类型问题。.cursor/加入.gitignore,避免本地 IDE 配置入库。确认项(pr提交后操作)
Tip
请在指定复审人之前,确认并完成以下事项,完成后✅
not_compatibleneed_update_doc