Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: level=warning for large sql (#14363)
p0ny27e1bd7266b6
diff --git a/frontend/src/components/SQLCheck/SQLCheckButton.vue b/frontend/src/components/SQLCheck/SQLCheckButton.vueindex 9153b4a329..613e09563b 100644--- a/frontend/src/components/SQLCheck/SQLCheckButton.vue+++ b/frontend/src/components/SQLCheck/SQLCheckButton.vue@@ -215,7 +215,7 @@ const runChecks = async () => {rawAdvices.value = errors.map((err) =>Advice.fromPartial({title: "Pre check",- status: Advice_Status.ERROR,+ status: Advice_Status.WARNING,content: err,}));diff --git a/frontend/src/composables/useExecuteSQL.ts b/frontend/src/composables/useExecuteSQL.tsindex f4531dbaf2..fea8034136 100644--- a/frontend/src/composables/useExecuteSQL.ts+++ b/frontend/src/composables/useExecuteSQL.ts@@ -41,7 +41,7 @@ import {import { extractGrpcErrorMessage } from "@/utils/grpcweb";// SKIP_CHECK_THRESHOLD is the MaxSheetCheckSize in the backend.-const SKIP_CHECK_THRESHOLD = 1024 * 1024;+const SKIP_CHECK_THRESHOLD = 2 * 1024 * 1024;// QUERY_INTERVAL_LIMIT is the minimal gap between two queriesconst QUERY_INTERVAL_LIMIT = 1000;diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex b95af999dc..099e9f8c01 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -1284,7 +1284,7 @@"admin": "{environment} environment has not configured SQL Review Policy. {link}","developer": "{environment} environment has not configured SQL Review Policy. Please ask your DBA to configure."},- "statement-is-too-large": "As the current statement size exceeds 1MB, the SQL check will be skipped.",+ "statement-is-too-large": "As the current statement size exceeds 2MB, the SQL check will be skipped.","back-to-edit": "Back to edit","continue-anyway": "Continue anyway","sql-review-violations": "SQL Review Violations"diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex a3f5a2c0a3..4fb597e9cc 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -1284,7 +1284,7 @@"admin": "El entorno {environment} no ha configurado la política de revisión de SQL. {link}","developer": "El entorno {environment} no ha configurado la política de revisión de SQL. \nSolicite a su DBA que configure."},- "statement-is-too-large": "Como el tamaño de la declaración actual supera 1 MB, se omitirá la comprobación de SQL.",+ "statement-is-too-large": "Como el tamaño de la declaración actual supera 2MB, se omitirá la comprobación de SQL.","back-to-edit": "Volver a editar","continue-anyway": "De todas maneras, continúe","sql-review-violations": "Infracciones de revisión de SQL"diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex ef0ee2c6db..333511c101 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -1284,7 +1284,7 @@"admin": "{environment}環境には SQL 監査ポリシーが構成されていません。 {link}","developer": "{environment} 環境には SQL 監査ポリシーが構成されていません。DBA に構成を依頼してください。"},- "statement-is-too-large": "現在のステートメント サイズが 1MB を超えているため、SQL チェックはスキップされます。",+ "statement-is-too-large": "現在のステートメント サイズが 2MB を超えているため、SQL チェックはスキップされます。","back-to-edit": "編集に戻る","continue-anyway": "まだ続く","sql-review-violations": "SQL監査ルール違反"diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex a0b0be8b41..b79b98f7bb 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -1284,7 +1284,7 @@"admin": "{environment} 环境没有配置 SQL 审核策略。{link}","developer": "{environment} 环境没有配置 SQL 审核策略,请让您的 DBA 配置。"},- "statement-is-too-large": "当前语句大小超过 1MB,将跳过 SQL 检查。",+ "statement-is-too-large": "当前语句大小超过 2MB,将跳过 SQL 检查。","back-to-edit": "返回编辑","continue-anyway": "仍然继续","sql-review-violations": "违反的 SQL 审核规则"