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 341cf2d1d1 [INLONG-9610][Dashboard] Cluster creation type optimization
(#9612)
341cf2d1d1 is described below
commit 341cf2d1d1053fb7321388df62332b88468f9559
Author: Lizhen <[email protected]>
AuthorDate: Tue Jan 23 19:22:34 2024 +0800
[INLONG-9610][Dashboard] Cluster creation type optimization (#9612)
---
.../src/plugins/clusters/common/ClusterDefaultInfo.ts | 2 +-
inlong-dashboard/src/plugins/sources/defaults/Pulsar.ts | 12 ++++++------
inlong-dashboard/src/ui/pages/Clusters/CreateModal.tsx | 7 ++++++-
inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx | 2 +-
4 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/inlong-dashboard/src/plugins/clusters/common/ClusterDefaultInfo.ts
b/inlong-dashboard/src/plugins/clusters/common/ClusterDefaultInfo.ts
index cb51484dd8..e8be5de31b 100644
--- a/inlong-dashboard/src/plugins/clusters/common/ClusterDefaultInfo.ts
+++ b/inlong-dashboard/src/plugins/clusters/common/ClusterDefaultInfo.ts
@@ -52,7 +52,7 @@ export class ClusterDefaultInfo implements DataWithBackend,
RenderRow, RenderLis
props: values => ({
disabled: Boolean(values.id),
options: clusters
- .filter(item => item.value !== 'AGENT' && item.value !== 'DATAPROXY')
+ .filter(item => item.value !== 'DATAPROXY')
.map(item => ({
label: item.label,
value: item.value,
diff --git a/inlong-dashboard/src/plugins/sources/defaults/Pulsar.ts
b/inlong-dashboard/src/plugins/sources/defaults/Pulsar.ts
index 3d8aabe354..e682002d88 100644
--- a/inlong-dashboard/src/plugins/sources/defaults/Pulsar.ts
+++ b/inlong-dashboard/src/plugins/sources/defaults/Pulsar.ts
@@ -64,8 +64,8 @@ export default class PulsarSource
})
@SyncField()
@IngestionField()
- @I18n('Admin url')
- adminUrl: string;
+ @I18n('Pulsar topic')
+ topic: string;
@FieldDecorator({
type: 'input',
@@ -76,8 +76,8 @@ export default class PulsarSource
})
@SyncField()
@IngestionField()
- @I18n('Service url')
- serviceUrl: string;
+ @I18n('Admin url')
+ adminUrl: string;
@FieldDecorator({
type: 'input',
@@ -88,8 +88,8 @@ export default class PulsarSource
})
@SyncField()
@IngestionField()
- @I18n('Pulsar topic')
- topic: string;
+ @I18n('Service url')
+ serviceUrl: string;
@FieldDecorator({
type: 'radio',
diff --git a/inlong-dashboard/src/ui/pages/Clusters/CreateModal.tsx
b/inlong-dashboard/src/ui/pages/Clusters/CreateModal.tsx
index 63fd1530c6..35b5b3641d 100644
--- a/inlong-dashboard/src/ui/pages/Clusters/CreateModal.tsx
+++ b/inlong-dashboard/src/ui/pages/Clusters/CreateModal.tsx
@@ -65,7 +65,12 @@ const Comp: React.FC<Props> = ({ id, defaultType,
...modalProps }) => {
inCharges: values.inCharges?.join(','),
clusterTags: values.clusterTags?.join(','),
};
- if (values.type === 'SORT_CLS' || values.type === 'SORT_ES' || values.type
=== 'SORT_PULSAR') {
+ if (
+ values.type === 'AGENT' ||
+ values.type === 'SORT_CLS' ||
+ values.type === 'SORT_ES' ||
+ values.type === 'SORT_PULSAR'
+ ) {
submitData.name = values.displayName;
}
if (isUpdate) {
diff --git a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx
b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx
index 3b368c03ad..6a9525905c 100644
--- a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx
+++ b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx
@@ -121,7 +121,7 @@ const Comp: React.FC<Props> = ({ inlongGroupId }) => {
})
}
/>
- <Charts height={400} option={toChartData(sourceData, sourceDataMap)} />
+ <Charts height={400} option={toChartData(sourceData, sourceDataMap)}
forceUpdate={true} />
</div>
<HighTable