grafana/pkg/services
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
..
accesscontrol RBAC: GrafanaAdmin users are admins of the Global Organization (#78559) 2023-11-23 12:17:28 +01:00
alerting Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
annotations Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
anonymous Anon: Use xorm for anon service (#75964) 2023-10-04 17:19:56 +02:00
apikey Swagger: Rename API Key AddCommand (#78491) 2023-11-21 11:25:21 -05:00
auth Auth: Add more context to logs around token rotation, revocation (#78600) 2023-11-23 16:48:54 +01:00
authn AuthProxy: Do not allow sessions to be assigned with other methods (#78602) 2023-11-24 11:00:53 +01:00
caching Fixing typos (#70487) 2023-06-22 09:43:38 +01:00
cleanup Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
contexthandler FeatureToggles: Add context and and an explicit global check (#78081) 2023-11-14 12:50:27 -08:00
correlations Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface (#76113) 2023-10-09 10:40:19 +02:00
dashboardimport Chore: Deprecate ID from Folder (#78281) 2023-11-20 15:44:51 -05:00
dashboards Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
dashboardsnapshots Snapshots: Do not return internal database ids (#77672) 2023-11-06 06:53:52 -08:00
dashboardversion Chore: Deprecate FolderID from SaveDashboardCommand (#77813) 2023-11-15 11:21:02 -05:00
datasourceproxy Errors: Make errors the same in dev as prod (#77366) 2023-10-30 14:06:26 -04:00
datasources Data sources: Refactor logic for naming new data sources (#78479) 2023-11-22 09:57:26 +00:00
encryption Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
extsvcauth AuthN: Support HA setups with External Service Account management (#78425) 2023-11-22 10:15:13 +01:00
featuremgmt Transformations: Add regression analysis transformation (#78457) 2023-11-24 15:49:16 +01:00
folder Nested Folders: Wrap create/update operations with transactions (#78000) 2023-11-21 23:06:20 +02:00
grafana-apiserver K8s: Prevent user impersonation (#78555) 2023-11-22 15:55:37 -05:00
grpcserver FeatureToggles: Add context and and an explicit global check (#78081) 2023-11-14 12:50:27 -08:00
guardian Chore: Deprecate ID from Folder (#78281) 2023-11-20 15:44:51 -05:00
hooks Hooks: Remove AddLoginHook and RunLogin hooks (#73227) 2023-08-17 09:51:45 +02:00
kmsproviders Secrets: Make the Migrator extensible (#67307) 2023-06-19 23:44:01 +02:00
ldap Login: refactor auth info package (#78459) 2023-11-21 14:47:23 +01:00
libraryelements Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
librarypanels Chore: Deprecate ID from Folder (#78281) 2023-11-20 15:44:51 -05:00
licensing Chore: Clean up old navigation (#66287) 2023-04-14 09:43:11 +01:00
live Live: Default to local engine if redis is unavailable (#77467) 2023-11-08 12:22:26 +00:00
login Login: refactor auth info package (#78459) 2023-11-21 14:47:23 +01:00
loginattempt Chore: capitalise log message for auth packages (#74332) 2023-09-04 18:49:47 +02:00
navtree Chore: Remove navAdminSubsections toggle (#78179) 2023-11-17 10:04:34 +00:00
ngalert Alerting: In migration, fallback to '1s' for malformed min interval (#78614) 2023-11-24 11:27:44 -05:00
notifications Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
oauthtoken Login: refactor auth info package (#78459) 2023-11-21 14:47:23 +01:00
org Chore: delete team related entries for an org after the org gets deleted (#76706) 2023-10-18 10:40:26 +01:00
playlist K8s: Implement playlist api with k8s client (#77405) 2023-10-31 10:26:39 -07:00
plugindashboards Chore: Deprecate FolderIDs only used by Swagger (#78219) 2023-11-16 09:57:04 -05:00
pluginsintegration RBAC: Check plugins:install globally (#78438) 2023-11-21 15:09:43 +01:00
preference Preferences: Remove SQLX backing store (#78015) 2023-11-13 06:22:22 -08:00
provisioning Chore: Deprecate FolderID from Dashboard (#77823) 2023-11-15 10:28:50 -05:00
publicdashboards Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
query Chore: Upgrade Go to 1.21.3 (#77304) 2023-11-01 09:17:38 -07:00
queryhistory Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
quota FeatureFlags: Cleanup usage of cfg.IsFeatureToggleEnabled (#78014) 2023-11-13 07:55:15 -08:00
rendering FeatureToggles: Add context and and an explicit global check (#78081) 2023-11-14 12:50:27 -08:00
screenshot Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
search Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
searchusers Team: Support sort query param for teams search endpoint (#75622) 2023-09-28 18:20:51 +03:00
searchV2 Chore: Deprecate FolderID from Dashboard (#77823) 2023-11-15 10:28:50 -05:00
secrets FeatureToggles: Add context and and an explicit global check (#78081) 2023-11-14 12:50:27 -08:00
serviceaccounts ExtSvcAuth: Add traces to external service accounts setup (#76779) 2023-11-16 20:45:31 +01:00
shorturls Chore: Add errutils helpers (#73577) 2023-08-22 12:52:24 +02:00
signingkeys Siningkeys: Fix test setup (#76333) 2023-10-11 13:50:38 +02:00
sqlstore Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
ssosettings Auth: Add more tests for the SSO settings upsert function (#78544) 2023-11-24 12:02:05 +02:00
star Stars: Remove sqlx storage implementation (#77766) 2023-11-07 06:55:24 -08:00
stats Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
store FeatureToggles: Add context and and an explicit global check (#78081) 2023-11-14 12:50:27 -08:00
supportbundles Plugins: Move store and plugin dto to pluginsintegration (#74655) 2023-09-11 13:59:24 +02:00
tag FeatureFlags: Cleanup usage of cfg.IsFeatureToggleEnabled (#78014) 2023-11-13 07:55:15 -08:00
team Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
temp_user Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
updatechecker Plugins: Move store and plugin dto to pluginsintegration (#74655) 2023-09-11 13:59:24 +02:00
user Live: Move empty orgRole safety valve (#78531) 2023-11-22 15:51:11 +01:00
validations chore: move validations model into the validations service (#61953) 2023-01-23 15:10:14 -05:00