Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.8] [Enterprise Search] Search Apps. - fetch indices one-by-one (el…
…astic#156571) (elastic#156624) # Backport This will backport the following commits from `main` to `8.8`: - [[Enterprise Search] Search Apps. - fetch indices one-by-one (elastic#156571)](elastic#156571) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sloane Perrault","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-05-03T20:39:53Z","message":"[Enterprise Search] Search Apps. - fetch indices one-by-one (elastic#156571)\n\n## Summary\r\n\r\nfetches a search application's indices' stats one at a time.\r\n\r\nif even one index is not available the stats api returns an error[^1].\r\nwhile fetching them all together is probably more efficient we have to\r\nget them one-by-one just in case one isn't available.\r\n\r\n### Checklist\r\n\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n[^1]: <details><summary>stats errors response</summary>\r\n <pre>\r\n {\r\n \"error\": {\r\n \"root_cause\": [\r\n {\r\n \"type\": \"index_not_found_exception\",\r\n \"reason\": \"no such index [sloane-books-001]\",\r\n \"resource.type\": \"index_or_alias\",\r\n \"resource.id\": \"sloane-books-001\",\r\n \"index_uuid\": \"_na_\",\r\n \"index\": \"sloane-books-001\"\r\n }\r\n ],\r\n \"type\": \"index_not_found_exception\",\r\n \"reason\": \"no such index [sloane-books-001]\",\r\n \"resource.type\": \"index_or_alias\",\r\n \"resource.id\": \"sloane-books-001\",\r\n \"index_uuid\": \"_na_\",\r\n \"index\": \"sloane-books-001\"\r\n },\r\n \"status\": 404\r\n }\r\n </pre>\r\n</details>","sha":"23a45bde21b36be49a1174b9bde1fc340de67534","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.8.0","v8.9.0"],"number":156571,"url":"https://github.com/elastic/kibana/pull/156571","mergeCommit":{"message":"[Enterprise Search] Search Apps. - fetch indices one-by-one (elastic#156571)\n\n## Summary\r\n\r\nfetches a search application's indices' stats one at a time.\r\n\r\nif even one index is not available the stats api returns an error[^1].\r\nwhile fetching them all together is probably more efficient we have to\r\nget them one-by-one just in case one isn't available.\r\n\r\n### Checklist\r\n\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n[^1]: <details><summary>stats errors response</summary>\r\n <pre>\r\n {\r\n \"error\": {\r\n \"root_cause\": [\r\n {\r\n \"type\": \"index_not_found_exception\",\r\n \"reason\": \"no such index [sloane-books-001]\",\r\n \"resource.type\": \"index_or_alias\",\r\n \"resource.id\": \"sloane-books-001\",\r\n \"index_uuid\": \"_na_\",\r\n \"index\": \"sloane-books-001\"\r\n }\r\n ],\r\n \"type\": \"index_not_found_exception\",\r\n \"reason\": \"no such index [sloane-books-001]\",\r\n \"resource.type\": \"index_or_alias\",\r\n \"resource.id\": \"sloane-books-001\",\r\n \"index_uuid\": \"_na_\",\r\n \"index\": \"sloane-books-001\"\r\n },\r\n \"status\": 404\r\n }\r\n </pre>\r\n</details>","sha":"23a45bde21b36be49a1174b9bde1fc340de67534"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/156571","number":156571,"mergeCommit":{"message":"[Enterprise Search] Search Apps. - fetch indices one-by-one (elastic#156571)\n\n## Summary\r\n\r\nfetches a search application's indices' stats one at a time.\r\n\r\nif even one index is not available the stats api returns an error[^1].\r\nwhile fetching them all together is probably more efficient we have to\r\nget them one-by-one just in case one isn't available.\r\n\r\n### Checklist\r\n\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n[^1]: <details><summary>stats errors response</summary>\r\n <pre>\r\n {\r\n \"error\": {\r\n \"root_cause\": [\r\n {\r\n \"type\": \"index_not_found_exception\",\r\n \"reason\": \"no such index [sloane-books-001]\",\r\n \"resource.type\": \"index_or_alias\",\r\n \"resource.id\": \"sloane-books-001\",\r\n \"index_uuid\": \"_na_\",\r\n \"index\": \"sloane-books-001\"\r\n }\r\n ],\r\n \"type\": \"index_not_found_exception\",\r\n \"reason\": \"no such index [sloane-books-001]\",\r\n \"resource.type\": \"index_or_alias\",\r\n \"resource.id\": \"sloane-books-001\",\r\n \"index_uuid\": \"_na_\",\r\n \"index\": \"sloane-books-001\"\r\n },\r\n \"status\": 404\r\n }\r\n </pre>\r\n</details>","sha":"23a45bde21b36be49a1174b9bde1fc340de67534"}}]}] BACKPORT--> Co-authored-by: Sloane Perrault <[email protected]>
- Loading branch information