grafana/pkg/services/ngalert/provisioning
Alexander Weaver 60ec10566f
Extract Route validation from serialization methods so it can be re-used (#47649)
* Extract validation and reject invalid policies

* Validation in dedicated file

* Tests for validation

* Extract root route validation

* Update call and drop TODO

* empty commit to kick actions

* Normalization should be idempotent

* Cleaner representation of validation errors, chain errors properly

* Make internal validate unexported

* Fix missed rename

* Genericize error message

* Improve method names

* Rebase, fix

* Update asserts
2022-04-27 15:15:41 -05:00
..
contactpoints_test.go Indicate whether routes are provisioned when GETting Alertmanager configuration (#47857) 2022-04-22 11:57:56 -05:00
contactpoints.go Drop ProvenanceOrgAdapter and build into store API instead (#48137) 2022-04-26 10:30:57 -05:00
notification_policies_test.go Extract Route validation from serialization methods so it can be re-used (#47649) 2022-04-27 15:15:41 -05:00
notification_policies.go Extract Route validation from serialization methods so it can be re-used (#47649) 2022-04-27 15:15:41 -05:00
persist.go Drop ProvenanceOrgAdapter and build into store API instead (#48137) 2022-04-26 10:30:57 -05:00
serialize.go Alerting: Provisioning API - Notification Policies (#46755) 2022-04-05 16:48:51 -05:00
testing.go Drop ProvenanceOrgAdapter and build into store API instead (#48137) 2022-04-26 10:30:57 -05:00
validate.go Extract Route validation from serialization methods so it can be re-used (#47649) 2022-04-27 15:15:41 -05:00