-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Import correct exception identifier #161935
[Enterprise Search] Import correct exception identifier #161935
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! One nitpick :)
x-pack/plugins/enterprise_search/server/lib/indices/delete_access_control_index.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
💚 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: |
## Summary The access control deletion function was importing the wrong `isIndexNotFoundException` to identify when an index doesn't exist. This would cause index deletion to fail if a search index is missing an access control index. (cherry picked from commit 3077919)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
… (#161966) # Backport This will backport the following commits from `main` to `8.9`: - [[Enterprise Search] Import correct exception identifier (#161935)](#161935) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Navarone Feekery","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-14T12:53:56Z","message":"[Enterprise Search] Import correct exception identifier (#161935)\n\n## Summary\r\n\r\nThe access control deletion function was importing the wrong\r\n`isIndexNotFoundException` to identify when an index doesn't exist. This\r\nwould cause index deletion to fail if a search index is missing an\r\naccess control index.","sha":"3077919bb85bac809d09d55401289145a7e96284","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","auto-backport","Team:EnterpriseSearch","v8.9.0"],"number":161935,"url":"https://github.com/elastic/kibana/pull/161935","mergeCommit":{"message":"[Enterprise Search] Import correct exception identifier (#161935)\n\n## Summary\r\n\r\nThe access control deletion function was importing the wrong\r\n`isIndexNotFoundException` to identify when an index doesn't exist. This\r\nwould cause index deletion to fail if a search index is missing an\r\naccess control index.","sha":"3077919bb85bac809d09d55401289145a7e96284"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: Navarone Feekery <[email protected]>
Summary
The access control deletion function was importing the wrong
isIndexNotFoundException
to identify when an index doesn't exist. This would cause index deletion to fail if a search index is missing an access control index.