grafana/pkg/services/dashboards
Kristin Laemmert debbb8d59d
sqlstore: finish removing Find and SearchDashboards (#49347)
* chore: replace artisnal FakeDashboardService with generated mock

Maintaining a handcrafted FakeDashboardService is not sustainable now that we are in the process of moving the dashboard-related functions out of sqlstore.

* sqlstore: finish removing Find and SearchDashboards

Find and SearchDashboards were previously copied into the dashboard service. This commit completes that work, removing Find and SearchDashboards from the sqlstore and updating callers to use the dashboard service.

* dashboards: remove SearchDashboards from Store interface

SearchDashboards is a wrapper around FindDashboard that transforms the results, so it's been moved out of the Store entirely and the functionality moved into the Dashboard Service's search implementation.

The database tests depended heavily on the transformation, so I added testSearchDashboards, a copy of search dashboards, instead of (heavily) refactoring all the tests.
2022-05-24 09:24:55 -04:00
..
database sqlstore: finish removing Find and SearchDashboards (#49347) 2022-05-24 09:24:55 -04:00
service sqlstore: finish removing Find and SearchDashboards (#49347) 2022-05-24 09:24:55 -04:00
accesscontrol_test.go Access Control: Refactor scope resolvers with support to resolve into several scopes (#48202) 2022-05-02 09:29:30 +02:00
accesscontrol.go Access Control: Move dashboard actions and create scope provider (#48618) 2022-05-04 16:12:09 +02:00
dashboard_provisioning_mock.go add isPublic to dashboard (#48012) 2022-05-17 14:11:55 -08:00
dashboard_service_mock.go chore: replace artisanal FakeDashboardService with generated mock (#49276) 2022-05-23 11:14:27 -04:00
dashboard.go sqlstore: finish removing Find and SearchDashboards (#49347) 2022-05-24 09:24:55 -04:00
folder_service_mock.go add isPublic to dashboard (#48012) 2022-05-17 14:11:55 -08:00
folder_store_mock.go add isPublic to dashboard (#48012) 2022-05-17 14:11:55 -08:00
folder.go Dashboards: Refactor service to make it injectable by wire (#44588) 2022-02-16 14:15:44 +01:00
models.go chore: replace artisanal FakeDashboardService with generated mock (#49276) 2022-05-23 11:14:27 -04:00
store_mock.go chore: replace artisanal FakeDashboardService with generated mock (#49276) 2022-05-23 11:14:27 -04:00