grafana/pkg/services/ngalert/store
Yuriy Tseretyan 4d02f73e5f
Alerting: Persist rule position in the group (#50051)
Migrations:
* add a new column alert_group_idx to alert_rule table
* add a new column alert_group_idx to alert_rule_version table
* re-index existing rules during migration

API:
* set group index on update. Use the natural order of items in  the array as group index
* sort rules in the group on GET
* update the version of all rules of all affected groups. This will make optimistic lock work in the case of multiple concurrent request touching the same groups.

UI:
* update UI to keep the order of alerts in a group
2022-06-22 10:52:46 -04:00
..
admin_configuration.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
alert_rule_test.go Alerting: Support for optimistic locking for alert rules (#50274) 2022-06-13 12:15:28 -04:00
alert_rule.go Alerting: Persist rule position in the group (#50051) 2022-06-22 10:52:46 -04:00
alertmanager_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
alertmanager.go Alerting: Provisioning API - Notification Policies (#46755) 2022-04-05 16:48:51 -05:00
database.go sqlstore: finish removing Find and SearchDashboards (#49347) 2022-05-24 09:24:55 -04:00
image_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
image.go Alerting: Add GetImages to ImageStore (#49717) 2022-05-30 09:26:16 +01:00
instance_database_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
instance_database.go Alerting: Add a "Reason" to Alert Instances to show underlying cause of state. (#49259) 2022-05-23 16:49:49 +08:00
org.go Alerting: create wrapper for Alertmanager to enable org level isolation (#37320) 2021-08-24 11:28:09 +01:00
provisioning_store_test.go Drop ProvenanceOrgAdapter and build into store API instead (#48137) 2022-04-26 10:30:57 -05:00
provisioning_store.go Drop ProvenanceOrgAdapter and build into store API instead (#48137) 2022-04-26 10:30:57 -05:00
testing.go Alerting: Add first Grafana reserved label grafana_folder (#50262) 2022-06-17 13:10:49 -04:00
transactions.go Alerting: Provisioning API - Notification Policies (#46755) 2022-04-05 16:48:51 -05:00