Skip to content

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

chore: add i18n for disallow create event rule (#10862)

boojackb38233d3fa79
diff --git a/frontend/src/locales/sql-review/en-US.json b/frontend/src/locales/sql-review/en-US.json
index 276c2df309..7208a7f82a 100644
--- a/frontend/src/locales/sql-review/en-US.json
+++ b/frontend/src/locales/sql-review/en-US.json
@@ -459,6 +459,10 @@
"system-procedure-disallow": {
"title": "Disallow to create procedures",
"description": "This rule prohibits the execution of procedures within the database. System procedures often perform critical operations that could impact the stability and security of the database environment. By disallowing their execution, it helps prevent unintended changes and potential vulnerabilities. Suggested error level: Error"
+ },
+ "system-event-disallow": {
+ "title": "Disallow to create events",
+ "description": "This rule prohibits the creation of events within the database. System events often perform automated tasks that could affect the database environment. By disallowing their creation, it helps maintain control over database operations and prevents potential disruptions. Suggested error level: Warning"
}
},
"level": {
diff --git a/frontend/src/locales/sql-review/es-ES.json b/frontend/src/locales/sql-review/es-ES.json
index b45f81bac9..0cb7608afc 100644
--- a/frontend/src/locales/sql-review/es-ES.json
+++ b/frontend/src/locales/sql-review/es-ES.json
@@ -459,6 +459,10 @@
"system-procedure-disallow": {
"title": "Prohibir la ejecución de procedimientos del sistema",
"description": "Los procedimientos del sistema pueden realizar operaciones de alto riesgo, como la eliminación de datos, la modificación de la estructura de la base de datos, etc. Nivel de error sugerido: Error"
+ },
+ "system-event-disallow": {
+ "title": "Prohibir la creación de eventos",
+ "description": "Esta regla prohíbe la creación de eventos dentro de la base de datos. Los eventos del sistema a menudo realizan tareas automatizadas que podrían afectar el entorno de la base de datos. Al prohibir su creación, ayuda a mantener el control sobre las operaciones de la base de datos y previene posibles interrupciones. Nivel de error sugerido: Advertencia"
}
},
"level": {
diff --git a/frontend/src/locales/sql-review/ja-JP.json b/frontend/src/locales/sql-review/ja-JP.json
index 43a74cd8a5..bfb734c9e3 100644
--- a/frontend/src/locales/sql-review/ja-JP.json
+++ b/frontend/src/locales/sql-review/ja-JP.json
@@ -459,6 +459,10 @@
"system-procedure-disallow": {
"title": "システムプロシージャの実行を禁止する",
"description": "システムプロシージャは、データベースのメタデータを変更するために使用されるため、誤って実行するとデータベースの整合性が失われる可能性があります。提案エラーレベル:エラー"
+ },
+ "system-event-disallow": {
+ "title": "Không cho phép tạo sự kiện",
+ "description": "Quy tắc này cấm tạo sự kiện trong cơ sở dữ liệu. Các sự kiện hệ thống thường thực hiện các tác vụ tự động có thể ảnh hưởng đến môi trường cơ sở dữ liệu. Bằng cách không cho phép tạo chúng, nó giúp duy trì kiểm soát về các hoạt động cơ sở dữ liệu và ngăn chặn các sự cố tiềm ẩn. Mức độ lỗi được đề xuất: Cảnh báo"
}
},
"level": {
diff --git a/frontend/src/locales/sql-review/vi-VN.json b/frontend/src/locales/sql-review/vi-VN.json
index d58d1198de..bbf8086e14 100644
--- a/frontend/src/locales/sql-review/vi-VN.json
+++ b/frontend/src/locales/sql-review/vi-VN.json
@@ -459,6 +459,10 @@
"system-procedure-disallow": {
"title": "Cấm thực thi các thủ tục hệ thống",
"description": "Cấm thực thi các thủ tục hệ thống. Mức độ lỗi đề xuất: Lỗi"
+ },
+ "system-event-disallow": {
+ "title": "Không cho phép tạo sự kiện",
+ "description": "Quy tắc này cấm tạo sự kiện trong cơ sở dữ liệu. Các sự kiện hệ thống thường thực hiện các tác vụ tự động có thể ảnh hưởng đến môi trường cơ sở dữ liệu. Bằng cách không cho phép tạo chúng, nó giúp duy trì kiểm soát về các hoạt động cơ sở dữ liệu và ngăn chặn các sự cố tiềm ẩn. Mức độ lỗi được đề xuất: Cảnh báo"
}
},
"level": {
diff --git a/frontend/src/locales/sql-review/zh-CN.json b/frontend/src/locales/sql-review/zh-CN.json
index c67472488a..92afe48345 100644
--- a/frontend/src/locales/sql-review/zh-CN.json
+++ b/frontend/src/locales/sql-review/zh-CN.json
@@ -459,6 +459,10 @@
"system-procedure-disallow": {
"title": "禁止创建存储过程",
"description": "存储过程通常会执行可能影响数据库环境稳定性和安全性的关键操作。禁止创建存储过程有助于防止意外更改和潜在漏洞。建议错误等级:错误"
+ },
+ "system-event-disallow": {
+ "title": "禁止创建事件",
+ "description": "该规则禁止在数据库中创建事件。系统事件通常执行可能影响数据库环境的自动化任务。通过禁止创建它们,有助于控制数据库操作并防止潜在的中断。建议的错误级别:警告"
}
},
"level": {
diff --git a/frontend/src/types/sql-review-schema.yaml b/frontend/src/types/sql-review-schema.yaml
index b8aa0c62c8..5e9c1170c0 100644
--- a/frontend/src/types/sql-review-schema.yaml
+++ b/frontend/src/types/sql-review-schema.yaml
@@ -746,3 +746,8 @@ ruleList:
engineList:
- MYSQL
componentList: []
+ - type: system.event.disallow
+ category: SYSTEM
+ engineList:
+ - MYSQL
+ componentList: []
diff --git a/frontend/src/types/sqlReview.ts b/frontend/src/types/sqlReview.ts
index 42b77ecd64..f642832148 100644
--- a/frontend/src/types/sqlReview.ts
+++ b/frontend/src/types/sqlReview.ts
@@ -156,6 +156,7 @@ export type RuleType =
| "system.collation.allowlist"
| "system.comment.length"
| "system.procedure.disallow"
+ | "system.event.disallow"
| "index.no-duplicate-column"
| "index.type-no-blob"
| "index.key-number-limit"