grafana/pkg/services/ngalert/migration
Matthew Jacobson 4b439b7f52
Alerting: In migration, fallback to '1s' for malformed min interval (#78614)
* Alerting: In migration, fallback to '1s' for malformed min interval

During legacy migration, when we encounter an alert datasource query 
with a min interval (interval field in the query model) that is not 
parseable, instead of failing the migration we fallback to a min interval 
of 1s and continue.

The reason for this is a bug in legacy alerting (existing for a few major 
versions) which allows arbitrary dashboard variables to be used as the 
min interval, even though those variables do not work and will cause 
the legacy alert to fail with `interval calculation failed: time: invalid 
duration`.
2023-11-24 11:27:44 -05:00
..
models Alerting: Handle custom dashboard permissions in migration service (#74504) 2023-10-12 18:12:40 -04:00
store FeatureToggles: Add context and and an explicit global check (#78081) 2023-11-14 12:50:27 -08:00
alert_rule_test.go Alerting: Handle custom dashboard permissions in migration service (#74504) 2023-10-12 18:12:40 -04:00
alert_rule.go Alerting: In migration, fallback to '1s' for malformed min interval (#78614) 2023-11-24 11:27:44 -05:00
channel_test.go Alerting: Move legacy alert migration from sqlstore migration to service (#72702) 2023-10-12 13:43:10 +01:00
channel.go Alerting: Move legacy alert migration from sqlstore migration to service (#72702) 2023-10-12 13:43:10 +01:00
cond_trans_test.go Alerting: In migration, fallback to '1s' for malformed min interval (#78614) 2023-11-24 11:27:44 -05:00
cond_trans.go Alerting: In migration, fallback to '1s' for malformed min interval (#78614) 2023-11-24 11:27:44 -05:00
migration_test.go Alerting: In migration, fallback to '1s' for malformed min interval (#78614) 2023-11-24 11:27:44 -05:00
models.go Alerting: Fix flaky SQLITE_BUSY when migrating with provisioned dashboards (#76658) 2023-10-19 10:03:00 -04:00
permissions_test.go Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
permissions.go Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
securejsondata.go Alerting: Move legacy alert migration from sqlstore migration to service (#72702) 2023-10-12 13:43:10 +01:00
service_test.go Alerting: Prevent cleanup of non-empty folders on migration revert (#76439) 2023-10-12 18:40:51 -04:00
service.go Alerting: Fix flaky SQLITE_BUSY when migrating with provisioned dashboards (#76658) 2023-10-19 10:03:00 -04:00
silences.go Alerting: Handle custom dashboard permissions in migration service (#74504) 2023-10-12 18:12:40 -04:00
template_test.go Alerting: Handle edge cases without panicking during template migration (#76890) 2023-11-02 13:24:54 -04:00
template.go Alerting: Handle edge cases without panicking during template migration (#76890) 2023-11-02 13:24:54 -04:00
testing.go Alerting: Fix flaky SQLITE_BUSY when migrating with provisioned dashboards (#76658) 2023-10-19 10:03:00 -04:00
ualert_test.go Alerting: Handle custom dashboard permissions in migration service (#74504) 2023-10-12 18:12:40 -04:00
ualert.go Alerting: Handle custom dashboard permissions in migration service (#74504) 2023-10-12 18:12:40 -04:00