Watcher UI: A watch can be marked with an error status despite having executed fine #22209
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Watcher
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Kibana version: 6.3.2
Elasticsearch version: 6.3.2
Describe the bug:
A watch action that has once failed in the past, can be forever marked as a failure/error in the UI, unless that error goes away. The reason for this is the fields that are being checked to mark sth as a failure.
Steps to reproduce:
Run these in the dev tools console
To understand the issue, check the execute watch API calls. The first one will actually try to send an email, but fails because no email server is listening on the remote port. Thus the action is marked as
successful: false
.The second watch execution is just not trying to send an email because the condition was not met. The last execution thus is now older than the last run of the watch, but still has the information that this particular execution has failed - which seems to mark the watch as error in the UI.
Expected behavior:
The watch should not be marked as an error in the UI, because the last run was just as expected. And the entry that seems to be checked seems to be older.
Screenshots (if relevant):
When checking the watcher UI
when directly checking the watch history
Note: We can also talk about fixing the status data structure if you think there is a better way to solve this. Ping me for any discussion.
The text was updated successfully, but these errors were encountered: