From a9f9ff85805b68844b99b08f726eee684bfd673a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Philippe=20Qu=C3=A9m=C3=A9ner?= Date: Thu, 4 Sep 2025 17:36:52 +0200 Subject: [PATCH] fix(search): bump the limit for locationinfo search (#110604) --- public/app/features/search/service/unified.test.ts | 2 +- public/app/features/search/service/unified.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/app/features/search/service/unified.test.ts b/public/app/features/search/service/unified.test.ts index f013ca91ca7..7543a6b1b21 100644 --- a/public/app/features/search/service/unified.test.ts +++ b/public/app/features/search/service/unified.test.ts @@ -22,7 +22,7 @@ const mockFallbackSearcher = { } as unknown as GrafanaSearcher; const getResponse = (uri: string) => { - if (uri.endsWith('?type=folders')) { + if (uri.includes('?type=folders')) { return Promise.resolve(mockFolders); } return Promise.resolve(mockResults); diff --git a/public/app/features/search/service/unified.ts b/public/app/features/search/service/unified.ts index 1f5aef6c033..e4ce38346e8 100644 --- a/public/app/features/search/service/unified.ts +++ b/public/app/features/search/service/unified.ts @@ -385,7 +385,8 @@ export function toDashboardResults(rsp: SearchAPIResponse, sort: string): DataFr } async function loadLocationInfo(): Promise> { - const uri = `${searchURI}?type=folders`; + // TODO: use proper pagination for search. + const uri = `${searchURI}?type=folders&limit=100000`; const rsp = getBackendSrv() .get(uri) .then((rsp) => {