grafana/pkg/services/ngalert/store
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
..
admin_configuration.go Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
alert_rule.go Alerting: Refactor API endpoints for fetching alert rules (#37055) 2021-07-22 09:53:14 +03:00
alertmanager.go Alerting: modify DB table, accessors and migration to restrict org access (#37414) 2021-08-12 16:04:09 +03:00
database.go [Alerting]: namespace fixes (#34470) 2021-05-20 15:49:33 +03:00
instance_database_test.go Alerting/Chore: Move tests from tests package (#34059) 2021-05-13 10:05:33 -04:00
instance_database.go Alerting: automatically remove stale alerting states (#36767) 2021-07-26 18:12:04 +02:00