Skip to content

Support multiple expand_wildcards #5317

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

Merged
merged 1 commit into from
Feb 11, 2021
Merged

Conversation

stevejgordon
Copy link
Contributor

Since 7.10.1 the watcher expand_wildcards property has accepted and returns an array for expanded_wildcards. This broke in our existing representation of IndicesOptions during deserialisation. This change is breaking but now supports either a single string value or an array in the JSON response.

I've added an additional test to run on 7.10.1 and later to PUT and GET a watch with multiple expand_wildcards.

I've updated existing tests to add the optional allow_no_indices property due to a regression in 7.10.1 and 7.10.2 which meant missing optional fields caused a validation error on the server. This ensures the tests can run against any 7.10.x version.

Since 7.10.1 the watcher expand_wildcards property has accepted and
returns an array for expanded_wildcards. This broke in our existing
representation of IndicesOptions during deserialisation. This change is
breaking but now supports either a single string value or an array in
the JSON response.
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for catching this!

@stevejgordon stevejgordon merged commit 35c12cd into 7.11 Feb 11, 2021
@stevejgordon stevejgordon deleted the feature/watcher-response branch February 11, 2021 10:42
github-actions bot pushed a commit that referenced this pull request Feb 11, 2021
Since 7.10.1 the watcher expand_wildcards property has accepted and
returns an array for expanded_wildcards. This broke in our existing
representation of IndicesOptions during deserialisation. This change is
breaking but now supports either a single string value or an array in
the JSON response.
github-actions bot pushed a commit that referenced this pull request Feb 11, 2021
Since 7.10.1 the watcher expand_wildcards property has accepted and
returns an array for expanded_wildcards. This broke in our existing
representation of IndicesOptions during deserialisation. This change is
breaking but now supports either a single string value or an array in
the JSON response.
stevejgordon added a commit that referenced this pull request Feb 11, 2021
Since 7.10.1 the watcher expand_wildcards property has accepted and
returns an array for expanded_wildcards. This broke in our existing
representation of IndicesOptions during deserialisation. This change is
breaking but now supports either a single string value or an array in
the JSON response.

Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
stevejgordon added a commit that referenced this pull request Feb 11, 2021
Since 7.10.1 the watcher expand_wildcards property has accepted and
returns an array for expanded_wildcards. This broke in our existing
representation of IndicesOptions during deserialisation. This change is
breaking but now supports either a single string value or an array in
the JSON response.
stevejgordon added a commit that referenced this pull request Feb 16, 2021
* Support multiple expand_wildcards (#5317)

Since 7.10.1 the watcher expand_wildcards property has accepted and
returns an array for expanded_wildcards. This broke in our existing
representation of IndicesOptions during deserialisation. This change is
breaking but now supports either a single string value or an array in
the JSON response.

* Fix up namespaces

Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
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.

2 participants