mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-15 03:01:58 +00:00
数据目录 F2b / B3 跟进:发布前检查整理问题时保留 sql_level(canvas/issues.normalizeIssue 原来只留固定的几个字段,把它丢了,界面只能退回按 level 认)
This commit is contained in:
@@ -239,6 +239,8 @@ function normalizeIssue(raw: any): ValidationIssue | null {
|
||||
field: raw.field ?? null,
|
||||
code: typeof raw.code === 'string' ? raw.code : null,
|
||||
fix: typeof raw.fix === 'string' && raw.fix ? raw.fix : null,
|
||||
// 门禁里的 SQL 检查带着检查本来的级别(governance._lint_sql),发布前检查据此写「错误 / 提醒」
|
||||
...(raw.sql_level === 'error' || raw.sql_level === 'warning' ? { sql_level: raw.sql_level } : {}),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user