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: filter selected change history status (#7308)
boojackdc3c44c1f2c6
diff --git a/frontend/src/components/ChangeHistory/ChangeHistoryTable.vue b/frontend/src/components/ChangeHistory/ChangeHistoryTable.vueindex 704736f7dd..cec8e1b71b 100644--- a/frontend/src/components/ChangeHistory/ChangeHistoryTable.vue+++ b/frontend/src/components/ChangeHistory/ChangeHistoryTable.vue@@ -11,13 +11,12 @@><template #header><template v-if="mode == 'DATABASE'">- <BBTableHeaderCell class="w-12" :left-padding="4">+ <BBTableHeaderCell class="w-12" :left-padding="4" @click.stop=""><NCheckboxv-if="historySectionList.length > 0":checked="allSelectionState.checked":indeterminate="allSelectionState.indeterminate"@update:checked="toggleAllChangeHistorySelection"- @click.stop=""/></BBTableHeaderCell><BBTableHeaderCell class="w-8" :title="columnList[1].title" />@@ -48,12 +47,12 @@v-if="mode == 'DATABASE'"class="table-cell":left-padding="4"+ @click.stop=""><NCheckbox:disabled="!allowToSelectChangeHistory(history)":checked="selectedChangeHistoryNameList?.includes(history.name)"@update:checked="handleToggleChangeHistorySelected(history)"- @click.stop=""/></BBTableCell><BBTableCell :left-padding="mode !== 'DATABASE' && 4">@@ -123,6 +122,7 @@ import ChangeHistoryStatusIcon from "./ChangeHistoryStatusIcon.vue";import {ChangeHistory,changeHistory_SourceToJSON,+ ChangeHistory_Status,ChangeHistory_Type,changeHistory_TypeToJSON,} from "@/types/proto/v1/database_service";@@ -255,10 +255,11 @@ const toggleAllChangeHistorySelection = (): void => {const allowToSelectChangeHistory = (history: ChangeHistory) => {return (- history.type === ChangeHistory_Type.BASELINE ||- history.type === ChangeHistory_Type.MIGRATE ||- history.type === ChangeHistory_Type.MIGRATE_SDL ||- history.type === ChangeHistory_Type.DATA+ history.status === ChangeHistory_Status.DONE &&+ (history.type === ChangeHistory_Type.BASELINE ||+ history.type === ChangeHistory_Type.MIGRATE ||+ history.type === ChangeHistory_Type.MIGRATE_SDL ||+ history.type === ChangeHistory_Type.DATA));};diff --git a/frontend/src/components/DatabaseChangeHistoryPanel.vue b/frontend/src/components/DatabaseChangeHistoryPanel.vueindex 5798192308..f9d0e814ff 100644--- a/frontend/src/components/DatabaseChangeHistoryPanel.vue+++ b/frontend/src/components/DatabaseChangeHistoryPanel.vue@@ -92,6 +92,7 @@ import { useChangeHistoryStore } from "@/store";import { TenantMode } from "@/types/proto/v1/project_service";import {ChangeHistory,+ ChangeHistory_Status,ChangeHistory_Type,ChangeHistoryView,} from "@/types/proto/v1/database_service";@@ -201,6 +202,10 @@ const handleExportChangeHistory = async () => {});if (changeHistory) {+ if (changeHistory.status !== ChangeHistory_Status.DONE) {+ continue;+ }+if (changeHistory.type === ChangeHistory_Type.MIGRATE ||changeHistory.type === ChangeHistory_Type.MIGRATE_SDL ||