3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
grafana/pkg/services
Matthew Jacobson 3537c5440f
Alerting: Refactor migration to return pairs of legacy and upgraded structs ()
Some refactoring that will simplify next changes for dry-run PRs. This should be no-op as far as the created ngalert resources and database state, though it does change some logs.

The key change here is to modify migrateOrg to return pairs of legacy struct + ngalert struct instead of actually persisting the alerts and alertmanager config. This will allow us to capture error information during dry-run migration.

It also moves most persistence-related operations such as title deduplication and folder creation to the right before we persist. This will simplify eventual partial migrations (individual alerts, dashboards, channels, ...).

Additionally it changes channel code to deal with PostableGrafanaReceiver instead of PostableApiReceiver (integration instead of contact point).
2024-01-05 05:37:13 -05:00
..
accesscontrol AccessControl: Add safety valve truncation for long user defined scopes () 2023-12-27 17:31:26 +01:00
alerting Authz: Remove use of SignedInUser copy for permission evaluation () 2023-11-22 14:20:22 +01:00
annotations Annotations/Alerting: Add Loki historian store stub () 2023-12-12 17:43:09 -05:00
anonymous Anon: Small fixes to anon service structure () 2023-12-15 15:15:04 +01:00
apikey Swagger: Rename API Key AddCommand () 2023-11-21 11:25:21 -05:00
auth Chore: Cleanup namespace and ID resolution () 2023-12-21 20:42:05 +01:00
authn Chore: Cleanup namespace and ID resolution () 2023-12-21 20:42:05 +01:00
caching Fixing typos () 2023-06-22 09:43:38 +01:00
cleanup Tracing: Standardize on otel tracing () 2023-10-03 14:54:20 +02:00
contexthandler Frontend: Reload the browser when backend configuration/assets change () 2024-01-04 08:00:07 +01:00
correlations Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface () 2023-10-09 10:40:19 +02:00
dashboardimport Chore: Deprecate ID from Folder () 2023-11-20 15:44:51 -05:00
dashboards Folders: Show dashboards and folders with directly assigned permissions in "Shared" folder () 2023-12-05 16:13:31 +01:00
dashboardsnapshots Snapshots: Do not return internal database ids () 2023-11-06 06:53:52 -08:00
dashboardversion Chore: Deprecate FolderID from SaveDashboardCommand () 2023-11-15 11:21:02 -05:00
datasourceproxy Errors: Make errors the same in dev as prod () 2023-10-30 14:06:26 -04:00
datasources Plugins: Add option to disable TLS in the socks proxy () 2023-12-14 12:16:32 -03:00
encryption Chore: use any rather than interface{} () 2023-08-30 18:46:47 +03:00
extsvcauth Chore: Fix flaky test by removing the extsvcauth background service () 2023-12-04 22:26:55 +01:00
featuremgmt Canvas: Add Pan and Zoom () 2024-01-02 11:52:21 -08:00
folder Nested Folders: Move SharedWithMe to the top of the folders list () 2023-12-29 11:35:15 +01:00
grafana-apiserver Storage: Support grafana.app/folder field selector & label selectors () 2023-12-21 18:08:01 -05:00
grpcserver FeatureToggles: Add context and and an explicit global check () 2023-11-14 12:50:27 -08:00
guardian Folders: Show dashboards and folders with directly assigned permissions in "Shared" folder () 2023-12-05 16:13:31 +01:00
hooks Hooks: Remove AddLoginHook and RunLogin hooks () 2023-08-17 09:51:45 +02:00
kmsproviders Secrets: Make the Migrator extensible () 2023-06-19 23:44:01 +02:00
ldap Login: refactor auth info package () 2023-11-21 14:47:23 +01:00
libraryelements Folders: Show dashboards and folders with directly assigned permissions in "Shared" folder () 2023-12-05 16:13:31 +01:00
librarypanels Folders: Show dashboards and folders with directly assigned permissions in "Shared" folder () 2023-12-05 16:13:31 +01:00
licensing Chore: Clean up old navigation () 2023-04-14 09:43:11 +01:00
live Live: Default to local engine if redis is unavailable () 2023-11-08 12:22:26 +00:00
login Chore: Configure SkipOrgRoleSync from OAuthInfo for OAuth connectors () 2023-12-15 10:58:08 +01:00
loginattempt Chore: capitalise log message for auth packages () 2023-09-04 18:49:47 +02:00
navtree Alerting: Separate overlapping legacy and UA alerting routes () 2024-01-04 18:01:57 -05:00
ngalert Alerting: Refactor migration to return pairs of legacy and upgraded structs () 2024-01-05 05:37:13 -05:00
notifications Config: Can add static headers to email messages () 2023-12-14 12:59:43 -06:00
oauthtoken Auth: Use SSO settings service to load social connectors + refactor () 2023-12-08 11:20:42 +01:00
org Chore: delete team related entries for an org after the org gets deleted () 2023-10-18 10:40:26 +01:00
playlist Playlist: Implement a more efficient List command to support k8s list () 2023-12-21 15:03:12 -08:00
plugindashboards Chore: Remove FolderID from Dashboard Import () 2023-12-13 12:03:23 +01:00
pluginsintegration Plugins: Externalise Azure Monitor data source () 2024-01-03 19:20:22 +00:00
preference Preferences: Remove SQLX backing store () 2023-11-13 06:22:22 -08:00
provisioning Chore: Remove folderID from dashboardIdentity tests () 2023-12-13 10:50:46 +01:00
publicdashboards PublicDashboards: Add setting to disable the feature () 2023-12-19 11:43:54 +01:00
query Chore: Upgrade Go to 1.21.3 () 2023-11-01 09:17:38 -07:00
queryhistory Chore: use any rather than interface{} () 2023-08-30 18:46:47 +03:00
quota Alerting: Fix deleting rules in a folder with matching UID in another organization () 2023-12-04 11:34:38 +02:00
rendering Rendering: Fix plugin initialization () 2024-01-04 11:30:01 +01:00
screenshot Chore: use any rather than interface{} () 2023-08-30 18:46:47 +03:00
search Authz: Remove use of SignedInUser copy for permission evaluation () 2023-11-22 14:20:22 +01:00
searchusers Team: Support sort query param for teams search endpoint () 2023-09-28 18:20:51 +03:00
searchV2 Chore: Deprecate FolderID from Dashboard () 2023-11-15 10:28:50 -05:00
secrets Auth: encrypt secrets for oauth providers in SSO settings API service () 2023-12-06 14:37:10 +02:00
serviceaccounts ExtSvcAuth: Assign roles locally () 2023-11-29 12:12:30 +01:00
shorturls Chore: Add errutils helpers () 2023-08-22 12:52:24 +02:00
signingkeys Siningkeys: Fix test setup () 2023-10-11 13:50:38 +02:00
sqlstore Alerting: Support hysteresis command expression () 2024-01-04 11:47:13 -05:00
ssosettings Auth: fix camelCase in getFallbackStrategyFor() func () 2024-01-05 12:25:59 +02:00
star Stars: Remove sqlx storage implementation () 2023-11-07 06:55:24 -08:00
stats Usagestats: Add stat group for alert rule groups () 2023-11-29 14:37:36 -06:00
store Storage: Support grafana.app/folder field selector & label selectors () 2023-12-21 18:08:01 -05:00
supportbundles Auth: Remove oAuthProviders from Social service () 2023-11-30 09:30:35 +01:00
tag FeatureFlags: Cleanup usage of cfg.IsFeatureToggleEnabled () 2023-11-13 07:55:15 -08:00
team Authz: Remove use of SignedInUser copy for permission evaluation () 2023-11-22 14:20:22 +01:00
temp_user Chore: use any rather than interface{} () 2023-08-30 18:46:47 +03:00
updatechecker Plugins: Move store and plugin dto to pluginsintegration () 2023-09-11 13:59:24 +02:00
user Chore: Remove unused CacheService dependency from sqlstore () 2023-12-04 10:00:45 -05:00
validations chore: move validations model into the validations service () 2023-01-23 15:10:14 -05:00