Skip to content

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

feat: support select sql export in audit log (#7934)

h3n4lc68987b5d5c7
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 3f73c46fe6..16cc6cd572 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -2426,7 +2426,8 @@
"member-role-update": "Update Project Member Role",
"database-transfer": "Transfer Database"
},
- "sql-editor-query": "SQL Editor Query"
+ "sql-editor-query": "SQL Editor Query",
+ "sql-export": "SQL Export"
}
},
"onboarding-guide": {
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 15dcb08a24..cc9d38df44 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -2422,7 +2422,8 @@
"member-role-update": "Actualizar rol del miembro del proyecto",
"database-transfer": "Transferir base de datos"
},
- "sql-editor-query": "Consulta del editor de SQL"
+ "sql-editor-query": "Consulta del editor de SQL",
+ "sql-export": "Exportar SQL"
}
},
"onboarding-guide": {
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 37edb6a679..952190df90 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -2422,7 +2422,8 @@
"member-role-update": "更新项目成员角色",
"database-transfer": "转移数据库"
},
- "sql-editor-query": "SQL 编辑器查询"
+ "sql-editor-query": "SQL 编辑器查询",
+ "sql-export": "SQL 导出"
}
},
"onboarding-guide": {
diff --git a/frontend/src/types/auditLog.ts b/frontend/src/types/auditLog.ts
index 0b40b372c2..c17625b3f9 100644
--- a/frontend/src/types/auditLog.ts
+++ b/frontend/src/types/auditLog.ts
@@ -14,6 +14,7 @@ export const AuditActivityTypeList = [
LogEntity_Action.ACTION_PROJECT_DATABASE_TRANSFER,
// SQL Editor related.
LogEntity_Action.ACTION_DATABASE_SQL_EDITOR_QUERY,
+ LogEntity_Action.ACTION_DATABASE_SQL_EXPORT,
];
export const AuditActivityTypeI18nNameMap: { [key: number]: string } = {
@@ -29,4 +30,5 @@ export const AuditActivityTypeI18nNameMap: { [key: number]: string } = {
"audit-log.type.project.database-transfer",
[LogEntity_Action.ACTION_DATABASE_SQL_EDITOR_QUERY]:
"audit-log.type.sql-editor-query",
+ [LogEntity_Action.ACTION_DATABASE_SQL_EXPORT]: "audit-log.type.sql-export",
};
diff --git a/frontend/src/views/SettingWorkspaceAuditLog.vue b/frontend/src/views/SettingWorkspaceAuditLog.vue
index ced1613934..cec808c688 100644
--- a/frontend/src/views/SettingWorkspaceAuditLog.vue
+++ b/frontend/src/views/SettingWorkspaceAuditLog.vue
@@ -14,6 +14,7 @@
<TypeSelect
:disabled="!hasAuditLogFeature"
:selected-type-list="selectedAuditTypeList"
+ :item-list="AuditActivityTypeList"
@update-selected-type-list="selectAuditType"
/>
</div>