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

Make 0 as invalid value for min_children in has_child query #33073

Closed
wants to merge 3 commits into from

Conversation

joshfullmer
Copy link

Related to issue #32949

@elasticcla
Copy link

Hi @joshfullmer, we have found your signature in our records, but it seems like you have signed with a different e-mail than the one used in yout Git commit. Can you please add both of these e-mails into your Github profile (they can be hidden), so we can match your e-mails to your Github profile?

@joshfullmer
Copy link
Author

Done. I had recently changed my GitHub primary email, but neglected to change my commit email address.

@colings86 colings86 added the :Search/Search Search-related issues that do not fall into other categories label Aug 23, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@mayya-sharipova
Copy link
Contributor

@elasticmachine test this please

1 similar comment
@mayya-sharipova
Copy link
Contributor

@elasticmachine test this please

Copy link
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

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

@joshfullmer Thank you for your PR. Sorry that it got so late to review it.
Overall well, written, just a small comment about the error message.

Would you please be able to rebase your PR against upstream master so that we can make testing pass (just merge upstream master to your branch).

if (minChildren < 0) {
throw new IllegalArgumentException("[" + NAME + "] requires non-negative 'min_children' field");
if (minChildren < 1) {
throw new IllegalArgumentException("[" + NAME + "] requires non-negative, non-zero 'min_children' field");
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of "non-negative, non-zero", we can just use "positive"

@mayya-sharipova
Copy link
Contributor

@joshfullmer Would you like to continue working on this? I think just a small rephrasing is left. If not, I can finish it myself, and merge your commit.

@cbuescher
Copy link
Member

@mayya-sharipova I just merged in master in case you want to kick of a new CI run. Should we get this in and do the rephrasing afterwards?

@mayya-sharipova
Copy link
Contributor

@elasticmachine test this please

1 similar comment
@mayya-sharipova
Copy link
Contributor

@elasticmachine test this please

@mayya-sharipova
Copy link
Contributor

I am closing this PR because on inactivity, and there is still more work that needs to be done addressing failures in ChildQuerySearchIT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories v7.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants