mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-02 03:29:03 +00:00
fix: use async for advanced search autocomplete (#10118)
* fix: use async for advanced search autocomplete * refactor: revert the cypress config changes
This commit is contained in:
parent
fb15c896b3
commit
497ae4c8ac
@ -202,12 +202,14 @@ const getCommonQueryBuilderFields = (
|
||||
label: t('label.owner'),
|
||||
type: 'select',
|
||||
mainWidgetProps,
|
||||
|
||||
fieldSettings: {
|
||||
asyncFetch: autocomplete({
|
||||
searchIndex: [SearchIndex.USER, SearchIndex.TEAM],
|
||||
entitySearchIndex,
|
||||
entityField: EntityFields.OWNER,
|
||||
}),
|
||||
useAsyncSearch: true,
|
||||
},
|
||||
},
|
||||
|
||||
@ -221,6 +223,7 @@ const getCommonQueryBuilderFields = (
|
||||
entitySearchIndex,
|
||||
entityField: EntityFields.TAG,
|
||||
}),
|
||||
useAsyncSearch: true,
|
||||
},
|
||||
},
|
||||
|
||||
@ -234,6 +237,7 @@ const getCommonQueryBuilderFields = (
|
||||
entitySearchIndex,
|
||||
entityField: EntityFields.TIER,
|
||||
}),
|
||||
useAsyncSearch: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -257,6 +261,7 @@ const getServiceQueryBuilderFields = (index: SearchIndex) => {
|
||||
entitySearchIndex: index,
|
||||
entityField: EntityFields.SERVICE,
|
||||
}),
|
||||
useAsyncSearch: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -279,6 +284,7 @@ const tableQueryBuilderFields: Fields = {
|
||||
entitySearchIndex: SearchIndex.TABLE,
|
||||
entityField: EntityFields.DATABASE,
|
||||
}),
|
||||
useAsyncSearch: true,
|
||||
},
|
||||
},
|
||||
|
||||
@ -293,6 +299,7 @@ const tableQueryBuilderFields: Fields = {
|
||||
entitySearchIndex: SearchIndex.TABLE,
|
||||
entityField: EntityFields.DATABASE_SCHEMA,
|
||||
}),
|
||||
useAsyncSearch: true,
|
||||
},
|
||||
},
|
||||
|
||||
@ -307,6 +314,7 @@ const tableQueryBuilderFields: Fields = {
|
||||
entitySearchIndex: SearchIndex.TABLE,
|
||||
entityField: EntityFields.COLUMN,
|
||||
}),
|
||||
useAsyncSearch: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user