This is an automated email from the ASF dual-hosted git repository. dockerzhang pushed a commit to branch branch-1.6 in repository https://gitbox.apache.org/repos/asf/inlong.git
commit 11a086a1d152394bbce1c0e714ee7df5124c9b38 Author: feat <[email protected]> AuthorDate: Mon Mar 20 11:43:09 2023 +0800 [INLONG-7643][Dashboard] Support specifying buckets when creating kudu resource (#7644) --- inlong-dashboard/src/locales/cn.json | 1 + inlong-dashboard/src/locales/en.json | 1 + inlong-dashboard/src/metas/sinks/defaults/Kudu.ts | 13 +++++++++++++ 3 files changed, 15 insertions(+) diff --git a/inlong-dashboard/src/locales/cn.json b/inlong-dashboard/src/locales/cn.json index 65ec6b91d..fd9687416 100644 --- a/inlong-dashboard/src/locales/cn.json +++ b/inlong-dashboard/src/locales/cn.json @@ -358,6 +358,7 @@ "meta.Sinks.Kudu.FieldType": "类型", "meta.Sinks.Kudu.PartitionStrategy": "分区策略", "meta.Sinks.Kudu.FieldDescription": "描述", + "meta.Sinks.Kudu.buckets": "Buckets", "meta.Group.InlongGroupId": "数据流组 ID", "meta.Group.InlongGroupIdRules": "只能包含小写字母、数字、中划线、下划线", "meta.Group.InlongGroupName": "数据流组名称", diff --git a/inlong-dashboard/src/locales/en.json b/inlong-dashboard/src/locales/en.json index 17ff322d7..ac12b34c0 100644 --- a/inlong-dashboard/src/locales/en.json +++ b/inlong-dashboard/src/locales/en.json @@ -358,6 +358,7 @@ "meta.Sinks.Kudu.FieldType": "FieldType", "meta.Sinks.Kudu.PartitionStrategy": "PartitionStrategy", "meta.Sinks.Kudu.FieldDescription": "FieldDescription", + "meta.Sinks.Kudu.buckets": "Buckets", "meta.Group.InlongGroupId": "Inlong Group ID", "meta.Group.InlongGroupIdRules": "Only lowercase letters, numbers, minus, and underscores", "meta.Group.InlongGroupName": "Inlong Group Name", diff --git a/inlong-dashboard/src/metas/sinks/defaults/Kudu.ts b/inlong-dashboard/src/metas/sinks/defaults/Kudu.ts index a9941fab7..349b5a5b9 100644 --- a/inlong-dashboard/src/metas/sinks/defaults/Kudu.ts +++ b/inlong-dashboard/src/metas/sinks/defaults/Kudu.ts @@ -118,6 +118,19 @@ export default class KuduSink extends SinkInfo implements DataWithBackend, Rende @I18n('meta.Sinks.EnableCreateResource') enableCreateResource: number; + @FieldDecorator({ + type: 'input', + initialValue: '', + rules: [{ required: false }], + props: values => ({ + disabled: [110, 130].includes(values?.status), + }), + visible: values => values!.enableCreateResource === 1, + }) + @ColumnDecorator() + @I18n('meta.Sinks.Kudu.buckets') + buckets: number; + @FieldDecorator({ type: EditableTable, rules: [{ required: false }],
