grafana/pkg/components
Marcus Efraimsson 71ffd1d108
Alerting: Fix image rendering and uploading timeout preventing to send alert notifications (#21536)
* svc alerting - use a shorter ctx to upload the img
This will prevent timeout on img upload to cancel the notifications from being sent

* components img uploader - pass the ctx to aws lib

* make webdavuploader use the ctx

* make azureblobuploader use the ctx

* rename uploadImage() to renderAndUploadImage()
for better clarity about what this method work

* Use timeout + 2s for plugin renderer (same as service and phantomjs)

* Make sure that original EvalContext is updated after render and upload

* Verify notification sent even if render or image upload times out

* fix lint

* fixes after review

Co-authored-by: Edouard Hur <3418467+hekmon@users.noreply.github.com>

Fixes #21018
2020-01-17 12:07:16 +01:00
..
apikeygen pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
dashdiffs pkg/components: Check errors (#19703) 2019-10-10 09:06:55 +02:00
dynmap Build: use golangci-lint as a make command (#17739) 2019-07-02 16:06:59 +03:00
gtime gtime: some code style refactoring (#17369) 2019-06-10 07:38:31 +02:00
imguploader Alerting: Fix image rendering and uploading timeout preventing to send alert notifications (#21536) 2020-01-17 12:07:16 +01:00
null backend: null.Float NaN -> null for json marshal (#18284) 2019-08-06 12:28:48 -04:00
securejsondata move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
simplejson tech: replace bmizerany/assert with stretchr/testify (#16625) 2019-04-17 10:25:58 +02:00