You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by do...@apache.org on 2023/03/20 03:43:15 UTC
[inlong] branch master updated: [INLONG-7643][Dashboard] Support specifying buckets when creating kudu resource (#7644)
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 9af935bff [INLONG-7643][Dashboard] Support specifying buckets when creating kudu resource (#7644)
9af935bff is described below
commit 9af935bffa1f85118677932eb4b59e2141f20a0e
Author: feat <fe...@outlook.com>
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 }],