mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-01 19:18:05 +00:00
fix search query for non admin pages (#20078)
This commit is contained in:
parent
47d285abe5
commit
d805ec9590
@ -102,7 +102,7 @@ export const visitUserProfilePage = async (page: Page, userName: string) => {
|
||||
}
|
||||
);
|
||||
const userResponse = page.waitForResponse(
|
||||
'/api/v1/search/query?q=**&from=0&size=*&index=*'
|
||||
'/api/v1/search/query?q=**AND%20isAdmin:false%20isBot:false&from=0&size=*&index=*'
|
||||
);
|
||||
const loader = page.waitForSelector(
|
||||
'[data-testid="user-list-v1-component"] [data-testid="loader"]',
|
||||
|
||||
@ -149,7 +149,7 @@ const UserListPageV1 = () => {
|
||||
isAdmin = false,
|
||||
isDeleted = false
|
||||
) => {
|
||||
let filters = 'isBot:false';
|
||||
let filters = 'isAdmin:false isBot:false';
|
||||
if (isAdmin) {
|
||||
filters = 'isAdmin:true isBot:false';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user