[Index Management] Remove _cat/indices API from server code#122867
[Index Management] Remove _cat/indices API from server code#122867yuliacech merged 13 commits intoelastic:mainfrom
_cat/indices API from server code#122867Conversation
…ndex health and status too
|
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
|
@elasticmachine merge upstream |
sabarasaba
left a comment
There was a problem hiding this comment.
Thanks for fixing this @yuliacech! I've tested this using yarn es source and couldn't find any regressions introduced by these changes.
The only thing I found was unrelated, and its that we show the manage index actions dropdown to users without checking for permissions first. For example, all system indices actions are not allowed for the superuser role and fail with a 403 error. I've created the following issue for tracking this #123446
| primary: indexData.settings?.index?.number_of_shards, | ||
| replica: indexData.settings?.index?.number_of_replicas, | ||
| documents: indexStats?.total?.docs?.count ?? 0, | ||
| size: new ByteSizeValue(indexStats?.total?.store?.size_in_bytes ?? 0).toString(), |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Any counts in public APIs
History
To update your PR or re-run it, just comment with: |
💔 Backport failedThe pull request could not be backported due to the following error: How to fixRe-run the backport manually: Questions ?Please refer to the Backport tool documentation |
…c#122867) * [IM] Replace Cat Indices API with Indices Stats API that now return index health and status too * [IM] Fixed types and updated how primary and replica shards info is calculated * [IM] Fixed primary and replica numbers and added server side tests * [IM] Fixed flaky api integration test * [Index Management] Updated `filter_path` to include necessary index properties * [ILM] Updated snapshots for extend index management tests * [IM] Made fetch indices call work with indices missing in stats object * [IM] Updated the comment about response size Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Fixes #57286
Fixes #90565 (skipped api integration test)
Summary
This PR refactors server side code of indices list route so that it doesn't rely on
_cat/indicesAPI. There should not be any visual or functional regressions in the Indices tab of Index Management.How to test
Note: We need to wait until elastic/elasticsearch#81954 is in the ES snapshot build for CI tests to pass and to be able to run
yarn es snapshotand test locally.yarn es snapshotyarn start_docrequest a couple of timesCheck that index size and docs number is updated in the table.