kibana/packages/core
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
..
analytics Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
application Upgraded EUI to v76.0.0 (#152506) 2023-03-14 14:27:40 -05:00
apps Upgrade EUI to v77.0.0 (#154379) 2023-04-10 17:06:26 -05:00
base implement "plugin" package type (#149370) 2023-01-30 10:47:53 -07:00
capabilities Capability resolver: minor optimizations (#152784) 2023-03-09 08:37:42 +01:00
chrome Add EuiSkipLink to Kibana header (#153810) 2023-03-28 11:46:47 -07:00
config/core-config-server-internal Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
custom-branding [Custom Branding] Fetch custom branding on unauthenticated pages (#149207) 2023-01-31 10:01:35 +01:00
deprecations Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
doc-links Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
elasticsearch [Elasticsearch] Redact logs from known APIs (#153049) 2023-03-18 10:50:09 +01:00
environment Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
execution-context Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
fatal-errors Upgraded EUI to v76.0.0 (#152506) 2023-03-14 14:27:40 -05:00
http [HTTP] Update versioned router to follow spec (#154823) 2023-04-17 02:27:59 -07:00
i18n [Unified search] Fixes the comma delimeter copy paste on multifields (#153772) 2023-03-29 11:00:15 +03:00
injected-metadata [Custom Branding] Fetch custom branding on unauthenticated pages (#149207) 2023-01-31 10:01:35 +01:00
integrations Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
lifecycle Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
logging Generate kbn/ecs with ECS 8.6.1 (#151642) 2023-02-21 15:02:38 +01:00
metrics Adds support for event loop utilization to the core metrics service (#153717) 2023-03-29 14:35:55 -07:00
mount-utils Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
node [ZDT] Kibana as migration runner (#152813) 2023-03-08 10:51:06 -07:00
notifications [Discover] Inline data fetching errors (#152311) 2023-03-20 20:48:43 -03:00
overlays Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
plugins [HTTP] Expose versioned router (#153858) 2023-04-03 09:13:12 -07:00
preboot Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
rendering [Custom Branding] Add custom branding settings to Global settings (#150080) 2023-02-16 08:13:42 +01:00
root [ZDT] Kibana as migration runner (#152813) 2023-03-08 10:51:06 -07:00
saved-objects [getSavedObjectsCount] Use soClient instead of .kibana searches (#155035) 2023-04-18 10:15:35 +02:00
status Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
test-helpers Introduce the SO versionModel API (#150149) 2023-02-07 09:14:26 -07:00
theme Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
ui-settings [SharedUX] Export timezone list from Core UI (#154742) 2023-04-17 10:01:23 -07:00
usage-data Support generating legacy URL aliases for objects that change IDs during import. (#149021) 2023-04-03 10:54:23 +02:00