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

Remove special handling for _all in nodes info #28971

Merged
merged 3 commits into from
Mar 9, 2018

Conversation

jasontedor
Copy link
Member

@jasontedor jasontedor commented Mar 9, 2018

Today when requesting _all we return all nodes regardless of what other node qualifiers are in the request. This is contrary to how the remainder of the API behaves which acts as additive and subtractive based on the qualifiers and their ordering. It is also contrary to how the wildcard * behaves. This commit removes the special handling for _all so that it behaves identical to the wildcard *.

Relates #28797

Today when requesting _all we return all nodes regardless of what other
node qualifiers are in the request. This is contrary to how the
remainder of the API behaves which acts as additive and subtractive
based on the qualifiers and their ordering. It is also contrary to how
the wildcard * behaves. This commit removes the special handling for
_all so that it behaves identical to the wildcard *.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

}
return nodes;
} else {
{
Copy link
Member Author

Choose a reason for hiding this comment

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

This is deliberate so as to not change the indentation in this pull request so that the change is easier to review. A separate change can go in that removes the indentation and is a formatting-only change.

Copy link
Contributor

@bleskes bleskes left a comment

Choose a reason for hiding this comment

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

LGTM, though we should really visit how we treat the node.attr:false to mean remove everything that doesn't have that attribute while anything else is additive.

@jasontedor jasontedor merged commit 950c436 into elastic:master Mar 9, 2018
jasontedor added a commit that referenced this pull request Mar 9, 2018
Today when requesting _all we return all nodes regardless of what other
node qualifiers are in the request. This is contrary to how the
remainder of the API behaves which acts as additive and subtractive
based on the qualifiers and their ordering. It is also contrary to how
the wildcard * behaves. This commit removes the special handling for
_all so that it behaves identical to the wildcard *.

Relates #28971
jasontedor added a commit that referenced this pull request Mar 9, 2018
Today when requesting _all we return all nodes regardless of what other
node qualifiers are in the request. This is contrary to how the
remainder of the API behaves which acts as additive and subtractive
based on the qualifiers and their ordering. It is also contrary to how
the wildcard * behaves. This commit removes the special handling for
_all so that it behaves identical to the wildcard *.

Relates #28971
jasontedor added a commit that referenced this pull request Mar 9, 2018
Today when requesting _all we return all nodes regardless of what other
node qualifiers are in the request. This is contrary to how the
remainder of the API behaves which acts as additive and subtractive
based on the qualifiers and their ordering. It is also contrary to how
the wildcard * behaves. This commit removes the special handling for
_all so that it behaves identical to the wildcard *.

Relates #28971
@jasontedor jasontedor removed the v5.6.9 label Mar 9, 2018
@jasontedor jasontedor deleted the discovery-nodes-all branch March 9, 2018 23:36
@jasontedor
Copy link
Member Author

Thanks @bleskes.

@jasontedor
Copy link
Member Author

[T]hough we should really visit how we treat the node.attr:false to mean remove everything that doesn't have that attribute while anything else is additive.

I agree, yet that is a completely separate matter with backwards compatibility implications.

sebasjm pushed a commit to sebasjm/elasticsearch that referenced this pull request Mar 10, 2018
Today when requesting _all we return all nodes regardless of what other
node qualifiers are in the request. This is contrary to how the
remainder of the API behaves which acts as additive and subtractive
based on the qualifiers and their ordering. It is also contrary to how
the wildcard * behaves. This commit removes the special handling for
_all so that it behaves identical to the wildcard *.

Relates elastic#28971
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants