-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[Connector API] Support hard deletes with new URL param in delete endpoint #120200
Conversation
Documentation preview: |
Pinging @elastic/search-eng (Team:SearchOrg) |
Pinging @elastic/search-extract-and-transform (Team:Search - Extract & Transform) |
Hi @jedrazb, I've created a changelog YAML for you. |
...rest/src/yamlRestTest/resources/rest-api-spec/test/entsearch/connector/20_connector_list.yml
Outdated
Show resolved
Hide resolved
…lasticsearch into connector-api-add-hard-deletes
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!
@@ -280,9 +280,7 @@ setup: | |||
|
|||
--- | |||
"List Connectors - Soft deleted connectors / no deleted": | |||
- requires: | |||
cluster_features: ["connector_soft_deletes"] |
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.
we actually don't have this feature, I ended up deleting this 90862f2
Changes
Add
hard
URL param toDELETE _connector/{id}
endpoint.If:
hard=true
connector doc is hard-deleted from connector indexhard=false
(default) connector doc is marked as deleted with a flag, doc stays in the indexAdded unit tests and yaml e2e tests.
Remove unused wire serialisation code from the delete action, use
localOnly()
as the request is always executed on the node receiving the request.