kibana/packages/core/saved-objects
Alejandro Fernández Haro 823cc3f49b
[getSavedObjectsCount] Use soClient instead of .kibana searches (#155035)
## Summary

As part of #154888, we need to stop making direct requests to the index
`.kibana`, and use the SO Clients instead.

This PR changes the utility `getSavedObjectsCount` to use aggregations
in the SO client.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

I'm pointing to `main` because it's an improvement we needed anyway.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-04-18 10:15:35 +02:00
..
core-saved-objects-api-browser [Migrations] Add migrationVersion property to the Saved Objects API output (#154364) 2023-04-13 12:05:58 +02:00
core-saved-objects-api-server [Migrations] Add migrationVersion property to the Saved Objects API output (#154364) 2023-04-13 12:05:58 +02:00
core-saved-objects-api-server-internal [getSavedObjectsCount] Use soClient instead of .kibana searches (#155035) 2023-04-18 10:15:35 +02:00
core-saved-objects-api-server-mocks Support generating legacy URL aliases for objects that change IDs during import. (#149021) 2023-04-03 10:54:23 +02:00
core-saved-objects-base-server-internal [Migrations] Add migrationVersion property to the Saved Objects API output (#154364) 2023-04-13 12:05:58 +02:00
core-saved-objects-base-server-mocks Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
core-saved-objects-browser [Saved Objects] Browser-side client deprecation notice (#148979) 2023-01-18 04:03:23 -07:00
core-saved-objects-browser-internal [Saved Objects] Update the migrationVersion property to hold a plain string value (#150075) 2023-03-24 13:45:30 +01:00
core-saved-objects-browser-mocks [Saved Objects] Update the migrationVersion property to hold a plain string value (#150075) 2023-03-24 13:45:30 +01:00
core-saved-objects-common [Saved Objects] Update the migrationVersion property to hold a plain string value (#150075) 2023-03-24 13:45:30 +01:00
core-saved-objects-import-export-server-internal Support generating legacy URL aliases for objects that change IDs during import. (#149021) 2023-04-03 10:54:23 +02:00
core-saved-objects-import-export-server-mocks Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
core-saved-objects-migration-server-internal [Migrations] Remove migrationVersion mappings (#154711) 2023-04-17 09:53:22 +02:00
core-saved-objects-migration-server-mocks Bootstrap ZDT migration algorithm (#151282) 2023-02-27 13:36:16 +01:00
core-saved-objects-server [Migrations] Add migrationVersion property to the Saved Objects API output (#154364) 2023-04-13 12:05:58 +02:00
core-saved-objects-server-internal [Migrations] Add migrationVersion property to the Saved Objects API output (#154364) 2023-04-13 12:05:58 +02:00
core-saved-objects-server-mocks Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
core-saved-objects-utils-server [Saved Objects] Migrates authorization logic from repository to security extension (#148165) 2023-02-15 10:25:05 -05:00