Skip to content

Commit

Permalink
[INLONG-7643][Dashboard] Support specifying buckets when creating kud…
Browse files Browse the repository at this point in the history
…u resource (#7644)
  • Loading branch information
featzhang authored and dockerzhang committed Mar 20, 2023
1 parent 2856dc9 commit 11a086a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions inlong-dashboard/src/locales/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "数据流组名称",
Expand Down
1 change: 1 addition & 0 deletions inlong-dashboard/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 13 additions & 0 deletions inlong-dashboard/src/metas/sinks/defaults/Kudu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
Expand Down

0 comments on commit 11a086a

Please sign in to comment.