mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 20:51:26 +00:00
ISSUE-15358: add function getting users and bots. (#15501)
This commit is contained in:
parent
fd403bae9a
commit
8cc4ccdacd
@ -230,6 +230,13 @@ const getUserOptions = async (searchText: string) => {
|
||||
});
|
||||
};
|
||||
|
||||
const getUserBotOptions = async (searchText: string) => {
|
||||
return searchEntity({
|
||||
searchText,
|
||||
searchIndex: SearchIndex.USER,
|
||||
});
|
||||
};
|
||||
|
||||
const getTeamOptions = async (searchText: string) => {
|
||||
return searchEntity({ searchText, searchIndex: SearchIndex.TEAM });
|
||||
};
|
||||
@ -546,7 +553,7 @@ export const getFieldByArgumentType = (
|
||||
},
|
||||
]}>
|
||||
<AsyncSelect
|
||||
api={getUserOptions}
|
||||
api={getUserBotOptions}
|
||||
className="w-full"
|
||||
data-testid="user-name-select"
|
||||
mode="multiple"
|
||||
|
Loading…
x
Reference in New Issue
Block a user