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:
karanh37 2023-02-07 16:10:27 +05:30 committed by GitHub
parent fb15c896b3
commit 497ae4c8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
},
},
};