Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update validation message display (#3803)
boojack02e0c74d7cb1
diff --git a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vueindex 7832ec1804..5c92a16b0c 100644--- a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue+++ b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue@@ -304,7 +304,9 @@ const fetchDatabaseEditMapWithUIEditor = async () => {module: "bytebase",style: "CRITICAL",title: "Invalid request",- description: JSON.stringify(databaseEditResult.validateResultList),+ description: databaseEditResult.validateResultList+ .map((result) => result.message)+ .join("\n"),});return;}@@ -408,9 +410,9 @@ const handlePreviewIssue = async () => {module: "bytebase",style: "CRITICAL",title: "Invalid request",- description: JSON.stringify(- validateResultList.map((validateResult) => validateResult.message)- ),+ description: validateResultList+ .map((result) => result.message)+ .join("\n"),});return;}diff --git a/frontend/src/components/UIEditor/Panels/DatabaseEditor.vue b/frontend/src/components/UIEditor/Panels/DatabaseEditor.vueindex ba2101e06a..0592e38241 100644--- a/frontend/src/components/UIEditor/Panels/DatabaseEditor.vue+++ b/frontend/src/components/UIEditor/Panels/DatabaseEditor.vue@@ -259,7 +259,9 @@ watch(module: "bytebase",style: "CRITICAL",title: "Invalid request",- description: JSON.stringify(databaseEditResult.validateResultList),+ description: databaseEditResult.validateResultList+ .map((result) => result.message)+ .join("\n"),});state.statement = "";return;diff --git a/frontend/src/components/UIEditor/Panels/TableEditor.vue b/frontend/src/components/UIEditor/Panels/TableEditor.vueindex 46c56a5346..5aec1b9802 100644--- a/frontend/src/components/UIEditor/Panels/TableEditor.vue+++ b/frontend/src/components/UIEditor/Panels/TableEditor.vue@@ -354,7 +354,9 @@ watch(module: "bytebase",style: "CRITICAL",title: "Invalid request",- description: JSON.stringify(databaseEditResult.validateResultList),+ description: databaseEditResult.validateResultList+ .map((result) => result.message)+ .join("\n"),});state.statement = "";return;