Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: data classification improvement (#12755)

Tianzhou (天舟)c744e16cdd39
diff --git a/frontend/src/components/SensitiveData/ClassificationView.vue b/frontend/src/components/SensitiveData/ClassificationView.vue
index e54d3d5431..50cad61e56 100644
--- a/frontend/src/components/SensitiveData/ClassificationView.vue
+++ b/frontend/src/components/SensitiveData/ClassificationView.vue
@@ -1,5 +1,12 @@
<template>
<div class="w-full space-y-4">
+ <div class="text-sm text-control-light">
+ {{ $t("database.classification.description") }}
+ <LearnMoreLink
+ url="https://www.bytebase.com/docs/security/data-masking/data-classification?source=console"
+ class="ml-1"
+ />
+ </div>
<div>
<div class="flex items-center space-x-2">
<NSwitch
@@ -12,7 +19,7 @@
</div>
</div>
<i18n-t
- class="textinfolabel"
+ class="textinfolabel mt-1"
tag="div"
keypath="database.classification.sync-from-comment-tip"
>
@@ -281,6 +288,16 @@ const example: UploadClassificationConfig = {
title: "Level 2",
description: "",
},
+ {
+ id: "3",
+ title: "Level 3",
+ description: "",
+ },
+ {
+ id: "4",
+ title: "Level 4",
+ description: "",
+ },
],
classifications: [
{
@@ -296,21 +313,15 @@ const example: UploadClassificationConfig = {
},
{
id: "1-2",
- title: "Assert",
- description: "",
- levelId: "1",
- },
- {
- id: "1-3",
title: "Contact",
description: "",
levelId: "2",
},
{
- id: "1-4",
+ id: "1-3",
title: "Health",
description: "",
- levelId: "2",
+ levelId: "4",
},
{
id: "2",
@@ -327,7 +338,7 @@ const example: UploadClassificationConfig = {
id: "2-2",
title: "Business",
description: "",
- levelId: "1",
+ levelId: "3",
},
],
};
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index c0138c1278..aa86df5c7b 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1815,6 +1815,7 @@
"transfer-database-from-to": "Transfer database from source project to target project",
"classification": {
"self": "Classification",
+ "description": "Use data classification to manage masking policy for many columns by controlling only a small number of classifications.",
"sync-from-comment": "Sync classification from comment",
"sync-from-comment-tip": "Once enabled, the classification will sync from the table/column comment. The comment should follow \"{format}\" format.",
"sync-from-comment-enable-warning": "Classification will change with the DDL and sync from the original comment.",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index dedf5fae85..bf81dc65ac 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -1815,6 +1815,7 @@
"transfer-database-from-to": "Transferir la base de datos del proyecto de origen al proyecto de destino",
"classification": {
"self": "Clasificación",
+ "description": "Utilice la clasificación de datos para administrar la política de enmascaramiento para muchas columnas controlando solo una pequeña cantidad de clasificaciones.",
"sync-from-comment": "Sincronizar clasificación desde comentario",
"sync-from-comment-tip": "Una vez habilitada, la clasificación se sincronizará desde el comentario de tabla/columna. El comentario debe seguir el formato \"{format}\".",
"sync-from-comment-enable-warning": "La clasificación cambiará con el DDL y se sincronizará con el comentario original.",
@@ -3619,4 +3620,4 @@
"self": "Última actualización"
}
}
-}
\ No newline at end of file
+}
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index 3a39f4b61d..0b240f9eae 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -1815,6 +1815,7 @@
"transfer-database-from-to": "データベースをソース プロジェクトからターゲット プロジェクトに転送する",
"classification": {
"self": "分類と格付け",
+ "description": "データ分類を使用して、少数の分類のみを制御することで、多数の列のマスキング ポリシーを管理します。",
"sync-from-comment": "コメントからカテゴリと評価を同期する",
"sync-from-comment-tip": "有効にすると、分類評価がテーブルまたは列のコメントから同期されます。コメントは「{format}」形式に従う必要があります。",
"sync-from-comment-enable-warning": "分類評価は DDL とともに変更され、元の注釈と同期されます。",
@@ -3619,4 +3620,4 @@
"self": "最後の更新"
}
}
-}
\ No newline at end of file
+}
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index c9f49727fc..7ee19d2994 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1815,6 +1815,7 @@
"transfer-database-from-to": "将数据库从源项目转移到目标项目",
"classification": {
"self": "分类分级",
+ "description": "通过分类分级,来批量管理列的脱敏规则。",
"sync-from-comment": "从注释中同步分类分级",
"sync-from-comment-tip": "启用后,分类分级将从表或列的注释同步。注释应遵循“{format}”格式。",
"sync-from-comment-enable-warning": "分类分级将随着 DDL 而改变,并与原始注释同步。",