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

Pass routing parameter when executing delete by query #96

Merged
merged 3 commits into from
Feb 23, 2023

Conversation

mvelimir
Copy link
Member

No description provided.

): ElasticRequest[A, DeleteByQuery] =
request match {
case Map(r, mapper) => Map(withRouting(r, routing), mapper)
case r: DeleteByQueryRequest => r.copy(routing = Some(routing))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put Map at the bottom? Not sure about consistency with existing code?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is the order for all routing and refresh instances, so we would have to change it there too

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mea culpa 🙋‍♂️

@drmarjanovic drmarjanovic merged commit 8264f47 into main Feb 23, 2023
@drmarjanovic drmarjanovic deleted the fix-delete-by-query branch February 23, 2023 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants