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

[7.8] Allow delete and index actions with a document ID (#12606) #18309

Merged
merged 1 commit into from
May 6, 2020

Conversation

ycombinator
Copy link
Contributor

Backports the following commits to 7.8:

* Add `op_type` meta key for delete and index operations with a document ID.

* Add note on why `obj` can be nil.

* Refactor and extract consts.

* Don't include metadata prefix in key.

* Stop appending `nil` else it ends up in the body.

* Error when trying to delete with no _id.

* Remove incorrect detail in comment.

* Add unit test for new op_type meta key.

* No longer required.

* Return error to caller.

* Fail event if op_type is no string.

* Use consts in error.

* Replace assert with require.

* Fail instead of panic.

* Change missed assert calls to require.

* Simplify GetMetaStringValue.

* Ignore err as key may not exist.
@ycombinator ycombinator added [zube]: In Review backport Team:Services (Deprecated) Label for the former Integrations-Services team labels May 6, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 6, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@ycombinator ycombinator merged commit 63bc303 into elastic:7.8 May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport needs_team Indicates that the issue/PR needs a Team:* label Team:Services (Deprecated) Label for the former Integrations-Services team [zube]: Done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants