Skip to content

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

feat(frontend): support pitr backup type in backup table (#1776)

Liu Ji586953c7bd16
diff --git a/frontend/src/components/BackupTable.vue b/frontend/src/components/BackupTable.vue
index d3fd024c84..b23240dc09 100644
--- a/frontend/src/components/BackupTable.vue
+++ b/frontend/src/components/BackupTable.vue
@@ -213,6 +213,7 @@ export default defineComponent({
const backupSectionList = computed(() => {
const manualList: Backup[] = [];
const automaticList: Backup[] = [];
+ const pitrList: Backup[] = [];
const sectionList: BBTableSectionDataSource<Backup>[] = [
{
title: t("common.manual"),
@@ -222,6 +223,10 @@ export default defineComponent({
title: t("common.automatic"),
list: automaticList,
},
+ {
+ title: t("common.pitr"),
+ list: pitrList,
+ },
];
for (const backup of props.backupList) {
@@ -229,6 +234,8 @@ export default defineComponent({
manualList.push(backup);
} else if (backup.type == "AUTOMATIC") {
automaticList.push(backup);
+ } else if (backup.type === "PITR") {
+ pitrList.push(backup);
}
}
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index b1bdc5a0c3..528ff6145e 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -200,7 +200,8 @@
"disable": "Disable",
"view-doc": "View doc",
"backup-and-restore": "Backup and restore",
- "write-only": "write only"
+ "write-only": "write only",
+ "pitr": "PITR"
},
"error-page": {
"go-back-home": "Go back home"
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index ac3377ac9a..97dc80754a 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -200,7 +200,8 @@
"disable": "禁用",
"view-doc": "查看文档",
"backup-and-restore": "备份与恢复",
- "write-only": "仅写入"
+ "write-only": "仅写入",
+ "pitr": "PITR"
},
"error-page": {
"go-back-home": "回到主页"
diff --git a/frontend/src/types/backup.ts b/frontend/src/types/backup.ts
index d989f7ead5..4af1e8a5e1 100644
--- a/frontend/src/types/backup.ts
+++ b/frontend/src/types/backup.ts
@@ -3,7 +3,7 @@ import { Principal } from "./principal";
export type BackupStatus = "PENDING_CREATE" | "DONE" | "FAILED";
-export type BackupType = "MANUAL" | "AUTOMATIC";
+export type BackupType = "MANUAL" | "AUTOMATIC" | "PITR";
export type BackupStorageBackend = "LOCAL";