mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-26 01:46:26 +00:00
query builder improvements (#18377)
This commit is contained in:
parent
d145d29e9a
commit
ef0b03d4a9
@ -46,10 +46,10 @@ const QueryBuilderWidget: FC<WidgetProps> = ({
|
||||
useAdvanceSearch();
|
||||
const [searchResults, setSearchResults] = useState<number>(0);
|
||||
const entityType =
|
||||
(props.formContext?.entityType ?? props?.entityType) || EntityType.ALL;
|
||||
(props.formContext?.entityType ?? schema?.entityType) || EntityType.ALL;
|
||||
const searchIndexMapping = searchClassBase.getEntityTypeSearchIndexMapping();
|
||||
const searchIndex = searchIndexMapping[entityType as string];
|
||||
const outputType = props?.outputType ?? QueryBuilderOutputType.ELASTICSEARCH;
|
||||
const outputType = schema?.outputType ?? QueryBuilderOutputType.ELASTICSEARCH;
|
||||
|
||||
const fetchEntityCount = useCallback(
|
||||
async (queryFilter: Record<string, unknown>) => {
|
||||
@ -152,17 +152,17 @@ const QueryBuilderWidget: FC<WidgetProps> = ({
|
||||
showIcon
|
||||
icon={<InfoCircleOutlined height={16} />}
|
||||
message={
|
||||
<>
|
||||
<div className="d-flex flex-wrap items-center gap-1">
|
||||
<Typography.Text>
|
||||
{t('message.search-entity-count', {
|
||||
count: searchResults,
|
||||
})}
|
||||
</Typography.Text>
|
||||
|
||||
<Typography.Text className="m-l-sm text-xs text-grey-muted">
|
||||
<Typography.Text className="text-xs text-grey-muted">
|
||||
{t('message.click-here-to-view-assets-on-explore')}
|
||||
</Typography.Text>
|
||||
</>
|
||||
</div>
|
||||
}
|
||||
type="info"
|
||||
/>
|
||||
|
@ -193,7 +193,7 @@ const AppInstall = () => {
|
||||
|
||||
case 2:
|
||||
return (
|
||||
<div className="w-500 p-md border rounded-4">
|
||||
<div className="w-4/5 p-md border rounded-4">
|
||||
<FormBuilder
|
||||
showFormHeader
|
||||
useSelectWidget
|
||||
|
Loading…
x
Reference in New Issue
Block a user