-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #497 from 0RAJA/feat_rule_audit_strategy
feat: 规则审计-策略新增/编辑-后端接口 --story=121513458
- Loading branch information
Showing
70 changed files
with
2,728 additions
and
907 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
TencentBlueKing is pleased to support the open source community by making | ||
蓝鲸智云 - 审计中心 (BlueKing - Audit Center) available. | ||
Copyright (C) 2023 THL A29 Limited, | ||
a Tencent company. All rights reserved. | ||
Licensed under the MIT License (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at http://opensource.org/licenses/MIT | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on | ||
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
We undertake not to change the open source license (MIT license) applicable | ||
to the current version of the project delivered to anyone in the future. | ||
""" | ||
from pypika.queries import QueryBuilder | ||
|
||
|
||
class BKBaseQueryBuilder(QueryBuilder): | ||
""" | ||
数据平台SQL构造器 | ||
""" | ||
|
||
QUOTE_CHAR = "`" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-12-26 16:22+0800\n" | ||
"POT-Creation-Date: 2025-01-03 17:30+0800\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -2069,15 +2069,19 @@ msgstr "Include" | |
msgid "Exclude" | ||
msgstr "Exclude" | ||
|
||
#, python-brace-format | ||
msgid "表 '{table_name}' 未在配置中声明。" | ||
msgstr "Table '{table_name}' is not declared in the configuration." | ||
|
||
#, python-brace-format | ||
msgid "不支持的 JOIN 类型:'{join_type}'。" | ||
msgstr "Unsupported JOIN type: '{join_type}'." | ||
|
||
#, python-brace-format | ||
msgid "不支持的操作符:'{operator}'。" | ||
msgstr "Unsupported operator: '{operator}'." | ||
|
||
#, python-brace-format | ||
msgid "不支持的聚合类型:'{aggregate_type}'。" | ||
msgstr "Unsupported aggregate type: '{aggregate_type}'." | ||
|
||
|
@@ -2201,6 +2205,12 @@ msgstr "Data Source" | |
msgid "数据开发" | ||
msgstr "Data Flow" | ||
|
||
msgid "规则审计" | ||
msgstr "Rule Audit" | ||
|
||
msgid "控件" | ||
msgstr "Control" | ||
|
||
msgid "Create or Update Flow Failed" | ||
msgstr "Create or Update Flow Failed" | ||
|
||
|
@@ -2214,6 +2224,9 @@ msgstr "Cluster Not Exists" | |
msgid "Control Not Exists" | ||
msgstr "Cluster Not Exists" | ||
|
||
msgid "Not Support DataSource" | ||
msgstr "Not Support DataSource" | ||
|
||
msgid "操作行为审计" | ||
msgstr "Operation Audit" | ||
|
||
|
@@ -3493,6 +3506,9 @@ msgstr "Policy type not supported" | |
msgid "策略类型不可修改" | ||
msgstr "Policy type cannot be modified" | ||
|
||
msgid "联表配置错误" | ||
msgstr "Link table configuration error" | ||
|
||
msgid "Strategy Name" | ||
msgstr "Strategy Name" | ||
|
||
|
@@ -3632,8 +3648,14 @@ msgstr "Is Priority" | |
msgid "Field Description" | ||
msgstr "Field Description" | ||
|
||
msgid "control_id and control_version_id are required when strategy_type is model" | ||
msgstr "control_id and control_version_id are required when strategy_type is model" | ||
msgid "Map Field" | ||
msgstr "Map Field" | ||
|
||
msgid "Field Value" | ||
msgstr "Field Value" | ||
|
||
msgid "control_id and control_version are required when strategy_type is model" | ||
msgstr "control_id and control_version are required when strategy_type is model" | ||
|
||
msgid "link_table_uid and link_table_version are required when strategy_type is rule" | ||
msgstr "link_table_uid and link_table_version are required when strategy_type is rule" | ||
|
@@ -3843,6 +3865,9 @@ msgstr "Links" | |
msgid "Link Table Config" | ||
msgstr "Link Table Configuration" | ||
|
||
msgid "逗号分隔的标签ID列表" | ||
msgstr "Comma-separated tag ID list" | ||
|
||
msgid "Link Table Count" | ||
msgstr "Link Table Count" | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-12-26 16:22+0800\n" | ||
"POT-Creation-Date: 2025-01-03 17:30+0800\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -2069,15 +2069,19 @@ msgstr "包含" | |
msgid "Exclude" | ||
msgstr "不包含" | ||
|
||
#, python-brace-format | ||
msgid "表 '{table_name}' 未在配置中声明。" | ||
msgstr "表 '{table_name}' 未在配置中声明。" | ||
|
||
#, python-brace-format | ||
msgid "不支持的 JOIN 类型:'{join_type}'。" | ||
msgstr "不支持的 JOIN 类型:'{join_type}'。" | ||
|
||
#, python-brace-format | ||
msgid "不支持的操作符:'{operator}'。" | ||
msgstr "不支持的操作符:'{operator}'。" | ||
|
||
#, python-brace-format | ||
msgid "不支持的聚合类型:'{aggregate_type}'。" | ||
msgstr "不支持的聚合类型:'{aggregate_type}'。" | ||
|
||
|
@@ -2201,6 +2205,12 @@ msgstr "数据源" | |
msgid "数据开发" | ||
msgstr "数据开发" | ||
|
||
msgid "规则审计" | ||
msgstr "规则审计" | ||
|
||
msgid "控件" | ||
msgstr "控件" | ||
|
||
msgid "Create or Update Flow Failed" | ||
msgstr "创建或更新任务失败" | ||
|
||
|
@@ -2214,6 +2224,9 @@ msgstr "集群不存在" | |
msgid "Control Not Exists" | ||
msgstr "控件不存在" | ||
|
||
msgid "Not Support DataSource" | ||
msgstr "不支持的数据源" | ||
|
||
msgid "操作行为审计" | ||
msgstr "操作行为审计" | ||
|
||
|
@@ -3493,6 +3506,9 @@ msgstr "策略类型不支持" | |
msgid "策略类型不可修改" | ||
msgstr "策略类型不可修改" | ||
|
||
msgid "联表配置错误" | ||
msgstr "联表配置错误" | ||
|
||
msgid "Strategy Name" | ||
msgstr "策略名称" | ||
|
||
|
@@ -3632,8 +3648,14 @@ msgstr "是否优先" | |
msgid "Field Description" | ||
msgstr "字段描述" | ||
|
||
msgid "control_id and control_version_id are required when strategy_type is model" | ||
msgstr "当 strategy_type 为 model 时,必须提供 control_id 和 control_version_id" | ||
msgid "Map Field" | ||
msgstr "映射字段" | ||
|
||
msgid "Field Value" | ||
msgstr "字段值" | ||
|
||
msgid "control_id and control_version are required when strategy_type is model" | ||
msgstr "当 strategy_type 为 model 时,必须提供 control_id 和 control_version" | ||
|
||
msgid "link_table_uid and link_table_version are required when strategy_type is rule" | ||
msgstr "当 strategy_type 为 rule 时,必须提供 link_table_uid 和 link_table_version" | ||
|
@@ -3827,6 +3849,9 @@ msgstr "连接" | |
msgid "Link Table Config" | ||
msgstr "联表配置" | ||
|
||
msgid "逗号分隔的标签ID列表" | ||
msgstr "逗号分隔的标签ID列表" | ||
|
||
msgid "Link Table Count" | ||
msgstr "联表数" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.