Skip to content

feat: SQL 管控引入 SQL 治理能力#849

Merged
Seechi-Yolo merged 15 commits into
zjrc_3.2408from
feat/sql-remediation-tracking
Jun 29, 2026
Merged

feat: SQL 管控引入 SQL 治理能力#849
Seechi-Yolo merged 15 commits into
zjrc_3.2408from
feat/sql-remediation-tracking

Conversation

@Seechi-Yolo

@Seechi-Yolo Seechi-Yolo commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

关联的 issue

https://github.com/actiontech/sqle-ee/issues/2988

描述你的变更

本次 MR 为 EE 端 SQL 管理引入 SQL 治理(Remediation) 相关能力,覆盖列表展示、详情对比、导出及审计结果展示增强。

API 与类型

  • 扩展 SqlManage API:新增治理查询/导出接口及类型定义,列表响应增加治理跟踪相关字段。

SQL 管理列表

  • 列表新增治理跟踪列,支持从列表进入治理详情。
  • 新增治理数据导出能力,注册全局导出事件与 RemediationDetailDrawer 弹窗 key。
  • 更新状态抽屉(StatusDrawer)标题与审计结果展示,适配治理场景。

治理详情与对比

  • 新增 RemediationDetailDrawer 组件,支持 SQL 修复前后 diff 对比。
  • SqlAnalyze / SqlManage 页面集成治理对比视图。
  • ScanTypeSqlCollection 重命名入口模块,支持首次审计结果列、治理导出及 showAnnotation 配置。

审计结果展示增强

  • 增强 AuditResultMessage:支持审计等级汇总、i18n 展示文案及 ruleDesc 模式。
  • ReportDrawer 审计结果展示规则描述,与 SQL 管理页审计信息保持一致。

国际化

  • 补充 zh-CN / en-US 文案:治理抽屉、导出操作、首次/当前审计结果等相关标签。

测试与其他

  • 更新 SQL 管理配置详情、StatusDrawer、SqlAnalyze 等快照与单测,修复治理相关测试稳定性及 AuditLevelSummary TS 类型问题。
  • .cursor/ 加入 .gitignore,避免本地 IDE 配置入库。

确认项(pr提交后操作)

Tip

请在指定复审人之前,确认并完成以下事项,完成后✅


  • 我已完成自测
  • 我已记录完整日志方便进行诊断
  • 我已在关联的issue里补充了实现方案
  • 我已在关联的issue里补充了测试影响面
  • 我已确认了变更的兼容性,如果不兼容则在issue里标记 not_compatible
  • 我已确认了是否要更新文档,如果要更新则在issue里标记 need_update_doc

Seechi-Yolo and others added 10 commits June 26, 2026 08:28
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>
@Seechi-Yolo Seechi-Yolo changed the title Feat/sql remediation tracking Draft:测试ci是否通过 不合并 Jun 26, 2026
Seechi-Yolo and others added 4 commits June 26, 2026 08:56
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>
@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 93.96% 13309/14164
🟡 Branches 78.15% 5248/6715
🟢 Functions 93.89% 4889/5207
🟢 Lines 94.52% 13069/13826

Test suite run success

2249 tests passing in 622 suites.

Report generated by 🧪jest coverage report action from 6cafb82

@Seechi-Yolo Seechi-Yolo changed the title Draft:测试ci是否通过 不合并 feat: SQL 管控引入 SQL 治理能力 Jun 29, 2026
@Seechi-Yolo

Copy link
Copy Markdown
Collaborator Author

前端页面变更

image image image image

@Seechi-Yolo Seechi-Yolo merged commit ec65656 into zjrc_3.2408 Jun 29, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant