Skip to content

Commit

Permalink
PullRequest: 226 Fixes oceanbase/odc#708
Browse files Browse the repository at this point in the history
Merge branch 'fix/dev-4.2.2-github-708 of [email protected]:oceanbase/oceanbase-developer-center.git into dev-4.2.2

https://code.alipay.com/oceanbase/oceanbase-developer-center/pull_requests/226


Signed-off-by: 晓康 <[email protected]>


* Fixes oceanbase/odc#708
  • Loading branch information
UnknownAdventurer committed Nov 3, 2023
1 parent d10f5b4 commit c3aae57
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/d.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions src/page/Secure/Record/RecordPage/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
// 个人配置
Expand Down Expand Up @@ -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 =
Expand Down
4 changes: 4 additions & 0 deletions src/page/Secure/components/RecordPage/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
// 个人配置
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit c3aae57

Please sign in to comment.