hastic-zzz / hastic-grafana-app

Hastic data management server for labeling patterns and anomalies in Grafana
https://hastic.io
GNU General Public License v3.0
179 stars 18 forks source link

Images in webhooks don't have detections #387

Closed VargBurz closed 4 years ago

VargBurz commented 4 years ago

Example of image from a webhook:

notification

Expected behavior: there are detections in the image. Actual behavior: there is no detections.

VargBurz commented 4 years ago

The problem is this.onRender(); in onHasticDatasourceChange() method of GraphCtrl. If this.onRender(); is removed, problem will be solved, but it will cause another problem: https://github.com/hastic/hastic-grafana-app/pull/383

VargBurz commented 4 years ago

It's not directly related to this.onRender() method, because segments aren't fetched before onRender() ends. This method runs only once in both cases.