opendistro-for-elasticsearch / anomaly-detection-kibana-plugin

A Kibana plugin providing visualizations for anomaly detection in Open Distro.
https://opendistro.github.io/
Apache License 2.0
44 stars 18 forks source link

Fix dashboard loading state and empty state logic #373

Closed ohltyler closed 3 years ago

ohltyler commented 3 years ago

Issue #, if available:

Description of changes:

This PR fixes 2 issues:

  1. The loading state, which would occasionally flash an incorrect empty state while the detectors are being retrieved from ES (issue #304).
  2. The empty state, which was not showing up when no real-time detectors existed, but historical detectors did (issue #372).

Confirmed all UT & IT pass.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.