grafana/pkg/services/ngalert
Sofia Papagiannaki 04d5dcb7c8
Alerting: modify DB table, accessors and migration to restrict org access (#37414)
* Alerting: modify table and accessors to limit org access appropriately

* Update migration to create multiple Alertmanager configs

* Apply suggestions from code review

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

* replace mg.ClearMigrationEntry()

mg.ClearMigrationEntry() would create a new session.
This commit introduces a new migration for clearing an entry from migration log for replacing  mg.ClearMigrationEntry() so that all dashboard alert migration operations will run inside the same transaction.
It adds also `SkipMigrationLog()` in Migrator interface for skipping adding an entry in the migration_log.

Co-authored-by: gotjosh <josue@grafana.com>
2021-08-12 16:04:09 +03:00
..
api Alerting: modify DB table, accessors and migration to restrict org access (#37414) 2021-08-12 16:04:09 +03:00
eval Expand the value of math and reduce expressions in annotations and labels (#36611) 2021-07-15 13:10:56 +01:00
logging Alerting: Allow the notifier to log (#34232) 2021-05-17 18:06:47 +01:00
metrics actually register metrics this time (#34444) 2021-05-19 22:09:12 +02:00
models Alerting: modify DB table, accessors and migration to restrict org access (#37414) 2021-08-12 16:04:09 +03:00
notifier Alerting: modify DB table, accessors and migration to restrict org access (#37414) 2021-08-12 16:04:09 +03:00
schedule Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
sender Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
state NGAlert: Send resolve signal to alertmanager on alerting -> Normal (#37363) 2021-07-29 20:29:17 +02:00
store Alerting: modify DB table, accessors and migration to restrict org access (#37414) 2021-08-12 16:04:09 +03:00
tests [Alerting]: namespace fixes (#34470) 2021-05-20 15:49:33 +03:00
ngalert.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00