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: add query failed icon in each tabs (#8621)
boojackc34d14a758c5
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vueindex 7d5d104cba..c972a0af7b 100644--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vue+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vue@@ -25,6 +25,13 @@:name="tabName(result, i)"class="flex-1 flex flex-col overflow-hidden">+ <template #tab>+ <span>{{ tabName(result, i) }}</span>+ <Info+ v-if="result.error"+ class="ml-2 text-yellow-600 w-4 h-auto"+ />+ </template><SingleResultViewV1:params="executeParams":sql-result-set="resultSet"@@ -75,6 +82,7 @@</template><script lang="ts" setup>+import { Info } from "lucide-vue-next";import { darkTheme, NConfigProvider, NTabs, NTabPane } from "naive-ui";import { Status } from "nice-grpc-common";import { computed, PropType, ref, toRef } from "vue";diff --git a/frontend/src/views/sql-editor/ResultPanel/ResultPanel.vue b/frontend/src/views/sql-editor/ResultPanel/ResultPanel.vueindex f7bded2041..22147f004e 100644--- a/frontend/src/views/sql-editor/ResultPanel/ResultPanel.vue+++ b/frontend/src/views/sql-editor/ResultPanel/ResultPanel.vue@@ -114,8 +114,11 @@ const queryElapsedTime = computed(() => {});const isDatabaseQueryFailed = (database: ComposedDatabase) => {- return tabStore.currentTab.databaseQueryResultMap?.get(database.name || "")- ?.error;+ const resultSet = tabStore.currentTab.databaseQueryResultMap?.get(+ database.name || ""+ );+ // If there is any error in the result set, we consider the query failed.+ return resultSet?.error || resultSet?.results.find((result) => result.error);};const cancelQuery = () => {