mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-03 14:13:06 +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) => {
|
const getTeamOptions = async (searchText: string) => {
|
||||||
return searchEntity({ searchText, searchIndex: SearchIndex.TEAM });
|
return searchEntity({ searchText, searchIndex: SearchIndex.TEAM });
|
||||||
};
|
};
|
||||||
@ -546,7 +553,7 @@ export const getFieldByArgumentType = (
|
|||||||
},
|
},
|
||||||
]}>
|
]}>
|
||||||
<AsyncSelect
|
<AsyncSelect
|
||||||
api={getUserOptions}
|
api={getUserBotOptions}
|
||||||
className="w-full"
|
className="w-full"
|
||||||
data-testid="user-name-select"
|
data-testid="user-name-select"
|
||||||
mode="multiple"
|
mode="multiple"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user