Skip to content

Use watcher get api instead of .watches index. (#64199)#64265

Merged
martijnvg merged 1 commit intoelastic:7.xfrom
martijnvg:backport_64199
Oct 28, 2020
Merged

Use watcher get api instead of .watches index. (#64199)#64265
martijnvg merged 1 commit intoelastic:7.xfrom
martijnvg:backport_64199

Conversation

@martijnvg
Copy link
Copy Markdown
Member

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

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
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Watcher)

@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Oct 28, 2020
@martijnvg martijnvg merged commit f26fbb8 into elastic:7.x Oct 28, 2020
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