-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enterprise Search] Fix broken indices page when an index with alias is closed #158871
[Enterprise Search] Fix broken indices page when an index with alias is closed #158871
Conversation
I didn't add an additional filter to remove closed index from indexData: kibana/x-pack/plugins/enterprise_search/server/lib/indices/utils/get_index_data.ts Line 125 in 432a5d7
To do that we might need filter each index and check if it's closed, which IMO is an another overhead. Also I figured it would be fine as indexData already has hidden indices data even though kibana/x-pack/plugins/enterprise_search/server/lib/indices/utils/get_index_data.ts Line 125 in 432a5d7
And I tested this changes in UI. The indices page doesn't show closed index. |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
…is closed (elastic#158871) ## Summary Fix indices page when an index is closed. Added a check to see if the index is closed by checking the flag `index.settings.index.verified_before_close` is set to true ### Screen Recording https://github.com/elastic/kibana/assets/55930906/f818b92d-8947-4764-aed9-a8a191cba2e0 Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 7c8ddd0)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…alias is closed (#158871) (#158938) # Backport This will backport the following commits from `main` to `8.8`: - [[Enterprise Search] Fix broken indices page when an index with alias is closed (#158871)](#158871) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Saarika Bhasi","email":"55930906+saarikabhasi@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-06-02T14:57:42Z","message":"[Enterprise Search] Fix broken indices page when an index with alias is closed (#158871)\n\n## Summary\r\n\r\nFix indices page when an index is closed. Added a check to see if the\r\nindex is closed by checking the flag\r\n`index.settings.index.verified_before_close` is set to true\r\n\r\n### Screen Recording\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/55930906/f818b92d-8947-4764-aed9-a8a191cba2e0\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"7c8ddd0ec54442f3556141c9d8897b28c1539e70","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.9.0","v8.8.1"],"number":158871,"url":"#158871 Search] Fix broken indices page when an index with alias is closed (#158871)\n\n## Summary\r\n\r\nFix indices page when an index is closed. Added a check to see if the\r\nindex is closed by checking the flag\r\n`index.settings.index.verified_before_close` is set to true\r\n\r\n### Screen Recording\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/55930906/f818b92d-8947-4764-aed9-a8a191cba2e0\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"7c8ddd0ec54442f3556141c9d8897b28c1539e70"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"#158871 Search] Fix broken indices page when an index with alias is closed (#158871)\n\n## Summary\r\n\r\nFix indices page when an index is closed. Added a check to see if the\r\nindex is closed by checking the flag\r\n`index.settings.index.verified_before_close` is set to true\r\n\r\n### Screen Recording\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/55930906/f818b92d-8947-4764-aed9-a8a191cba2e0\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"7c8ddd0ec54442f3556141c9d8897b28c1539e70"}},{"branch":"8.8","label":"v8.8.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Saarika Bhasi <55930906+saarikabhasi@users.noreply.github.com>
…is closed (elastic#158871) ## Summary Fix indices page when an index is closed. Added a check to see if the index is closed by checking the flag `index.settings.index.verified_before_close` is set to true ### Screen Recording https://github.com/elastic/kibana/assets/55930906/f818b92d-8947-4764-aed9-a8a191cba2e0 Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
…is closed (elastic#158871) ## Summary Fix indices page when an index is closed. Added a check to see if the index is closed by checking the flag `index.settings.index.verified_before_close` is set to true ### Screen Recording https://github.com/elastic/kibana/assets/55930906/f818b92d-8947-4764-aed9-a8a191cba2e0 Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
Fix indices page when an index is closed. Added a check to see if the index is closed by checking the flag
index.settings.index.verified_before_close
is set to trueScreen Recording
Fix.broken.indices.page.when.a.index.is.closed.mov