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 ed37e14ad3 [INLONG-8843][Dashboard] StarRocks sink field optimization 
(#8844)
ed37e14ad3 is described below

commit ed37e14ad3decbe877c999f5a56d87a1c3b6a892
Author: Lizhen <[email protected]>
AuthorDate: Thu Sep 7 11:46:33 2023 +0800

    [INLONG-8843][Dashboard] StarRocks sink field optimization (#8844)
---
 .../src/plugins/sinks/defaults/StarRocks.ts        | 62 ----------------------
 .../src/ui/pages/TenantManagement/TenantModal.tsx  |  7 ++-
 2 files changed, 6 insertions(+), 63 deletions(-)

diff --git a/inlong-dashboard/src/plugins/sinks/defaults/StarRocks.ts 
b/inlong-dashboard/src/plugins/sinks/defaults/StarRocks.ts
index 6798c23c35..6063c164c2 100644
--- a/inlong-dashboard/src/plugins/sinks/defaults/StarRocks.ts
+++ b/inlong-dashboard/src/plugins/sinks/defaults/StarRocks.ts
@@ -99,7 +99,6 @@ export default class StarRocksSink
 
   @FieldDecorator({
     type: 'input',
-    rules: [{ required: true }],
     props: values => ({
       disabled: [110, 130].includes(values?.status),
     }),
@@ -109,67 +108,6 @@ export default class StarRocksSink
   @I18n('meta.Sinks.StarRocks.PrimaryKey')
   primaryKey: string;
 
-  @FieldDecorator({
-    type: 'radio',
-    rules: [{ required: true }],
-    initialValue: false,
-    props: values => ({
-      disabled: [110, 130].includes(values?.status),
-      options: [
-        {
-          label: i18n.t('basic.Yes'),
-          value: true,
-        },
-        {
-          label: i18n.t('basic.No'),
-          value: false,
-        },
-      ],
-    }),
-  })
-  @SyncField()
-  @I18n('meta.Sinks.StarRocks.SinkMultipleEnable')
-  sinkMultipleEnable: boolean;
-
-  @FieldDecorator({
-    type: 'input',
-    rules: [{ required: true }],
-    visible: record => record.sinkMultipleEnable === true,
-    props: values => ({
-      disabled: [110, 130].includes(values?.status),
-    }),
-  })
-  @ColumnDecorator()
-  @SyncField()
-  @I18n('meta.Sinks.StarRocks.SinkMultipleFormat')
-  sinkMultipleFormat: string;
-
-  @FieldDecorator({
-    type: 'input',
-    rules: [{ required: true }],
-    visible: record => record.sinkMultipleEnable === true,
-    props: values => ({
-      disabled: [110, 130].includes(values?.status),
-    }),
-  })
-  @ColumnDecorator()
-  @SyncField()
-  @I18n('meta.Sinks.StarRocks.DatabasePattern')
-  databasePattern: string;
-
-  @FieldDecorator({
-    type: 'input',
-    rules: [{ required: true }],
-    visible: record => record.sinkMultipleEnable === true,
-    props: values => ({
-      disabled: [110, 130].includes(values?.status),
-    }),
-  })
-  @ColumnDecorator()
-  @SyncField()
-  @I18n('meta.Sinks.StarRocks.TablePattern')
-  tablePattern: string;
-
   @FieldDecorator({
     type: EditableTable,
     props: values => ({
diff --git a/inlong-dashboard/src/ui/pages/TenantManagement/TenantModal.tsx 
b/inlong-dashboard/src/ui/pages/TenantManagement/TenantModal.tsx
index f42e576811..0390d66667 100644
--- a/inlong-dashboard/src/ui/pages/TenantManagement/TenantModal.tsx
+++ b/inlong-dashboard/src/ui/pages/TenantManagement/TenantModal.tsx
@@ -42,10 +42,15 @@ const Comp: React.FC<Props> = ({ name, ...modalProps }) => {
         rules: [{ required: true }],
       },
       {
-        type: 'input',
+        type: 'textarea',
         label: i18n.t('pages.Tenant.config.Description'),
         name: 'description',
         rules: [{ required: true }],
+        props: {
+          showCount: true,
+          maxLength: 256,
+          autoSize: { minRows: 4, maxRows: 8 },
+        },
       },
     ];
   }, []);

Reply via email to