grafana/pkg/services/sqlstore
Joan López de la Franca Beltran 6cfb640a0b
Chore: Refactor securedata to remove global encryption calls from dashboard snapshots (#38714)
* Add encryption service

* Add tests for encryption service

* Inject encryption service into http server

* Replace encryption global function usage in login tests

* Migrate to Wire

* Move Encryption bindings to OSS Wire set

* Chore: Refactor securedata to remove global encryption calls from dashboard snapshots

* Fix dashboard snapshot tests

* Remove no longer user test

* Add dashboard snapshots service tests

* Refactor service initialization

* Set up dashboard snapshots service as a background service

Co-authored-by: Tania B <yalyna.ts@gmail.com>
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2021-09-01 13:05:15 +02:00
..
migrations add key/value store service (#36868) 2021-08-31 11:05:45 -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 Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
sqlutil Chore: Add CloudWatch HTTP API tests (#29691) 2021-01-07 11:36:13 +01:00
alert_notification_test.go Sort notification channels alphabetically (#37426) 2021-08-19 22:49:14 +02:00
alert_notification.go Sort notification channels alphabetically (#37426) 2021-08-19 22:49:14 +02:00
alert_test.go Chore: avoid hard-coding IDs in integration tests (#33152) 2021-04-21 11:22:46 +03: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 Annotations: Adds tags endpoint (#36199) 2021-06-30 13:42:54 +02:00
annotation.go Chore: Replace util.DynMap with structs (#36332) 2021-07-01 10:23:33 +02:00
apikey_test.go Return 404 when deleting non-existing API key (#33346) 2021-04-28 13:30:09 +02:00
apikey.go Return 404 when deleting non-existing API key (#33346) 2021-04-28 13:30:09 +02:00
dashboard_acl_test.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
dashboard_acl.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
dashboard_folder_test.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
dashboard_provisioning_test.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
dashboard_provisioning.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
dashboard_snapshot_test.go Chore: Refactor securedata to remove global encryption calls from dashboard snapshots (#38714) 2021-09-01 13:05:15 +02: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 Folder API: optionally force deleting Grafana 8 alerts when deleting a folder (or error) (#36427) 2021-07-22 12:27:13 +03:00
dashboard_version_test.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
dashboard_version.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
dashboard.go Folder API: optionally force deleting Grafana 8 alerts when deleting a folder (or error) (#36427) 2021-07-22 12:27:13 +03:00
database_wrapper.go Instrumentation: Start tracing database requests (#34572) 2021-05-27 13:55:33 +02:00
datasource_test.go Add event after datasource create (#38467) 2021-08-26 08:50:05 -05:00
datasource.go Add event after datasource create (#38467) 2021-08-26 08:50:05 -05:00
health_test.go API: Query database from /api/health endpoint (#28349) 2020-10-21 11:06:19 +02:00
health.go API: Query database from /api/health endpoint (#28349) 2020-10-21 11:06:19 +02:00
logger.go Chore: Update the xorm dependency (#22376) 2020-04-01 15:57:21 +02:00
login_attempt_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
login_attempt.go Chore: Fix staticcheck issues (#28854) 2020-11-05 11:57:20 +01:00
org_test.go bus: add ctx for all signed in user queries (#33970) 2021-05-18 18:24:42 +02:00
org_users.go 32540: Add org users with pagination (#33788) 2021-05-12 14:10:35 +02:00
org.go Chore(deps): Bump xorm.io/xorm from 0.8.1 to 0.8.2 (#30773) 2021-02-15 09:59:39 +01:00
playlist_test.go playlist: Improve test (#29120) 2020-11-18 09:16:49 +01:00
playlist.go Chore: Require OrgId to be specified in delete playlist command (#29117) 2020-11-14 09:49:07 +01:00
plugin_setting.go Chore: Remove global encryption calls from sqlstore (#38588) 2021-08-31 15:01:23 +02:00
preferences_test.go Chore: Use context.Context for the get home dashboard API endpoint (#36735) 2021-07-16 12:40:03 +02: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 Quota: Do not count folders towards dashboard quota (#32519) 2021-05-12 23:44:46 +02:00
quota.go Quota: Do not count folders towards dashboard quota (#32519) 2021-05-12 23:44:46 +02:00
session.go Instrumentation: Start tracing database requests (#34572) 2021-05-27 13:55:33 +02:00
sql_test_data.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
sqlbuilder_test.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
sqlbuilder.go LibraryPanels: Adds permissions to getAllHandler (#31416) 2021-02-24 14:06:22 +01:00
sqlstore_test.go Redact sensitive values before logging them (#33829) 2021-05-10 17:03:10 +02:00
sqlstore.go Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
sqlstore.goconvey feat(invite): small progress 2015-07-17 14:42:49 +02:00
star.go Instrumentation: add context.Context to the dashboard get flow. (#34955) 2021-06-15 16:08:27 +02:00
stars_test.go Instrumentation: add context.Context to the dashboard get flow. (#34955) 2021-06-15 16:08:27 +02:00
stats_integration_test.go Usage Stats: Remove unused method for getting user stats (#30074) 2021-01-26 14:13:25 +01:00
stats_test.go LibraryElements: Creates usage stats for panels and variables (#34476) 2021-05-24 06:11:01 +02:00
stats.go UsageStats: Extend usage stats for count permissions in folders and dashborads (#36065) 2021-07-16 10:14:33 +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 Instrumentation: Start tracing database requests (#34572) 2021-05-27 13:55:33 +02:00
tags.go Chore: Enable Go linter gocritic (#26224) 2020-07-16 14:39:01 +02:00
team_test.go Auth: creates a hook in the user mapping flow (#37190) 2021-07-29 10:18:42 +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 Short URL: Cleanup unvisited/stale short URLs (#28867) 2020-11-09 18:08:16 +01: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 SQLStore: Close session in withDbSession (#31775) 2021-03-18 14:27:59 +01:00
transactions.go fix sqlite3 tx retry condition operator precedence (#32897) 2021-04-13 18:26:54 +03:00
user_test.go Auth: creates a hook in the user mapping flow (#37190) 2021-07-29 10:18:42 +02:00
user.go Add filter to search users by active (#38637) 2021-08-31 11:35:16 +02:00