This is an automated email from the ASF dual-hosted git repository.

dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 3802bc08d [INLONG-7871][Dashboard] MySQL source supports filling in 
the database name whitelist (#7872)
3802bc08d is described below

commit 3802bc08d74eda8cce204fc39bdb1548dc19d81d
Author: Lizhen <[email protected]>
AuthorDate: Tue Apr 18 16:54:11 2023 +0800

    [INLONG-7871][Dashboard] MySQL source supports filling in the database name 
whitelist (#7872)
---
 inlong-dashboard/src/plugins/sources/defaults/MySQLBinlog.ts | 11 +++++++++++
 inlong-dashboard/src/ui/locales/cn.json                      |  2 ++
 inlong-dashboard/src/ui/locales/en.json                      |  2 ++
 3 files changed, 15 insertions(+)

diff --git a/inlong-dashboard/src/plugins/sources/defaults/MySQLBinlog.ts 
b/inlong-dashboard/src/plugins/sources/defaults/MySQLBinlog.ts
index dedd49ac5..c765a2a21 100644
--- a/inlong-dashboard/src/plugins/sources/defaults/MySQLBinlog.ts
+++ b/inlong-dashboard/src/plugins/sources/defaults/MySQLBinlog.ts
@@ -145,4 +145,15 @@ export default class TubeMqSource
   })
   @I18n('meta.Sources.Db.TableWhiteList')
   tableWhiteList: boolean;
+
+  @FieldDecorator({
+    type: 'input',
+    tooltip: i18n.t('meta.Sources.Db.DatabaseWhiteListHelp'),
+    props: values => ({
+      disabled: values?.status === 101,
+    }),
+    visible: values => values?.allMigration,
+  })
+  @I18n('meta.Sources.Db.DatabaseWhiteList')
+  databaseWhiteList: string;
 }
diff --git a/inlong-dashboard/src/ui/locales/cn.json 
b/inlong-dashboard/src/ui/locales/cn.json
index 48081d313..f34ff9c9c 100644
--- a/inlong-dashboard/src/ui/locales/cn.json
+++ b/inlong-dashboard/src/ui/locales/cn.json
@@ -41,6 +41,8 @@
   "meta.Sources.Db.AllMigration": "是否整库迁移",
   "meta.Sources.Db.TableWhiteList": "表名白名单",
   "meta.Sources.Db.TableWhiteListHelp": 
"白名单应该是一个以逗号分隔的正则表达式列表,与要监控的表的完全限定名称相匹配。表的完全限定名称的格式为 <dbName>.<tableName>,其中 
dbName 和 tablename 都可以配置正则表达式。比如:test_db.table*,inlong_db*.user*,表示采集 test_db 
库中以 table 开头的所有表 + 以 inlong_db 开头的所有库下的以 user 开头的所有表。",
+  "meta.Sources.Db.DatabaseWhiteList": "库名白名单",
+  "meta.Sources.Db.DatabaseWhiteListHelp": 
"需要采集的数据库列表,支持正则表达式,用逗号隔开,例如:db1,test_db,不在该列表中的数据库将被排除。如果未设置,则监视所有数据库。",
   "meta.Sources.Mongodb.Hosts": "服务器主机",
   "meta.Sources.Mongodb.Username": "用户名",
   "meta.Sources.Mongodb.Password": "密码",
diff --git a/inlong-dashboard/src/ui/locales/en.json 
b/inlong-dashboard/src/ui/locales/en.json
index 185d09f56..82d06bfab 100644
--- a/inlong-dashboard/src/ui/locales/en.json
+++ b/inlong-dashboard/src/ui/locales/en.json
@@ -41,6 +41,8 @@
   "meta.Sources.Db.AllMigration": "AllMigration",
   "meta.Sources.Db.TableWhiteList": "Table WhiteList",
   "meta.Sources.Db.TableWhiteListHelp": "The whitelist should be a 
comma-separated list of regular expressions that match the fully-qualified 
names of tables to be monitored. Fully-qualified names for tables are of the 
form <databaseName>.<tableName>, the dbName and tableName can be configured 
with regular expressions. For example: test_db.order*, inlong_db*.user*, means 
to collect all tables starting with order in the test_db database + all tables 
starting with user under all databases  [...]
+  "meta.Sources.Db.DatabaseWhiteList": "Database WhiteList",
+  "meta.Sources.Db.DatabaseWhiteListHelp": "A list of databases to be 
collected, supporting regular expressions, separated by commas, for example: 
db1,test_db, databases not in the list will be excluded. If not set, all 
databases are monitored.",
   "meta.Sources.Mongodb.Hosts": "Hosts",
   "meta.Sources.Mongodb.Username": "Username",
   "meta.Sources.Mongodb.Password": "Password",

Reply via email to