You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by zi...@apache.org on 2023/11/07 06:45:47 UTC

(inlong) branch master updated: [INLONG-9221][Dashboard] Fix sync MySQL sink without data node (#9224)

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

zirui 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 003715e3e3 [INLONG-9221][Dashboard] Fix sync MySQL sink without data node (#9224)
003715e3e3 is described below

commit 003715e3e377d835f58883155f32d2fd1cae516e
Author: Lizhen <88...@users.noreply.github.com>
AuthorDate: Tue Nov 7 14:45:41 2023 +0800

    [INLONG-9221][Dashboard] Fix sync MySQL sink without data node (#9224)
---
 .../src/plugins/sinks/defaults/MySQL.ts            |  1 +
 inlong-dashboard/src/ui/locales/en.json            | 22 +++++++++++-----------
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/inlong-dashboard/src/plugins/sinks/defaults/MySQL.ts b/inlong-dashboard/src/plugins/sinks/defaults/MySQL.ts
index a8c39dbadf..0f56db47db 100644
--- a/inlong-dashboard/src/plugins/sinks/defaults/MySQL.ts
+++ b/inlong-dashboard/src/plugins/sinks/defaults/MySQL.ts
@@ -131,6 +131,7 @@ export default class HiveSink extends SinkInfo implements DataWithBackend, Rende
       nodeType: 'MYSQL',
     }),
   })
+  @SyncField()
   @I18n('meta.Sinks.DataNodeName')
   dataNodeName: string;
 
diff --git a/inlong-dashboard/src/ui/locales/en.json b/inlong-dashboard/src/ui/locales/en.json
index 25856de861..f54f0d2c62 100644
--- a/inlong-dashboard/src/ui/locales/en.json
+++ b/inlong-dashboard/src/ui/locales/en.json
@@ -122,15 +122,15 @@
   "meta.Sinks.SinkName": "Name",
   "meta.Sinks.SinkNameRule": "Only English letters, numbers, dots(.), minus(-), and underscores(_)",
   "meta.Sinks.SinkType": "Type",
-  "meta.Sinks.Description": "SinkDescription",
+  "meta.Sinks.Description": "Sink description",
   "meta.Sinks.SourceFieldName": "Source field name",
   "meta.Sinks.SourceFieldType": "Source field type",
   "meta.Sinks.SourceFieldNameRule": "At the beginning of English letters, only English letters, numbers, and underscores",
   "meta.Sinks.Username": "Username",
   "meta.Sinks.Password": "Password",
-  "meta.Sinks.EnableCreateResource": "EnableCreateResource",
+  "meta.Sinks.EnableCreateResource": "Create resource",
   "meta.Sinks.EnableCreateResourceHelp": "If the library table already exists and does not need to be modified, select [Do not create], otherwise select [Create], and the system will automatically create the resource.",
-  "meta.Sinks.DataNodeName": "DataNode",
+  "meta.Sinks.DataNodeName": "Data node",
   "meta.Sinks.FieldTypeMessage": "Please enter field type",
   "meta.Sinks.Hive.FileFormat": "File format",
   "meta.Sinks.Hive.Day": "Day(s)",
@@ -234,15 +234,15 @@
   "meta.Sinks.Greenplum.IsMetaField": "IsMetaField",
   "meta.Sinks.Greenplum.FieldFormat": "FieldFormat",
   "meta.Sinks.Greenplum.FieldDescription": "FieldDescription",
-  "meta.Sinks.MySQL.DatabaseName": "DatabaseName",
-  "meta.Sinks.MySQL.TableName": "TableName",
-  "meta.Sinks.MySQL.PrimaryKey": "PrimaryKey",
-  "meta.Sinks.MySQL.FieldName": "FieldName",
+  "meta.Sinks.MySQL.DatabaseName": "Database name",
+  "meta.Sinks.MySQL.TableName": "Table name",
+  "meta.Sinks.MySQL.PrimaryKey": "Primary key",
+  "meta.Sinks.MySQL.FieldName": "Field name",
   "meta.Sinks.MySQL.FieldNameRule": "At the beginning of English letters, only English letters, numbers, and underscores",
-  "meta.Sinks.MySQL.FieldType": "FieldType",
+  "meta.Sinks.MySQL.FieldType": "Field type",
   "meta.Sinks.MySQL.IsMetaField": "IsMetaField",
-  "meta.Sinks.MySQL.FieldFormat": "FieldFormat",
-  "meta.Sinks.MySQL.FieldDescription": "FieldDescription",
+  "meta.Sinks.MySQL.FieldFormat": "Field format",
+  "meta.Sinks.MySQL.FieldDescription": "Field description",
   "meta.Sinks.Oracle.TableName": "TableName",
   "meta.Sinks.Oracle.PrimaryKey": "PrimaryKey",
   "meta.Sinks.Oracle.FieldName": "FieldName",
@@ -573,7 +573,7 @@
   "components.Layout.Feedback": "Feedback",
   "components.HighSelect.Customize": "Customize",
   "components.HighSelect.SearchPlaceholder": "Please enter keyword...",
-  "components.NodeSelect.Create": "Create Node",
+  "components.NodeSelect.Create": "Create node",
   "components.FieldList.SinkFieldName": "Sink field name",
   "components.FieldList.SinkFieldType": "Sink field type",
   "components.FieldList.FieldComment": "Field comment",