Skip to content

Conversation

@martijnvg
Copy link
Member

Replaces querying .watches index with using the watcher get api where possible.
These cases queried a specific watch by id and then checked if the count is 1 and
some properties of the actual watch. This can be replaced by just using the get
watch api.

Relates to #62501

Replaces querying .watches index with using the watcher get api where possible.
These cases queried a specific watch by id and then checked if the count is 1 and
some properties of the actual watch. This can be replaced by just using the get
watch api.

Relates to elastic#62501
@martijnvg martijnvg added >test Issues or PRs that are addressing/adding tests :Data Management/Watcher v8.0.0 v7.11.0 labels Oct 27, 2020
@martijnvg martijnvg requested a review from jakelandis October 27, 2020 10:07

- match: { status.state.active : false }

- do:
Copy link
Member Author

Choose a reason for hiding this comment

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

These test already made the corresponding get watch api calls,
so only need to remove the search api calls here.

Copy link
Contributor

@jakelandis jakelandis 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 fixing this!

@martijnvg martijnvg merged commit ed95aae into elastic:master Oct 28, 2020
martijnvg added a commit to martijnvg/elasticsearch that referenced this pull request Oct 28, 2020
Replaces querying .watches index with using the watcher get api where possible.
These cases queried a specific watch by id and then checked if the count is 1 and
some properties of the actual watch. This can be replaced by just using the get
watch api.

Relates to elastic#62501
martijnvg added a commit that referenced this pull request Oct 28, 2020
Backport of #64199 to 7.x branch.

Replaces querying .watches index with using the watcher get api where possible.
These cases queried a specific watch by id and then checked if the count is 1 and
some properties of the actual watch. This can be replaced by just using the get
watch api.

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

Labels

:Data Management/Watcher >test Issues or PRs that are addressing/adding tests v7.11.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants