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/incubator-inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 1f9717f9d [INLONG-3684][Dashboard] Add tooltip for the stream data 
type (#3685)
1f9717f9d is described below

commit 1f9717f9ded205cb58f27106ea58b8aee3bd6bc9
Author: healchow <[email protected]>
AuthorDate: Thu Apr 14 11:27:17 2022 +0800

    [INLONG-3684][Dashboard] Add tooltip for the stream data type (#3685)
---
 .../AccessHelper/FieldsConfig/dataFields.tsx       | 29 +++-------------------
 inlong-dashboard/src/locales/cn.json               |  1 +
 inlong-dashboard/src/locales/en.json               |  1 +
 3 files changed, 5 insertions(+), 26 deletions(-)

diff --git 
a/inlong-dashboard/src/components/AccessHelper/FieldsConfig/dataFields.tsx 
b/inlong-dashboard/src/components/AccessHelper/FieldsConfig/dataFields.tsx
index e238b644b..f9ff4fb04 100644
--- a/inlong-dashboard/src/components/AccessHelper/FieldsConfig/dataFields.tsx
+++ b/inlong-dashboard/src/components/AccessHelper/FieldsConfig/dataFields.tsx
@@ -125,37 +125,14 @@ export default (
       name: 'dataSourcesConfig',
       visible: values => values.dataSourceType === 'BINLOG' || 
values.dataSourceType === 'FILE',
     },
-    {
-      type: 'radio',
-      label: '同步类型',
-      name: 'syncType',
-      initialValue: currentValues.syncType ?? 0,
-      props: {
-        options: [
-          {
-            label: '全量',
-            value: 0,
-          },
-          {
-            label: '增量',
-            value: 1,
-          },
-        ],
-      },
-      rules: [{ required: true }],
-      visible: values => currentValues.dataSourceType === 'BINLOG',
-    },
     {
       type: 'radio',
       label: 
i18n.t('components.AccessHelper.FieldsConfig.dataFields.DataType'),
       name: 'dataType',
-      initialValue: currentValues.dataType ?? 'TEXT',
+      initialValue: currentValues.dataType ?? 'CSV',
+      tooltip: 
i18n.t('components.AccessHelper.FieldsConfig.dataFields.DataTypeCsvHelp'),
       props: {
         options: [
-          {
-            label: 'TEXT',
-            value: 'TEXT',
-          },
           {
             label: 'CSV',
             value: 'CSV',
@@ -247,7 +224,7 @@ export default (
       ],
       visible: values =>
         (values.dataSourceType === 'FILE' || values.dataSourceType === 
'AUTO_PUSH') &&
-        (values.dataType === 'TEXT' || values.dataType === 'CSV'),
+        values.dataType === 'CSV',
     },
     {
       type: (
diff --git a/inlong-dashboard/src/locales/cn.json 
b/inlong-dashboard/src/locales/cn.json
index aaafc3ef3..91f65efd7 100644
--- a/inlong-dashboard/src/locales/cn.json
+++ b/inlong-dashboard/src/locales/cn.json
@@ -135,6 +135,7 @@
   "components.AccessHelper.FieldsConfig.dataFields.AutoConsumption": "自主消费",
   "components.AccessHelper.FieldsConfig.dataFields.DataFlowDirection": "数据流向",
   "components.AccessHelper.FieldsConfig.dataFields.DataType": "数据格式",
+  "components.AccessHelper.FieldsConfig.dataFields.DataTypeCsvHelp": 
"CSV:按特定分隔符分隔的任意文件",
   "components.AccessHelper.FieldsConfig.dataFields.Source": "消息来源",
   "components.AccessHelper.FieldsConfig.dataFields.FieldType": "字段类型",
   "components.AccessHelper.FieldsConfig.dataFields.FieldComment": "字段描述",
diff --git a/inlong-dashboard/src/locales/en.json 
b/inlong-dashboard/src/locales/en.json
index f365598ad..3b94f370a 100644
--- a/inlong-dashboard/src/locales/en.json
+++ b/inlong-dashboard/src/locales/en.json
@@ -135,6 +135,7 @@
   "components.AccessHelper.FieldsConfig.dataFields.AutoConsumption": "Auto 
Consumption",
   "components.AccessHelper.FieldsConfig.dataFields.DataFlowDirection": "Data 
stream direction",
   "components.AccessHelper.FieldsConfig.dataFields.DataType": "DataType",
+  "components.AccessHelper.FieldsConfig.dataFields.DataTypeCsvHelp": "CSV: Any 
file separated by a specific delimiter",
   "components.AccessHelper.FieldsConfig.dataFields.Source": "Source",
   "components.AccessHelper.FieldsConfig.dataFields.FieldType": "FieldType",
   "components.AccessHelper.FieldsConfig.dataFields.FieldComment": 
"FieldComment",

Reply via email to