grafana/pkg/services/sqlstore
gotjosh 2448123a65
Alerting: Remove invalid Slack URL as we migrate notification channels (#40344)
* Alerting: Remove invalid Slack URL as we migrate notification channels

Grafana will accept any type of utf8 valid string as the Slack URL and will simply fail as we try to deliver the notification of the channel. The Alertmanager will fail to apply a configuration if the URL of the Slack Receiver is invalid.

This change takes that into account by removing the URL for the receiver as we migrate notification channels that do not pass the url validation. As we assume the notification was not being delivered to being with.

* Add a log line when we modify the channel

Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com>
2021-10-12 18:55:39 -04:00
..
migrations Alerting: Remove invalid Slack URL as we migrate notification channels (#40344) 2021-10-12 18:55:39 -04:00
migrator Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
permissions Chore: Start harmonizing linting with plugin SDK (#25854) 2020-06-29 14:08:32 +02:00
searchstore Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
sqlutil Chore: Add CloudWatch HTTP API tests (#29691) 2021-01-07 11:36:13 +01:00
alert_notification_test.go Encryption: Refactor securejsondata.SecureJsonData to stop relying on global functions (#38865) 2021-10-07 17:33:50 +03:00
alert_notification.go Encryption: Refactor securejsondata.SecureJsonData to stop relying on global functions (#38865) 2021-10-07 17:33:50 +03:00
alert_test.go Chore: Add context for dashboards (#39844) 2021-10-05 13:26:24 +02:00
alert.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
annotation_cleanup_test.go Instrumentation: Start tracing database requests (#34572) 2021-05-27 13:55:33 +02:00
annotation_cleanup.go Annotations: Prevent orphaned annotation tags cleanup when no annotations were cleaned (#33957) 2021-05-12 10:44:00 +02:00
annotation_test.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
annotation.go Chore: Replace util.DynMap with structs (#36332) 2021-07-01 10:23:33 +02:00
apikey_test.go add context to api crud calls (#40047) 2021-10-11 14:35:31 +02:00
apikey.go add context to api crud calls (#40047) 2021-10-11 14:35:31 +02:00
dashboard_acl_test.go Chore: Propagate context for dashboard guardian (#39201) 2021-09-23 17:43:32 +02:00
dashboard_acl.go Chore: Propagate context for dashboard guardian (#39201) 2021-09-23 17:43:32 +02:00
dashboard_folder_test.go Chore: Add context for dashboards (#39844) 2021-10-05 13:26:24 +02:00
dashboard_provisioning_test.go Chore: Add context for dashboards (#39844) 2021-10-05 13:26:24 +02:00
dashboard_provisioning.go Chore: Add context for dashboards (#39844) 2021-10-05 13:26:24 +02:00
dashboard_snapshot_test.go Encryption: Refactor securejsondata.SecureJsonData to stop relying on global functions (#38865) 2021-10-07 17:33:50 +03:00
dashboard_snapshot.go Chore: Refactor securedata to remove global encryption calls from dashboard snapshots (#38714) 2021-09-01 13:05:15 +02:00
dashboard_test.go Chore: Add context for dashboards (#39844) 2021-10-05 13:26:24 +02:00
dashboard_version_test.go Chore: Add context for dashboards (#39844) 2021-10-05 13:26:24 +02:00
dashboard_version.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
dashboard.go Context: Add context to hasEditPermission call bus call (#40107) 2021-10-11 14:36:57 +02:00
database_wrapper.go Instrumentation: Start tracing database requests (#34572) 2021-05-27 13:55:33 +02:00
datasource_test.go Encryption: Refactor securejsondata.SecureJsonData to stop relying on global functions (#38865) 2021-10-07 17:33:50 +03:00
datasource.go Encryption: Refactor securejsondata.SecureJsonData to stop relying on global functions (#38865) 2021-10-07 17:33:50 +03:00
health_test.go Context: Add context to /api/health calls (#40031) 2021-10-11 14:35:03 +02:00
health.go Context: Add context to /api/health calls (#40031) 2021-10-11 14:35:03 +02:00
logger.go Chore: Update the xorm dependency (#22376) 2020-04-01 15:57:21 +02:00
login_attempt_test.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
login_attempt.go Chore: Fix staticcheck issues (#28854) 2020-11-05 11:57:20 +01:00
org_test.go Chore: Add context to user (#39649) 2021-10-04 15:46:09 +02:00
org_users.go Chore: Add context to org users (#39526) 2021-09-27 16:43:16 +02:00
org.go Alerting: cleanup alert resources on org removal (#39938) 2021-10-12 12:05:02 +02:00
playlist_test.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
playlist.go PlaylistPage: fix search input (#39226) 2021-09-22 10:45:29 +01:00
plugin_setting.go Encryption: Refactor securejsondata.SecureJsonData to stop relying on global functions (#38865) 2021-10-07 17:33:50 +03:00
preferences_test.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
preferences.go Chore: Use context.Context for the get home dashboard API endpoint (#36735) 2021-07-16 12:40:03 +02:00
quota_test.go Chore: Propagate context for quotas (#39205) 2021-09-20 17:05:30 +02:00
quota.go Alerting: Remove ngalert feature toggle and introduce two new settings for enabling Grafana 8 alerts and disabling them for specific organisations (#38746) 2021-09-29 16:16:40 +02:00
session.go Instrumentation: Start tracing database requests (#34572) 2021-05-27 13:55:33 +02:00
sqlbuilder_test.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
sqlbuilder.go LibraryPanels: Adds permissions to getAllHandler (#31416) 2021-02-24 14:06:22 +01:00
sqlstore_test.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
sqlstore.go Chore: Add context to star and stats (#39591) 2021-09-28 17:54:45 +02:00
sqlstore.goconvey feat(invite): small progress 2015-07-17 14:42:49 +02:00
star.go Chore: Add context to star and stats (#39591) 2021-09-28 17:54:45 +02:00
stars_test.go Chore: Add context to star and stats (#39591) 2021-09-28 17:54:45 +02:00
stats_integration_test.go Chore: Add context to star and stats (#39591) 2021-09-28 17:54:45 +02:00
stats_test.go Chore: Add context to user (#39649) 2021-10-04 15:46:09 +02:00
stats.go Chore: Add context to star and stats (#39591) 2021-09-28 17:54:45 +02:00
tables.go Began work on real sql schema definitions, and migration engine 2015-01-17 21:40:22 +01:00
tags_test.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
tags.go Chore: Enable Go linter gocritic (#26224) 2020-07-16 14:39:01 +02:00
team_test.go Chore: Propagate context for dashboard guardian (#39201) 2021-09-23 17:43:32 +02:00
team.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
temp_user_test.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
temp_user.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
tls_mysql.go Chore: Fix staticcheck issues (#28854) 2020-11-05 11:57:20 +01:00
transactions_test.go add context to api crud calls (#40047) 2021-10-11 14:35:31 +02:00
transactions.go fix sqlite3 tx retry condition operator precedence (#32897) 2021-04-13 18:26:54 +03:00
user_test.go Chore: Add context to user (#39649) 2021-10-04 15:46:09 +02:00
user.go Create search filters by interface (#39843) 2021-10-07 16:06:16 +02:00