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: classification issues (#8106)
ecmadao20ed7a587142
diff --git a/frontend/src/components/SchemaDesigner/Panels/TableEditor.vue b/frontend/src/components/SchemaDesigner/Panels/TableEditor.vueindex 239c0d1d4a..923ec16fa3 100644--- a/frontend/src/components/SchemaDesigner/Panels/TableEditor.vue+++ b/frontend/src/components/SchemaDesigner/Panels/TableEditor.vue@@ -90,6 +90,7 @@class="flex"><button+ v-if="getColumnClassification(column)"class="w-4 h-4 p-0.5 hover:bg-control-bg-hover rounded cursor-pointer"@click.prevent="column.classification = ''">diff --git a/frontend/src/components/SchemaTemplate/SelectClassificationDrawer.vue b/frontend/src/components/SchemaTemplate/SelectClassificationDrawer.vueindex c6234a420b..86c50c29ce 100644--- a/frontend/src/components/SchemaTemplate/SelectClassificationDrawer.vue+++ b/frontend/src/components/SchemaTemplate/SelectClassificationDrawer.vue@@ -19,6 +19,7 @@:show-irrelevant-nodes="false":expand-on-click="true":render-suffix="renderSuffix"+ :render-label="renderLabel":node-props="nodeProps":virtual-scroll="true"/>@@ -42,6 +43,7 @@ import { NTree, TreeOption } from "naive-ui";import { computed, reactive, h } from "vue";import { Drawer, DrawerContent } from "@/components/v2";import { DataClassificationSetting_DataClassificationConfig } from "@/types/proto/v1/setting_service";+import { getHighlightHTMLByKeyWords } from "@/utils";import ClassificationLevelBadge from "./ClassificationLevelBadge.vue";const props = defineProps<{@@ -132,7 +134,7 @@ const getTreeNodeList = (classificationMap: ClassificationMap): TreeNode[] => {const children = getTreeNodeList(item.children);return {key: item.id,- label: item.label,+ label: `${item.id} ${item.label}`,levelId: item.levelId,isLeaf: children.length === 0,children,@@ -150,4 +152,11 @@ const renderSuffix = ({ option }: { option: TreeOption }) => {classificationConfig: props.classificationConfig,});};++const renderLabel = ({ option }: { option: TreeOption }) => {+ const node = option as any as TreeNode;+ return h("span", {+ innerHTML: getHighlightHTMLByKeyWords(node.label, state.searchText),+ });+};</script>diff --git a/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vue b/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vueindex f368258a1f..16fec1dbe0 100644--- a/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vue+++ b/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vue@@ -57,7 +57,7 @@:key="item.rule.id"class="flex items-start space-x-5">- <div v-if="state.reorderRules" class="mt-4">+ <div v-if="state.reorderRules" class="mt-4 flex flex-col"><button @click="onReorder(item, -1)"><heroicons-solid:arrow-circle-upv-if="index !== 0"