mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Fleet] Fix max 20 installed integrations returned from Fleet API (#150780)
## Summary Fix an (old) bug where Fleet's "list packages" API endpoint would only ever return 20 installed integrations at most. I haven't included a test case here because I'm not sure we have 20 test packages that can reasonably be installed at the same time. Also feels like an arbitrary number to introduce a "lists all packages even if there are more N" test case. Open to feedback on testing. ## Before 23 installed integrations, only 20 in UI   ## After 23 installed integrations, 23 in UI 
This commit is contained in:
parent
62116bfe22
commit
e7209f52a9
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ import type { Logger } from '@kbn/core/server';
|
|||
import {
|
||||
installationStatuses,
|
||||
PACKAGE_POLICY_SAVED_OBJECT_TYPE,
|
||||
SO_SEARCH_LIMIT,
|
||||
} from '../../../../common/constants';
|
||||
import { isPackageLimited } from '../../../../common/services';
|
||||
import type {
|
||||
|
@ -137,6 +138,7 @@ export async function getPackageSavedObjects(
|
|||
return savedObjectsClient.find<Installation>({
|
||||
...(options || {}),
|
||||
type: PACKAGES_SAVED_OBJECT_TYPE,
|
||||
perPage: SO_SEARCH_LIMIT,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue