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

Watcher understands hidden expand wildcard value #65371

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

jaymode
Copy link
Member

@jaymode jaymode commented Nov 23, 2020

Watcher has a search template that stores indices options to be used as
part of a search during watch execution, but this was not updated to be
aware of hidden indices and the hidden expand_wildcards option. This
change makes use of the IndicesOptions#toXContent method in Watcher,
which already handles the new value. Additionally, the XContent parsing
is moved to the IndicesOptions class so that we will be less likely to
miss updating this in the future.

Closes #65148
Backport of #65332

Watcher has a search template that stores indices options to be used as
part of a search during watch execution, but this was not updated to be
aware of hidden indices and the `hidden` expand_wildcards option. This
change makes use of the `IndicesOptions#toXContent` method in Watcher,
which already handles the new value. Additionally, the XContent parsing
is moved to the IndicesOptions class so that we will be less likely to
miss updating this in the future.

Closes elastic#65148
Backport of elastic#65332
@jaymode jaymode merged commit 11163ee into elastic:7.x Nov 23, 2020
@jaymode jaymode deleted the indices_options_xcontent_watcher_7x branch November 23, 2020 16:23
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.

1 participant