From c3aae5728ff2f71a9ecd1def7c7b070c2f9e4e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=9C=9D=E4=BF=8A?= Date: Fri, 3 Nov 2023 17:32:12 +0800 Subject: [PATCH] PullRequest: 226 Fixes oceanbase/odc#708 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merge branch 'fix/dev-4.2.2-github-708 of git@code.alipay.com:oceanbase/oceanbase-developer-center.git into dev-4.2.2 https://code.alipay.com/oceanbase/oceanbase-developer-center/pull_requests/226 Signed-off-by: 晓康 * Fixes oceanbase/odc#708 --- src/d.ts/index.ts | 4 ++++ src/page/Secure/Record/RecordPage/interface.ts | 4 ++++ src/page/Secure/components/RecordPage/interface.ts | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/d.ts/index.ts b/src/d.ts/index.ts index ca0941ad3..9e688a74f 100644 --- a/src/d.ts/index.ts +++ b/src/d.ts/index.ts @@ -416,6 +416,8 @@ export enum AuditEventType { PROJECT_MANAGEMENT = 'PROJECT_MANAGEMENT', // 导出结果集 EXPORT_RESULT_SET = 'EXPORT_RESULT_SET', + // SQL 安全规则管理 + SQL_SECURITY_RULE_MANAGEMENT = 'SQL_SECURITY_RULE_MANAGEMENT', } export enum AuditEventActionType { @@ -551,6 +553,8 @@ export enum AuditEventActionType { REJECT_EXPORT_RESULT_SET_TASK = 'REJECT_EXPORT_RESULT_SET_TASK', EXECUTE_EXPORT_RESULT_SET_TASK = 'EXECUTE_EXPORT_RESULT_SET_TASK', STOP_EXPORT_RESULT_SET_TASK = 'STOP_EXPORT_RESULT_SET_TASK', + // SQL 安全规则管理 + UPDATE_SQL_SECURITY_RULE = 'UPDATE_SQL_SECURITY_RULE', } export enum AuditEventDialectType { diff --git a/src/page/Secure/Record/RecordPage/interface.ts b/src/page/Secure/Record/RecordPage/interface.ts index 24a151984..b3e43b084 100644 --- a/src/page/Secure/Record/RecordPage/interface.ts +++ b/src/page/Secure/Record/RecordPage/interface.ts @@ -124,6 +124,8 @@ export const AuditEventMetaMap = { [AuditEventType.EXPORT_RESULT_SET]: formatMessage({ id: 'odc.src.page.Secure.Record.RecordPage.ExportResultSet', }), //'导出结果集' + // SQL安全规则管理 + [AuditEventType.SQL_SECURITY_RULE_MANAGEMENT]: 'SQL安全规则管理', }; export const AuditEventActionMap = { // 个人配置 @@ -536,6 +538,8 @@ export const AuditEventActionMap = { [AuditEventActionType.STOP_EXPORT_RESULT_SET_TASK]: formatMessage({ id: 'odc.src.page.Secure.Record.RecordPage.StopExportResultsSetTask', }), //'停止导出结果集任务' + // SQL安全规则管理 + [AuditEventActionType.UPDATE_SQL_SECURITY_RULE]: '更新SQL安全规则', }; export function getEventFilterAndOptions(eventMeta: IAuditEvent[]) { const metas = diff --git a/src/page/Secure/components/RecordPage/interface.ts b/src/page/Secure/components/RecordPage/interface.ts index 3f34c3f9b..cb1d6a609 100644 --- a/src/page/Secure/components/RecordPage/interface.ts +++ b/src/page/Secure/components/RecordPage/interface.ts @@ -124,6 +124,8 @@ export const AuditEventMetaMap = { [AuditEventType.EXPORT_RESULT_SET]: formatMessage({ id: 'odc.src.page.Secure.components.RecordPage.ExportResultSet', }), //'导出结果集' + // SQL安全规则管理 + [AuditEventType.SQL_SECURITY_RULE_MANAGEMENT]: 'SQL安全规则管理', }; export const AuditEventActionMap = { // 个人配置 @@ -536,6 +538,8 @@ export const AuditEventActionMap = { [AuditEventActionType.STOP_EXPORT_RESULT_SET_TASK]: formatMessage({ id: 'odc.src.page.Secure.components.RecordPage.StopExportResultsSetTask', }), //'停止导出结果集任务' + // SQL安全规则管理 + [AuditEventActionType.UPDATE_SQL_SECURITY_RULE]: '更新SQL安全规则', }; export function getEventFilterAndOptions(eventMeta: IAuditEvent[]) { const metas =