-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[Connectors] Removing index name should not remove connector #183833
Merged
jedrazb
merged 3 commits into
elastic:main
from
jedrazb:connector-api-deleting-index-should-not-delete-connector
May 21, 2024
Merged
[Connectors] Removing index name should not remove connector #183833
jedrazb
merged 3 commits into
elastic:main
from
jedrazb:connector-api-deleting-index-should-not-delete-connector
May 21, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jedrazb
added
release_note:skip
Skip the PR/issue when compiling release notes
v8.14.0
v8.15.0
labels
May 20, 2024
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
sphilipse
approved these changes
May 21, 2024
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
May 21, 2024
…#183833) In `Search indices` table, if you delete an index with a connector attached to it, it deletes both of them. This was the normally accepted behaviour but with 8.13 we decouple the connector and index. Ideally deleting and index should only delete index and not touch connector attached to it. Similar to the behaviour on `Connectors` table. The connector is not deleted, instead the referenced (deleted) index is detached from connector so that user gets the warning that they need to reconfigure the index once they navigate to connectors overview. We are still removing api keys and connector secrets associated with the deleted index. They need to be regenerated in the connector configuration tab. (cherry picked from commit cb12772)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
kibanamachine
added a commit
that referenced
this pull request
May 21, 2024
…183833) (#183913) # Backport This will backport the following commits from `main` to `8.14`: - [[Connectors] Removing index name should not remove connector (#183833)](#183833) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jedr Blaszyk","email":"jedrazb@gmail.com"},"sourceCommit":{"committedDate":"2024-05-21T12:50:21Z","message":"[Connectors] Removing index name should not remove connector (#183833)\n\nIn `Search indices` table, if you delete an index with a connector\r\nattached to it, it deletes both of them.\r\nThis was the normally accepted behaviour but with 8.13 we decouple the\r\nconnector and index.\r\n\r\nIdeally deleting and index should only delete index and not touch\r\nconnector attached to it. Similar to the behaviour on `Connectors`\r\ntable.\r\n\r\nThe connector is not deleted, instead the referenced (deleted) index is\r\ndetached from connector so that user gets the warning that they need to\r\nreconfigure the index once they navigate to connectors overview.\r\n\r\nWe are still removing api keys and connector secrets associated with the\r\ndeleted index. They need to be regenerated in the connector\r\nconfiguration tab.","sha":"cb127727b420f0a5fd19314b67683b0e045d2f5c","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.14.0","v8.15.0"],"title":"[Connectors] Removing index name should not remove connector","number":183833,"url":"#183833 Removing index name should not remove connector (#183833)\n\nIn `Search indices` table, if you delete an index with a connector\r\nattached to it, it deletes both of them.\r\nThis was the normally accepted behaviour but with 8.13 we decouple the\r\nconnector and index.\r\n\r\nIdeally deleting and index should only delete index and not touch\r\nconnector attached to it. Similar to the behaviour on `Connectors`\r\ntable.\r\n\r\nThe connector is not deleted, instead the referenced (deleted) index is\r\ndetached from connector so that user gets the warning that they need to\r\nreconfigure the index once they navigate to connectors overview.\r\n\r\nWe are still removing api keys and connector secrets associated with the\r\ndeleted index. They need to be regenerated in the connector\r\nconfiguration tab.","sha":"cb127727b420f0a5fd19314b67683b0e045d2f5c"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"#183833 Removing index name should not remove connector (#183833)\n\nIn `Search indices` table, if you delete an index with a connector\r\nattached to it, it deletes both of them.\r\nThis was the normally accepted behaviour but with 8.13 we decouple the\r\nconnector and index.\r\n\r\nIdeally deleting and index should only delete index and not touch\r\nconnector attached to it. Similar to the behaviour on `Connectors`\r\ntable.\r\n\r\nThe connector is not deleted, instead the referenced (deleted) index is\r\ndetached from connector so that user gets the warning that they need to\r\nreconfigure the index once they navigate to connectors overview.\r\n\r\nWe are still removing api keys and connector secrets associated with the\r\ndeleted index. They need to be regenerated in the connector\r\nconfiguration tab.","sha":"cb127727b420f0a5fd19314b67683b0e045d2f5c"}}]}] BACKPORT--> Co-authored-by: Jedr Blaszyk <jedrazb@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
In
Search indices
table, if you delete an index with a connector attached to it, it deletes both of them.This was the normally accepted behaviour but with 8.13 we decouple the connector and index.
Ideally deleting and index should only delete index and not touch connector attached to it. Similar to the behaviour on
Connectors
table.The connector is not deleted, instead the referenced (deleted) index is detached from connector so that user gets the warning that they need to reconfigure the index once they navigate to connectors overview.
We are still removing api keys and connector secrets associated with the deleted index. They need to be regenerated in the connector configuration tab.
Screenshot
deleteindexnoconnector.mov