Skip to content
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

Merged
merged 9 commits into from
Jan 16, 2025

Conversation

jedrazb
Copy link
Member

@jedrazb jedrazb commented Jan 15, 2025

Changes

Add hard URL param to DELETE _connector/{id} endpoint.

If:

  • hard=true connector doc is hard-deleted from connector index
  • hard=false (default) connector doc is marked as deleted with a flag, doc stays in the index

Added 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.

Copy link
Contributor

Documentation preview:

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-eng (Team:SearchOrg)

@elasticsearchmachine elasticsearchmachine added the Team:SearchOrg Meta label for the Search Org (Enterprise Search) label Jan 15, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-extract-and-transform (Team:Search - Extract & Transform)

@elasticsearchmachine
Copy link
Collaborator

Hi @jedrazb, I've created a changelog YAML for you.

Copy link
Contributor

@navarone-feekery navarone-feekery left a 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"]
Copy link
Member Author

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

@jedrazb jedrazb merged commit 0317c1c into elastic:main Jan 16, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>feature :SearchOrg/Extract&Transform Label for the Search E&T team Team:Search - Extract & Transform Team:SearchOrg Meta label for the Search Org (Enterprise Search) v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants