Skip to content

Commit

Permalink
[INLONG-9610][Dashboard] Cluster creation type optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
bluewang committed Jan 23, 2024
1 parent 0709547 commit c4cda30
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
12 changes: 6 additions & 6 deletions inlong-dashboard/src/plugins/sources/defaults/Pulsar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export default class PulsarSource
})
@SyncField()
@IngestionField()
@I18n('Admin url')
adminUrl: string;
@I18n('Pulsar topic')
topic: string;

@FieldDecorator({
type: 'input',
Expand All @@ -76,8 +76,8 @@ export default class PulsarSource
})
@SyncField()
@IngestionField()
@I18n('Service url')
serviceUrl: string;
@I18n('Admin url')
adminUrl: string;

@FieldDecorator({
type: 'input',
Expand All @@ -88,8 +88,8 @@ export default class PulsarSource
})
@SyncField()
@IngestionField()
@I18n('Pulsar topic')
topic: string;
@I18n('Service url')
serviceUrl: string;

@FieldDecorator({
type: 'radio',
Expand Down
7 changes: 6 additions & 1 deletion inlong-dashboard/src/ui/pages/Clusters/CreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion inlong-dashboard/src/ui/pages/GroupDetail/Audit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4cda30

Please sign in to comment.