mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-18 20:30:48 +00:00
Chore: Service Insights live update improvements and bug fixes (#22772)
* Update the common props for ServiceInsights tabs * Fix unit test (cherry picked from commit 04ab3b29fe7a02b0ff02eac42ad97a1308fdd62a)
This commit is contained in:
parent
2813039768
commit
faa7dc6e44
@ -42,7 +42,7 @@ export interface WorkflowStatesData {
|
|||||||
subInstanceStates: WorkflowInstanceState[];
|
subInstanceStates: WorkflowInstanceState[];
|
||||||
}
|
}
|
||||||
export interface ServiceInsightWidgetCommonProps {
|
export interface ServiceInsightWidgetCommonProps {
|
||||||
serviceName: string;
|
serviceDetails: ServicesType;
|
||||||
workflowStatesData?: WorkflowStatesData;
|
workflowStatesData?: WorkflowStatesData;
|
||||||
}
|
}
|
||||||
export interface ChartsResults {
|
export interface ChartsResults {
|
||||||
|
@ -353,7 +353,7 @@ const ServiceInsightsTab = ({
|
|||||||
<Widget
|
<Widget
|
||||||
chartsData={getChartsDataFromWidgetName(name, chartsResults)}
|
chartsData={getChartsDataFromWidgetName(name, chartsResults)}
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
serviceName={serviceName}
|
serviceDetails={serviceDetails}
|
||||||
workflowStatesData={workflowStatesData}
|
workflowStatesData={workflowStatesData}
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
|
@ -74,6 +74,8 @@ export enum EntityFields {
|
|||||||
SERVICE_NAME = 'service.name.keyword',
|
SERVICE_NAME = 'service.name.keyword',
|
||||||
SUGGESTED_DESCRIPTION = 'descriptionSources.Suggested',
|
SUGGESTED_DESCRIPTION = 'descriptionSources.Suggested',
|
||||||
TAGS_LABEL_TYPE = 'tags.labelType',
|
TAGS_LABEL_TYPE = 'tags.labelType',
|
||||||
|
TIER_LABEL_TYPE = 'tier.labelType',
|
||||||
|
CREATED_BY = 'createdBy',
|
||||||
}
|
}
|
||||||
|
|
||||||
export const EntitySourceFields: Partial<Record<EntityFields, string[]>> = {
|
export const EntitySourceFields: Partial<Record<EntityFields, string[]>> = {
|
||||||
|
@ -50,6 +50,8 @@ describe('AdvancedSearchClassBase', () => {
|
|||||||
'entityType',
|
'entityType',
|
||||||
'descriptionSources.Suggested',
|
'descriptionSources.Suggested',
|
||||||
'tags.labelType',
|
'tags.labelType',
|
||||||
|
'tier.labelType',
|
||||||
|
'createdBy',
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -802,6 +802,27 @@ class AdvancedSearchClassBase {
|
|||||||
listValues: TAG_LABEL_TYPE_LIST_VALUES,
|
listValues: TAG_LABEL_TYPE_LIST_VALUES,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
[EntityFields.TIER_LABEL_TYPE]: {
|
||||||
|
label: t('label.tier-label-type'),
|
||||||
|
type: 'select',
|
||||||
|
mainWidgetProps: this.mainWidgetProps,
|
||||||
|
valueSources: ['value'],
|
||||||
|
fieldSettings: {
|
||||||
|
listValues: TAG_LABEL_TYPE_LIST_VALUES,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
[EntityFields.CREATED_BY]: {
|
||||||
|
label: t('label.created-by'),
|
||||||
|
type: 'select',
|
||||||
|
mainWidgetProps: this.mainWidgetProps,
|
||||||
|
fieldSettings: {
|
||||||
|
asyncFetch: this.autocomplete({
|
||||||
|
searchIndex: [SearchIndex.USER],
|
||||||
|
entityField: EntityFields.DISPLAY_NAME_KEYWORD,
|
||||||
|
}),
|
||||||
|
useAsyncSearch: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user