grafana/pkg/services
gotjosh 90646e7f41
Alerting: Don't stop the migration when alert rule tags are invalid (#51253)
* Alerting: Don't stop the migration when alert rule tags are invalid

As we migrate we expect the `alertRuleTags` on a dashboard alert to be a JSON object. However, it seems this is not really validated by Grafana and an user can change the format to something else that the JSON parser is not able to marshal into a `map[string]string`.

Let's do a bit better by "attempting" to parse the tags and if we can't we'll simple return an empty map. The data is still there so if the user wishes they can go back, fix the data and attemp the migration again.
2022-06-22 17:39:17 +01:00
..
accesscontrol RBAC: Add access control metadata to folder dtos (#51158) 2022-06-22 10:29:26 +02:00
alerting Alerting: notifiers/discord: Fix group mention documentation (#51071) 2022-06-21 05:34:49 +00:00
annotations Chore : Replace dashboardid with dashboardUID in annotation API (#48481) 2022-05-02 11:35:36 +02:00
auth Chore: Remove context.TODO() (#43409) 2021-12-22 11:02:42 +01:00
cleanup backend/dashboardsnapshot service: move models (#50898) 2022-06-17 09:09:01 -04:00
comments backend/services: Move GetDashboard from sqlstore to dashboard service (#48971) 2022-05-17 14:52:22 -04:00
contexthandler Chore: Make test tracer noop and return no errors (#50797) 2022-06-15 12:40:41 +02:00
dashboardimport schema: Migrate from scuemata to thema (#49805) 2022-06-06 17:52:44 -07:00
dashboards Alerting: Add first Grafana reserved label grafana_folder (#50262) 2022-06-17 13:10:49 -04:00
dashboardsnapshots backend/dashboardsnapshot service: move models (#50898) 2022-06-17 09:09:01 -04:00
dashboardversion Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
datasourceproxy add missing return (#50667) 2022-06-13 13:56:24 +02:00
datasources Secrets: add better error handling for secret plugin failures when updating datasources (#50542) 2022-06-16 12:26:57 -04:00
encryption Encryption: Add support for decrypting ciphertexts with algorithm metadata (#49312) 2022-05-20 17:11:51 +02:00
export Export: introduce export plumbing (behind dev feature flag) (#48091) 2022-04-25 16:59:18 -07:00
featuremgmt Add a feature toggle for custom branding (#51168) 2022-06-22 17:05:52 +02:00
guardian RBAC: Refactor GetUserPermissions to use []accesscontrol.Permission (#50683) 2022-06-14 10:17:48 +02:00
hooks Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
kmsproviders Encryption: Enable envelope encryption by default (#49301) 2022-05-24 10:34:47 +02:00
ldap Chore: Remove Wrap (#50048) 2022-06-03 09:24:24 +02:00
libraryelements Alerting: Add first Grafana reserved label grafana_folder (#50262) 2022-06-17 13:10:49 -04:00
librarypanels Alerting: Add first Grafana reserved label grafana_folder (#50262) 2022-06-17 13:10:49 -04:00
licensing RBAC: Make RBAC action names more consistent (#49730) 2022-06-02 13:14:48 +01:00
live rm debug log when publishing live message (#50774) 2022-06-14 15:15:57 +03:00
login Auth: Case insensitive ids duplicate usagestats (#50724) 2022-06-22 14:16:28 +02:00
multildap pkg/web: restrict handler types (#48495) 2022-05-20 12:45:18 -04:00
ngalert Alerting: Don't stop the migration when alert rule tags are invalid (#51253) 2022-06-22 17:39:17 +01:00
notifications Chore: Make test tracer noop and return no errors (#50797) 2022-06-15 12:40:41 +02:00
oauthtoken Chore: Remove bus from oauthtoken (#46811) 2022-03-21 21:13:57 +01:00
plugindashboards Chore: Make test tracer noop and return no errors (#50797) 2022-06-15 12:40:41 +02:00
pluginsettings Plugins: Add plugin settings DTO (#46283) 2022-03-18 20:49:13 +01:00
preference I18n: Add default locale server config option (#51035) 2022-06-21 11:12:49 +01:00
provisioning Chore: Remove Wrapf (#50128) 2022-06-06 22:30:31 +02:00
query Start of dashboard query API (#49547) 2022-06-13 15:23:56 -08:00
queryhistory Query history: Add swagger definitions (#50498) 2022-06-13 09:47:40 +02:00
quota Update quota service to accept context (#45186) 2022-02-10 22:17:50 +01:00
rendering Alerting: Add a general screenshot service and alerting-specific image service. (#49293) 2022-05-22 22:33:49 +08:00
screenshot Fix metric names for screenshots (#50426) 2022-06-09 10:32:30 +01:00
search Search (SQL): support dashboardUID query parameter (#50121) 2022-06-02 12:56:01 -07:00
searchusers Access control: Using RBAC to filter users in list view that you have read access to (#47963) 2022-05-13 09:26:34 +02:00
searchV2 Search: Update bluge version (#50377) 2022-06-22 15:49:26 +03:00
secrets Secrets: add better error handling for secret plugin failures when updating datasources (#50542) 2022-06-16 12:26:57 -04:00
serviceaccounts Service accounts: refactor errors (#50917) 2022-06-16 16:02:03 +02:00
shorturls ShortURL: Use new Error type (#50859) 2022-06-15 15:11:36 +02:00
sqlstore Alerting: Don't stop the migration when alert rule tags are invalid (#51253) 2022-06-22 17:39:17 +01:00
star Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
store Storage: validation and sanitization stubs (#50523) 2022-06-15 12:32:29 +04:00
teamguardian Chore: Make test tracer noop and return no errors (#50797) 2022-06-15 12:40:41 +02:00
thumbs Previews: use ETag header (#51008) 2022-06-17 18:02:03 +04:00
updatechecker Logging: Unify logging fakes (#48822) 2022-05-06 17:44:22 +02:00
validations Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00