Skip to content

Conversation

@jaymode
Copy link
Member

@jaymode jaymode commented Feb 28, 2020

This commit removes a TODO in the IndexNameExpressionResolver that
indicated the API should use a Set instead of a List. However, this
TODO was not completely correct since the ordering of arguments matters
due to negations when evaluating wildcards and since we also allow
a list of patterns like *,-foo,*, which would have a different
meaning even when using a Set with insertion ordering.

Relates #52788

This commit removes a TODO in the IndexNameExpressionResolver that
indicated the API should use a Set instead of a List. However, this
TODO was not completely correct since the ordering of arguments matters
due to negations when evaluating wildcards and since we also allow
a list of patterns like `*,-foo,*`, which would have a different
meaning even when using a Set with insertion ordering.

Relates elastic#52788
@jaymode jaymode added >non-issue :Core/Infra/Core Core issues without another label v8.0.0 v7.7.0 labels Feb 28, 2020
@jaymode jaymode requested a review from jpountz February 28, 2020 17:10
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Core)

@jaymode jaymode merged commit 66e64f3 into elastic:master Feb 28, 2020
@jaymode jaymode deleted the remove_index_expression_resolver_todo branch February 28, 2020 19:55
jaymode added a commit to jaymode/elasticsearch that referenced this pull request Feb 28, 2020
This commit removes a TODO in the IndexNameExpressionResolver that
indicated the API should use a Set instead of a List. However, this
TODO was not completely correct since the ordering of arguments matters
due to negations when evaluating wildcards and since we also allow
a list of patterns like `*,-foo,*`, which would have a different
meaning even when using a Set with insertion ordering.

Relates elastic#52788
jaymode added a commit that referenced this pull request Feb 28, 2020
This commit removes a TODO in the IndexNameExpressionResolver that
indicated the API should use a Set instead of a List. However, this
TODO was not completely correct since the ordering of arguments matters
due to negations when evaluating wildcards and since we also allow
a list of patterns like `*,-foo,*`, which would have a different
meaning even when using a Set with insertion ordering.

Relates #52788
Backport of #52963
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants