grafana/pkg/services/ngalert/store
Sofia Papagiannaki 87a70af7eb
[Alerting]: Fix updating rule group and add tests (#33074)
* [Alerting]: Fix updating rule group and add test

* Fix updating rule labels
* Set default values for rule no data and error states
if they are missing
* Add test for updating rule

* Test updating annotations

* Apply suggestions from code review

Co-authored-by: gotjosh <josue@grafana.com>

* add test for posting an unknown rule UID

* Fix alert rule validation and add tests

* Remove org id from PostableGrafanaRule

This field was not used; each rule gets the organisation of the user making
the rerquest

* Update pkg/tests/api/alerting/api_alertmanager_test.go

Co-authored-by: gotjosh <josue@grafana.com>
2021-04-21 17:22:58 +03:00
..
alert_rule.go [Alerting]: Fix updating rule group and add tests (#33074) 2021-04-21 17:22:58 +03:00
alertmanager.go [Alerting]: Alertmanager API implementation (#32174) 2021-03-31 23:00:56 +03:00
database_mig.go [Alerting]: Several modifications in alert rules (#32983) 2021-04-15 15:54:37 +03:00
database.go [Alerting]: Fix updating rule group and add tests (#33074) 2021-04-21 17:22:58 +03:00
instance_database.go Alerting: Persist alerts on evaluation and shutdown. Warm cache from DB on startup (#32576) 2021-04-02 08:11:33 -07:00