grafana/pkg/services
Matthew Jacobson 44972d0cd5
SQLStore: Fix Postgres dialect treating "false" migrator default as true (#69353)
* SQLStore: Fix Postgres dialect treating "false" migrator default as true

Previously, when creating a migration you could choose a default value for a new 
boolean column that looked correct but would be interpreted incorrectly by the 
Postgres dialect. For example, values such as "false" or "FALSE" would be treated 
as true by the Postgres dialect.

This refactors how migration dialects determine the Default column value for boolean
type columns. Each dialect now uses the same base code to parse the Default literal 
and panics if an unknown value is encountered.

So, now AddColumnMigration and AddTableMigration will ensure that across dialects:

- The exact same Default literals will be allowed.
- The literals are converted to equivalent defaults in their DDL.
- An error will be thrown if an invalid literal is provided.
2023-06-22 15:09:36 -04:00
..
accesscontrol RBAC: remove some IsDisabled checks (#69272) 2023-05-31 09:58:57 +01:00
alerting PublicDashboards: Audit table pagination (#69823) 2023-06-21 10:48:09 -03:00
annotations Annotations: Improve get tags query performance (#66182) 2023-04-18 13:27:40 +03:00
anonymous AnonymousService: Test tagging service (#64708) 2023-03-14 10:47:34 +01:00
apikey Chore: Remove result field from API keys commands and queries (#65055) 2023-03-21 13:26:33 +01:00
auth Auth: Respect cache control for JWKS in auth.jwt (#68872) 2023-05-23 12:29:10 +02:00
authn Chore: Replace go-multierror with errors package (#66432) 2023-06-19 12:29:45 +03:00
caching Fixing typos (#70487) 2023-06-22 09:43:38 +01:00
cleanup Chore: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00:00
contexthandler Auth: Use auth broker by default (#69620) 2023-06-07 08:57:41 +02:00
correlations RBAC: Remove legacy ac from authorization middleware (#68898) 2023-05-24 09:49:42 +01:00
dashboardimport RBAC: Remove legacy ac from authorization middleware (#68898) 2023-05-24 09:49:42 +01:00
dashboards Nested folders: Add alert rule counts and deletion to folder registry (#67259) 2023-06-02 16:38:02 +02:00
dashboardsnapshots Snapshots: Add snapshot enable config (#61587) 2023-01-26 10:28:11 -03:00
dashboardversion API: Fix "Updated by" Column in dashboard versions table (#65351) 2023-03-30 17:31:53 +03:00
datasourceproxy Caching: Refactor enterprise query caching middleware to a wire service (#65616) 2023-04-12 12:30:33 -04:00
datasources RBAC: remove unused code (#69470) 2023-06-05 15:47:22 +01:00
encryption Secrets: Make the Migrator extensible (#67307) 2023-06-19 23:44:01 +02:00
featuremgmt Fixing typos (#70487) 2023-06-22 09:43:38 +01:00
folder Fixing typos (#70487) 2023-06-22 09:43:38 +01:00
grpcserver ApiKeyGenPrefix: rename package (#65623) 2023-03-30 17:04:10 +02:00
guardian Cfg: Move ViewersCanEdit into cfg (#64876) 2023-03-16 10:54:01 +01:00
hooks chore: move user_auth models to (mostly) login service (#62269) 2023-01-27 13:36:54 -05:00
kmsproviders Secrets: Make the Migrator extensible (#67307) 2023-06-19 23:44:01 +02:00
ldap RBAC: Remove legacy ac from authorization middleware (#68898) 2023-05-24 09:49:42 +01:00
libraryelements PublicDashboards: Audit table pagination (#69823) 2023-06-21 10:48:09 -03:00
librarypanels RBAC: Update library element tests to use RBAC (#66782) 2023-04-20 12:24:41 +03:00
licensing Chore: Clean up old navigation (#66287) 2023-04-14 09:43:11 +01:00
live Plugins: Account for nil user when constructing plugin context (#69811) 2023-06-08 19:36:41 +03:00
login Auth: Support Gitlab OIDC scopes (#69890) 2023-06-14 15:38:16 +02:00
loginattempt Chore: Remove result field from loginattempt (#65117) 2023-03-22 21:25:29 +01:00
navtree Navigation: puts Profiles app under Observability (#69973) 2023-06-20 16:24:12 +01:00
ngalert chore: remove refs to deprecated io/ioutil (#70300) 2023-06-22 12:19:23 +02:00
notifications Chore: Remove result field from notifications (#65170) 2023-03-28 13:44:15 +02:00
oauthserver AuthN: Embed an OAuth2 server for external service authentication (#68086) 2023-05-25 15:38:30 +02:00
oauthtoken Auth: Add request context to UserInfo calls (#70007) 2023-06-14 14:30:40 +02:00
org Auth: Fix orgrole picker disabled if isSynced user (#64033) 2023-03-22 17:41:59 +00:00
playlist Kinds: Use apimachinery ObjectMeta for metadata (#68668) 2023-05-24 09:13:44 -07:00
plugindashboards Plugins: Add file store abstraction for handling plugin files (#65432) 2023-03-29 12:55:55 +02:00
pluginsintegration Plugins: Periodically update public signing key (#70080) 2023-06-16 11:20:30 +02:00
preference Chore: remove i18n toggle (#69389) 2023-06-02 09:24:40 +01:00
provisioning Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
publicdashboards PublicDashboards: Audit table pagination (#69823) 2023-06-21 10:48:09 -03:00
query Fixing typos (#70487) 2023-06-22 09:43:38 +01:00
queryhistory Query History: Remove migration (#67470) 2023-04-28 16:03:51 +01:00
quota Nested folders: Add alert rule counts and deletion to folder registry (#67259) 2023-06-02 16:38:02 +02:00
rendering Rendering: Experimental support to use JWTs as auth method (#60841) 2023-04-03 18:53:38 +02:00
screenshot Alerting: Fix a bug taking screenshots with Dashboard UID (#63220) 2023-02-09 15:23:01 -05:00
search Chore: Remove result field from search (#65583) 2023-03-30 11:28:12 +02:00
searchusers Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
searchV2 Instrumentation: Add support for instrumenting database queries (#66022) 2023-04-28 15:19:06 +02:00
secrets Secrets: Make the Migrator extensible (#67307) 2023-06-19 23:44:01 +02:00
serviceaccounts Service accounts: API key migration refactoring to parse as json object of the results (#69771) 2023-06-08 12:12:26 +02:00
shorturls Chore: Replace short UID generation with more standard UUIDs (#62731) 2023-02-06 20:44:37 -05:00
signingkeys AuthN: Embed an OAuth2 server for external service authentication (#68086) 2023-05-25 15:38:30 +02:00
sqlstore SQLStore: Fix Postgres dialect treating "false" migrator default as true (#69353) 2023-06-22 15:09:36 -04:00
star API: Fix status code when starring already starred dashboard (#63478) 2023-05-11 11:37:36 +03:00
stats UsageStats: Add database age and driver (#66535) 2023-04-17 18:27:04 -07:00
store Fixing typos (#70487) 2023-06-22 09:43:38 +01:00
supportbundles RBAC: remove some IsDisabled checks (#69272) 2023-05-31 09:58:57 +01:00
tag Annotations: Ignore unique constraint violations for tags (#65935) 2023-04-18 14:21:38 +02:00
team Kinds: Use apimachinery ObjectMeta for metadata (#68668) 2023-05-24 09:13:44 -07:00
temp_user Users: Enable case insensitive login by default (#66134) 2023-04-28 16:38:58 +01:00
updatechecker Plugins: Standardize Golang enum naming convention (#69449) 2023-06-08 12:21:19 +02:00
user Separate authn flow from analytics (#68327) 2023-05-15 18:38:54 +02:00
validations chore: move validations model into the validations service (#61953) 2023-01-23 15:10:14 -05:00