Skip to content

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

chore: show release information in spec view (#16448)

boojack97a84a15d6ed
diff --git a/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vue b/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vue
index 326353dcf9..d6ebf143ee 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vue
@@ -12,25 +12,28 @@
'line-through opacity-60': release.state === State.DELETED,
}"
>
- {{ release.title }}
+ {{ release.title || release.name }}
</a>
</div>
</template>
<script setup lang="ts">
import { PackageIcon } from "lucide-vue-next";
-import { useIssueContext } from "@/components/IssueV1";
+import { computed } from "vue";
+import { specForTask, useIssueContext } from "@/components/IssueV1";
import { useReleaseByName } from "@/store";
import { isValidReleaseName } from "@/types";
import { State } from "@/types/proto/v1/common";
-const { issue } = useIssueContext();
+const { issue, selectedTask } = useIssueContext();
+
+const releaseName = computed(
+ () =>
+ specForTask(issue.value.planEntity, selectedTask.value)
+ ?.changeDatabaseConfig?.release
+);
const { release, ready } = useReleaseByName(
- (() => {
- return issue.value.planEntity?.specs.find(spec =>
- spec.changeDatabaseConfig?.release
- )?.changeDatabaseConfig?.release || "";
- })()
+ computed(() => releaseName.value || "")
);
</script>
diff --git a/frontend/src/components/Plan/components/DescriptionSection/DescriptionSection.vue b/frontend/src/components/Plan/components/DescriptionSection.vue
similarity index 94%
rename from frontend/src/components/Plan/components/DescriptionSection/DescriptionSection.vue
rename to frontend/src/components/Plan/components/DescriptionSection.vue
index fc08cda0b8..e8098165db 100644
--- a/frontend/src/components/Plan/components/DescriptionSection/DescriptionSection.vue
+++ b/frontend/src/components/Plan/components/DescriptionSection.vue
@@ -79,7 +79,7 @@ import {
} from "@/store";
import { Plan } from "@/types/proto/v1/plan_service";
import { hasProjectPermissionV2 } from "@/utils";
-import { usePlanContext } from "../../logic";
+import { usePlanContext } from "../logic";
type LocalState = {
isEditing: boolean;
@@ -109,17 +109,19 @@ const allowEdit = computed(() => {
if (extractUserId(plan.value.creator) === currentUser.value.email) {
return true;
}
- // Allowed if current has plan update permission in the project
+ // Allowed if current user has related permission.
if (hasProjectPermissionV2(project.value, "bb.plans.update")) {
return true;
}
return false;
});
-const onDescriptionChange = (description: string) => {
- if (isCreating.value) {
- plan.value.description = description;
+const onDescriptionChange = (value: string) => {
+ if (!isCreating.value) {
+ return;
}
+
+ plan.value.description = value;
};
const beginEdit = () => {
diff --git a/frontend/src/components/Plan/components/DescriptionSection/index.ts b/frontend/src/components/Plan/components/DescriptionSection/index.ts
deleted file mode 100644
index 4652881be2..0000000000
--- a/frontend/src/components/Plan/components/DescriptionSection/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import DescriptionSection from "./DescriptionSection.vue";
-
-export default DescriptionSection;
diff --git a/frontend/src/components/Plan/components/HeaderSection/Actions/Actions.vue b/frontend/src/components/Plan/components/HeaderSection/Actions/Actions.vue
index 73b60b2708..34437554c2 100644
--- a/frontend/src/components/Plan/components/HeaderSection/Actions/Actions.vue
+++ b/frontend/src/components/Plan/components/HeaderSection/Actions/Actions.vue
@@ -1,12 +1,10 @@
<template>
- <div class="h-full flex flex-row justify-end items-center">
- <CreateButton v-if="isCreating" />
- <CreateIssueButton
- v-else-if="
- databaseChangeMode === DatabaseChangeMode.PIPELINE && !relatedIssueUID
- "
- />
- </div>
+ <CreateButton v-if="isCreating" />
+ <CreateIssueButton
+ v-else-if="
+ databaseChangeMode === DatabaseChangeMode.PIPELINE && !relatedIssueUID
+ "
+ />
</template>
<script setup lang="ts">
diff --git a/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateButton.vue b/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateButton.vue
index ed9a2272df..d91fe7c304 100644
--- a/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateButton.vue
+++ b/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateButton.vue
@@ -33,11 +33,13 @@ import { zindexable as vZindexable } from "vdirs";
import { computed, nextTick, ref } from "vue";
import { useI18n } from "vue-i18n";
import { useRouter } from "vue-router";
-import { ErrorList } from "@/components/Plan/components/common";
+import {
+ ErrorList,
+ useSpecsValidation,
+} from "@/components/Plan/components/common";
import {
databaseEngineForSpec,
getLocalSheetByName,
- isValidSpec,
} from "@/components/Plan/logic";
import { usePlanContext } from "@/components/Plan/logic";
import { planServiceClient } from "@/grpcweb";
@@ -60,6 +62,9 @@ const { plan } = usePlanContext();
const sheetStore = useSheetV1Store();
const loading = ref(false);
+// Use the validation hook for all specs
+const { isSpecEmpty } = useSpecsValidation(plan.value.specs);
+
const planCreateErrorList = computed(() => {
const errorList: string[] = [];
if (!hasProjectPermissionV2(project.value, "bb.plans.create")) {
@@ -68,10 +73,9 @@ const planCreateErrorList = computed(() => {
if (!plan.value.title.trim()) {
errorList.push("Missing plan title");
}
- if (!(plan.value?.specs || []).every((spec) => isValidSpec(spec))) {
- errorList.push("Missing SQL statement in some tasks");
+ if (plan.value.specs.some((spec) => isSpecEmpty(spec))) {
+ errorList.push("Missing statement");
}
-
return errorList;
});
diff --git a/frontend/src/components/Plan/components/HeaderSection/HeaderSection.vue b/frontend/src/components/Plan/components/HeaderSection/HeaderSection.vue
index a5702f3c7d..c84e497412 100644
--- a/frontend/src/components/Plan/components/HeaderSection/HeaderSection.vue
+++ b/frontend/src/components/Plan/components/HeaderSection/HeaderSection.vue
@@ -2,10 +2,7 @@
<div
class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 py-2 px-4"
>
- <div class="flex-1 flex items-center gap-x-2">
- <Title />
- </div>
-
+ <Title />
<div class="flex flex-row items-center justify-end">
<Actions />
</div>
diff --git a/frontend/src/components/Plan/components/HeaderSection/Title.vue b/frontend/src/components/Plan/components/HeaderSection/Title.vue
index 3a157aeea4..04bb043e60 100644
--- a/frontend/src/components/Plan/components/HeaderSection/Title.vue
+++ b/frontend/src/components/Plan/components/HeaderSection/Title.vue
@@ -1,7 +1,7 @@
<template>
<div class="flex-1">
<NInput
- :value="state.title"
+ v-model:value="state.title"
:style="style"
:loading="state.isUpdating"
:disabled="!allowEdit || state.isUpdating"
@@ -19,7 +19,7 @@
<script setup lang="ts">
import { NInput } from "naive-ui";
import type { CSSProperties } from "vue";
-import { computed, reactive, watch } from "vue";
+import { computed, reactive } from "vue";
import { useI18n } from "vue-i18n";
import { planServiceClient } from "@/grpcweb";
import {
@@ -71,14 +71,12 @@ const allowEdit = computed(() => {
if (isCreating.value) {
return true;
}
-
+ // Allowed if current user is the creator.
if (extractUserId(plan.value.creator) === currentUser.value.email) {
- // Allowed if current user is the creator.
return true;
}
-
+ // Allowed if current user has related permission.
if (hasProjectPermissionV2(project.value, "bb.plans.update")) {
- // Allowed if current has plan update permission in the project
return true;
}
return false;
@@ -124,19 +122,12 @@ const onEnter = (e: Event) => {
input.blur();
};
-const onUpdateValue = (title: string) => {
- state.title = title;
- if (isCreating.value) {
- plan.value.title = title;
+const onUpdateValue = (value: string) => {
+ if (!isCreating.value) {
+ return;
}
+ plan.value.title = value;
};
-
-watch(
- () => plan.value.title,
- (title) => {
- state.title = title;
- }
-);
</script>
<style>
diff --git a/frontend/src/components/Plan/components/Overview.vue b/frontend/src/components/Plan/components/Overview.vue
index 32259f295c..5f08ab9392 100644
--- a/frontend/src/components/Plan/components/Overview.vue
+++ b/frontend/src/components/Plan/components/Overview.vue
@@ -181,7 +181,7 @@ import { PlanCheckRun_Result_Status } from "@/types/proto/v1/plan_service";
import { instanceV1Name, extractDatabaseResourceName } from "@/utils";
import { usePlanContext } from "../logic/context";
import { targetsForSpec } from "../logic/plan";
-import DescriptionSection from "./DescriptionSection";
+import DescriptionSection from "./DescriptionSection.vue";
const { t } = useI18n();
const { plan } = usePlanContext();
diff --git a/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vue b/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vue
index f10c8cb01e..f7024aedd9 100644
--- a/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vue
+++ b/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vue
@@ -3,7 +3,7 @@
<SQLCheckSection v-if="isCreating" />
<SpecBasedPlanCheckSection v-else />
<TargetListSection />
- <div>
+ <div class="w-full">
<StatementSection />
<Configuration />
</div>
diff --git a/frontend/src/components/Plan/components/StatementSection/ReleaseView/ReleaseView.vue b/frontend/src/components/Plan/components/StatementSection/ReleaseView/ReleaseView.vue
new file mode 100644
index 0000000000..a4207f2385
--- /dev/null
+++ b/frontend/src/components/Plan/components/StatementSection/ReleaseView/ReleaseView.vue
@@ -0,0 +1,226 @@
+<template>
+ <div class="flex flex-col gap-y-2">
+ <NAlert type="info" :bordered="false">
+ <template #icon>
+ <heroicons-outline:information-circle class="w-5 h-5" />
+ </template>
+ <div class="text-sm">
+ {{ $t("release.plan-tip") }}
+ </div>
+ </NAlert>
+
+ <div class="flex items-center justify-between">
+ <div class="flex items-center gap-x-4">
+ <div class="flex items-center gap-x-1 text-sm font-medium">
+ <PackageIcon class="w-4 h-4" />
+ <span class="text-base font-medium">
+ {{ releaseTitle }}
+ </span>
+ </div>
+ </div>
+ <div class="flex items-center justify-end gap-x-2">
+ <NButton
+ v-if="release && isValidReleaseName(release.name)"
+ size="small"
+ tag="a"
+ :href="`/${release.name}`"
+ target="_blank"
+ >
+ {{ $t("common.view") }}
+ </NButton>
+ </div>
+ </div>
+
+ <div v-if="release" class="border rounded-md p-4 bg-gray-50">
+ <div class="space-y-3">
+ <div class="flex items-start justify-between">
+ <div>
+ <h3 class="text-sm font-medium text-gray-900">
+ {{ release.title }}
+ </h3>
+ <p v-if="release.name" class="text-xs text-gray-500 mt-1">
+ {{ release.name }}
+ </p>
+ </div>
+ </div>
+
+ <div v-if="release.files && release.files.length > 0" class="space-y-2">
+ <div class="flex items-center justify-between">
+ <h4 class="text-sm font-medium text-gray-700">
+ {{ $t("release.files") }} ({{ release.files.length }})
+ </h4>
+ <NButton
+ v-if="release.files.length > maxDisplayedFiles"
+ size="small"
+ quaternary
+ tag="a"
+ :href="`/${release.name}`"
+ target="_blank"
+ >
+ {{ $t("release.view-all-files") }}
+ </NButton>
+ </div>
+ <div
+ class="w-full grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-2"
+ >
+ <div
+ v-for="file in displayedFiles"
+ :key="file.id"
+ class="w-full flex items-center justify-between text-xs bg-white rounded p-2"
+ >
+ <div class="flex-1 min-w-0 mr-2">
+ <div class="font-medium truncate">{{ file.path }}</div>
+ <div class="text-gray-500">
+ {{ file.version }} • {{ getChangeTypeText(file.changeType) }}
+ </div>
+ </div>
+ <div
+ v-if="file.type"
+ :class="[
+ 'inline-flex items-center px-1.5 py-0.5 rounded text-xs flex-shrink-0',
+ file.type === ReleaseFileType.VERSIONED
+ ? 'bg-blue-100 text-blue-800 '
+ : 'bg-gray-100 text-gray-800 ',
+ ]"
+ >
+ {{ getReleaseFileTypeText(file.type) }}
+ </div>
+ </div>
+ <div
+ v-if="release.files.length > maxDisplayedFiles"
+ class="text-xs text-gray-500 text-center py-1"
+ >
+ {{
+ $t("release.and-n-more-files", {
+ count: release.files.length - maxDisplayedFiles,
+ })
+ }}
+ </div>
+ </div>
+ </div>
+
+ <div v-if="release.vcsSource" class="space-y-1">
+ <h4 class="text-sm font-medium text-gray-700">
+ {{ $t("release.vcs-source") }}
+ </h4>
+ <div class="text-xs">
+ <span class="text-gray-500"
+ >{{ getVCSTypeText(release.vcsSource.vcsType) }}:</span
+ >
+ <a
+ v-if="release.vcsSource.url"
+ :href="release.vcsSource.url"
+ target="_blank"
+ class="ml-1 text-blue-600 hover:text-blue-800"
+ >
+ {{ release.vcsSource.url }}
+ </a>
+ </div>
+ </div>
+
+ <div class="text-xs text-gray-500">
+ {{
+ dayjs(getDateForPbTimestamp(release.createTime)).format(
+ "YYYY-MM-DD HH:mm:ss"
+ )
+ }}
+ </div>
+ </div>
+ </div>
+
+ <div v-else-if="loading" class="border rounded-md p-4 bg-gray-50">
+ <div class="flex items-center space-x-2">
+ <BBSpin />
+ <span class="text-sm text-gray-600">
+ {{ $t("common.loading") }}
+ </span>
+ </div>
+ </div>
+
+ <div v-else class="border rounded-md p-4 bg-red-50 /20">
+ <div class="text-sm text-red-600">
+ {{ $t("release.not-found") }}
+ </div>
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import dayjs from "dayjs";
+import { PackageIcon } from "lucide-vue-next";
+import { NAlert, NButton } from "naive-ui";
+import { computed } from "vue";
+import { useI18n } from "vue-i18n";
+import { BBSpin } from "@/bbkit";
+import { useReleaseByName } from "@/store";
+import { isValidReleaseName, getDateForPbTimestamp } from "@/types";
+import { VCSType } from "@/types/proto/v1/common";
+import { ReleaseFileType } from "@/types/proto/v1/release_service";
+import type { Release_File_ChangeType } from "@/types/proto/v1/release_service";
+import useSelectedSpec from "../../common/useSelectedSpec";
+
+const { t } = useI18n();
+const selectedSpec = useSelectedSpec();
+
+const releaseName = computed(() => {
+ return selectedSpec.value?.changeDatabaseConfig?.release || "";
+});
+
+const { release, ready: loading } = useReleaseByName(releaseName);
+
+const maxDisplayedFiles = 4;
+
+const releaseTitle = computed(() => {
+ if (release.value && release.value.title) {
+ return release.value.title;
+ }
+ if (releaseName.value) {
+ // Extract release name from the full resource name
+ const parts = releaseName.value.split("/");
+ return parts[parts.length - 1] || releaseName.value;
+ }
+ return t("release.title");
+});
+
+const displayedFiles = computed(() => {
+ if (!release.value?.files) return [];
+ return release.value.files.slice(0, maxDisplayedFiles);
+});
+
+const getChangeTypeText = (changeType: Release_File_ChangeType) => {
+ switch (changeType) {
+ case "DDL":
+ return t("release.change-type.ddl");
+ case "DDL_GHOST":
+ return t("release.change-type.ddl-ghost");
+ case "DML":
+ return t("release.change-type.dml");
+ default:
+ return t("release.change-type.unspecified");
+ }
+};
+
+const getReleaseFileTypeText = (type: ReleaseFileType) => {
+ switch (type) {
+ case ReleaseFileType.VERSIONED:
+ return t("release.file-type.versioned");
+ default:
+ return t("release.file-type.unspecified");
+ }
+};
+
+const getVCSTypeText = (vcsType: VCSType) => {
+ switch (vcsType) {
+ case VCSType.GITHUB:
+ return "GitHub";
+ case VCSType.GITLAB:
+ return "GitLab";
+ case VCSType.BITBUCKET:
+ return "Bitbucket";
+ case VCSType.AZURE_DEVOPS:
+ return "Azure DevOps";
+ default:
+ return t("release.vcs-type.unspecified");
+ }
+};
+</script>
diff --git a/frontend/src/components/Plan/components/StatementSection/ReleaseView/index.ts b/frontend/src/components/Plan/components/StatementSection/ReleaseView/index.ts
new file mode 100644
index 0000000000..b9ee3b18ec
--- /dev/null
+++ b/frontend/src/components/Plan/components/StatementSection/ReleaseView/index.ts
@@ -0,0 +1 @@
+export { default } from "./ReleaseView.vue";
\ No newline at end of file
diff --git a/frontend/src/components/Plan/components/StatementSection/StatementSection.vue b/frontend/src/components/Plan/components/StatementSection/StatementSection.vue
index 4d4103884a..4054bc5025 100644
--- a/frontend/src/components/Plan/components/StatementSection/StatementSection.vue
+++ b/frontend/src/components/Plan/components/StatementSection/StatementSection.vue
@@ -1,20 +1,29 @@
<template>
<div v-if="viewMode !== 'NONE'" class="px-4 py-2 flex flex-col gap-y-2">
- <EditorView ref="editorViewRef" />
+ <EditorView v-if="viewMode === 'EDITOR'" />
+ <ReleaseView v-else-if="viewMode === 'RELEASE'" />
</div>
</template>
<script setup lang="ts">
import { computed } from "vue";
-import { ref } from "vue";
import { usePlanContext } from "../..";
import EditorView from "./EditorView";
+import ReleaseView from "./ReleaseView";
const { selectedSpec } = usePlanContext();
-const editorViewRef = ref<InstanceType<typeof EditorView>>();
-const viewMode = computed((): "NONE" | "EDITOR" => {
+const viewMode = computed((): "NONE" | "EDITOR" | "RELEASE" => {
if (selectedSpec.value) {
+ const spec = selectedSpec.value;
+ // Check if this is a release-based spec (has release but no sheet)
+ if (
+ spec.changeDatabaseConfig?.release &&
+ !spec.changeDatabaseConfig?.sheet
+ ) {
+ return "RELEASE";
+ }
+ // Otherwise, it's a sheet-based spec
return "EDITOR";
}
return "NONE";
diff --git a/frontend/src/components/Plan/components/StatementSection/index.ts b/frontend/src/components/Plan/components/StatementSection/index.ts
index 2895e1f4a0..0335cdfd21 100644
--- a/frontend/src/components/Plan/components/StatementSection/index.ts
+++ b/frontend/src/components/Plan/components/StatementSection/index.ts
@@ -1,3 +1,6 @@
import StatementSection from "./StatementSection.vue";
export default StatementSection;
+
+export { default as EditorView } from "./EditorView";
+export { default as ReleaseView } from "./ReleaseView";
diff --git a/frontend/src/components/Plan/components/StatementSection/useSpecSheet.ts b/frontend/src/components/Plan/components/StatementSection/useSpecSheet.ts
index 0a3581bcf4..6bd1e79085 100644
--- a/frontend/src/components/Plan/components/StatementSection/useSpecSheet.ts
+++ b/frontend/src/components/Plan/components/StatementSection/useSpecSheet.ts
@@ -27,7 +27,6 @@ export const useSpecSheet = (spec: Plan_Spec) => {
if (uid.startsWith("-")) {
return getLocalSheetByName(name);
}
-
return sheetStore.getOrFetchSheetByName(name);
},
undefined,
diff --git a/frontend/src/components/Plan/components/index.ts b/frontend/src/components/Plan/components/index.ts
index 75e93bddd0..dfa26219c6 100644
--- a/frontend/src/components/Plan/components/index.ts
+++ b/frontend/src/components/Plan/components/index.ts
@@ -1,4 +1,3 @@
-import DescriptionSection from "./DescriptionSection";
import HeaderSection from "./HeaderSection";
import Navigator from "./Navigator.vue";
import Overview from "./Overview.vue";
@@ -15,5 +14,4 @@ export {
PlanCheckSection,
SQLCheckSection,
StatementSection,
- DescriptionSection,
};
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 66624874b5..244605f540 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -2622,12 +2622,31 @@
"change-type": "Change type"
},
"release": {
+ "title": "Release",
"releases": "Releases",
"files": "Files",
"create": "Create release",
"select": "Select release",
"archive-this-release": "Archive this release",
"total-files": "Total {count} files",
+ "plan-tip": "This plan is configured to use a release. Database changes will be executed using the SQL statements from the selected release files.",
+ "not-found": "Not found",
+ "vcs-source": "VCS Source",
+ "view-all-files": "View all files",
+ "and-n-more-files": "and {n} more files",
+ "change-type": {
+ "ddl": "DDL",
+ "ddl-ghost": "DDL Ghost",
+ "dml": "DML",
+ "unspecified": "Unspecified"
+ },
+ "file-type": {
+ "versioned": "Version",
+ "unspecified": "Unspecified"
+ },
+ "vcs-type": {
+ "unspecified": "Unspecified"
+ },
"actions": {
"new-file": "New file",
"import-from-release": "Import from release"
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index f2fb6ca12a..4d8b6de2cc 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -2622,12 +2622,31 @@
"change-type": "Cambiar tipo"
},
"release": {
+ "title": "Liberar",
"releases": "Lanzamientos",
"files": "Archivos",
"create": "Crear lanzamiento",
"select": "Seleccionar versión",
"archive-this-release": "Archivar este comunicado",
"total-files": "Total de {count} archivos",
+ "plan-tip": "Este plan está configurado para usar una versión. Los cambios en la base de datos se ejecutarán mediante las sentencias SQL de los archivos de la versión seleccionada.",
+ "not-found": "Extraviado",
+ "vcs-source": "Fuente VCS",
+ "view-all-files": "Ver todos los archivos",
+ "and-n-more-files": "y {n} archivos más",
+ "change-type": {
+ "ddl": "DDL",
+ "ddl-ghost": "Fantasma DDL",
+ "dml": "DML",
+ "unspecified": "No especificado"
+ },
+ "file-type": {
+ "versioned": "Versión",
+ "unspecified": "No especificado"
+ },
+ "vcs-type": {
+ "unspecified": "No especificado"
+ },
"actions": {
"new-file": "Nuevo archivo",
"import-from-release": "Importar desde la versión"
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index f50cdf2a1b..70e408ee86 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -2622,12 +2622,31 @@
"change-type": "タイプを変更"
},
"release": {
+ "title": "リリース",
"releases": "リリース",
"files": "ファイル",
"create": "リリースを作成",
"select": "リリースを選択",
"archive-this-release": "このリリースをアーカイブする",
"total-files": "合計 {count} ファイル",
+ "plan-tip": "このプランはリリースを使用するように設定されています。データベースの変更は、選択したリリースファイルのSQL文を使用して実行されます。",
+ "not-found": "配信パケットが到着していません",
+ "vcs-source": "VCSソース",
+ "view-all-files": "すべてのファイルを表示",
+ "and-n-more-files": "および{n}個のファイル",
+ "change-type": {
+ "ddl": "DDL",
+ "ddl-ghost": "DDLゴースト",
+ "dml": "DML",
+ "unspecified": "未指定"
+ },
+ "file-type": {
+ "versioned": "バージョン",
+ "unspecified": "未指定"
+ },
+ "vcs-type": {
+ "unspecified": "未指定"
+ },
"actions": {
"new-file": "新しいファイル",
"import-from-release": "リリースからのインポート"
@@ -2692,4 +2711,4 @@
"last-visit": "最終訪問",
"changelog-for-version": "{version} の変更履歴"
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/locales/sql-review/zh-CN.json b/frontend/src/locales/sql-review/zh-CN.json
index 21cd6b150f..e79ba10c2c 100644
--- a/frontend/src/locales/sql-review/zh-CN.json
+++ b/frontend/src/locales/sql-review/zh-CN.json
@@ -731,4 +731,4 @@
"warning": "警告",
"disabled": "禁用"
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index 076b036c01..9eb05c2134 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -2622,12 +2622,31 @@
"change-type": "Loại thay đổi"
},
"release": {
+ "title": "Giải phóng",
"releases": "Bản phát hành",
"files": "Tệp",
"create": "Tạo bản phát hành",
"select": "Chọn bản phát hành",
"archive-this-release": "Lưu trữ bản phát hành này",
"total-files": "Tổng số {count} tệp",
+ "plan-tip": "Kế hoạch này được cấu hình để sử dụng bản phát hành. Các thay đổi cơ sở dữ liệu sẽ được thực hiện bằng các câu lệnh SQL từ các tệp phát hành đã chọn.",
+ "not-found": "Không tìm thấy",
+ "vcs-source": "Nguồn VCS",
+ "view-all-files": "Xem tất cả các tập tin",
+ "and-n-more-files": "và {n} tập tin khác",
+ "change-type": {
+ "ddl": "DDL",
+ "ddl-ghost": "DDL Ma",
+ "dml": "DML",
+ "unspecified": "Không xác định"
+ },
+ "file-type": {
+ "versioned": "Phiên bản",
+ "unspecified": "Không xác định"
+ },
+ "vcs-type": {
+ "unspecified": "Không xác định"
+ },
"actions": {
"new-file": "Tệp mới",
"import-from-release": "Nhập từ bản phát hành"
@@ -2692,4 +2711,4 @@
"last-visit": "Lần truy cập cuối",
"changelog-for-version": "Nhật ký thay đổi cho phiên bản {version}"
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index cbbc34630c..333d853a75 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -979,8 +979,8 @@
}
},
"sql-review-only": "仅 SQL 审核",
- "create-issue": "创建变更工单",
- "this-plan-will-be-converted-to-a-new-issue": "该计划将转换为一个变更工单",
+ "create-issue": "创建工单",
+ "this-plan-will-be-converted-to-a-new-issue": "该变更计划将转换为一个工单",
"title": {
"edit-schema": "变更 Schema",
"change-data": "变更数据",
@@ -1001,12 +1001,12 @@
"schema-migration-description": "修改数据库 Schema (DDL)",
"data-change": "数据变更",
"data-change-description": "修改数据(DML)",
- "select-targets": "选择目标",
+ "select-targets": "选择变更对象",
"overview": {
"title": "变更计划概述",
"description": "查看和管理此变更计划中的所有变更项",
"total-specs": "变更项",
- "total-targets": "变更目标",
+ "total-targets": "变更对象",
"check-status": "检查状态",
"no-checks": "没有检查",
"affected-resources": "受影响的资源"
@@ -1035,11 +1035,11 @@
}
},
"targets": {
- "title": "目标",
- "no-targets-found": "未找到目标",
- "no-targets": "没有目标",
- "one-target": "1 个目标",
- "multiple-targets": "{count} 个目标",
+ "title": "变更对象",
+ "no-targets-found": "未找到变更对象",
+ "no-targets": "没有变更对象",
+ "one-target": "1 个变更对象",
+ "multiple-targets": "{count} 个变更对象",
"one-database": "1 个数据库",
"multiple-databases": "{count} 个数据库",
"database-group": "数据库组",
@@ -2622,12 +2622,31 @@
"change-type": "更改类型"
},
"release": {
+ "title": "发布包",
"releases": "发布包",
"files": "文件",
"create": "创建发布",
"select": "选择发布",
"archive-this-release": "归档此发布",
"total-files": "共 {count} 个文件",
+ "plan-tip": "此变更计划已配置为使用发布包。数据库变更将使用所选发布包文件中的 SQL 语句执行。",
+ "not-found": "未找到",
+ "vcs-source": "VCS 源",
+ "view-all-files": "查看全部文件",
+ "and-n-more-files": "还有 {count} 个文件",
+ "change-type": {
+ "ddl": "DDL",
+ "ddl-ghost": "DDL Ghost",
+ "dml": "DML",
+ "unspecified": "未指定"
+ },
+ "file-type": {
+ "versioned": "版本化",
+ "unspecified": "未指定"
+ },
+ "vcs-type": {
+ "unspecified": "未指定"
+ },
"actions": {
"new-file": "新建文件",
"import-from-release": "从发布导入"
@@ -2692,4 +2711,4 @@
"last-visit": "上次访问",
"changelog-for-version": "{version} 的更新日志"
}
-}
+}
\ No newline at end of file