grafana/pkg/services/dashboards
Kristin Laemmert 706b301285
feat(nested folders): add CountDashboardsInFolder (#57847)
* feat(nested folders): add CountDashboardsInFolder

This commit adds a new method to the Dashboard service and stores: CountDashboardsInFolder. The command struct takes a folderUID, but the store implementation still depends on the parent folder ID. This is temporary; eventually we will replace all references to FolderIDs (associated with Dashboards) with folder UIDs.

There are some unfortunate additional test changes that were necessary after generating the service & store mocks; it looks like that hasn't been generated since the last change(s).

* more test updates
* don't forget the service test
* that didn't end up used, so bye for now
* agree to disagree with the linter
2022-11-02 09:15:50 -04:00
..
database feat(nested folders): add CountDashboardsInFolder (#57847) 2022-11-02 09:15:50 -04:00
service feat(nested folders): add CountDashboardsInFolder (#57847) 2022-11-02 09:15:50 -04:00
accesscontrol_test.go chore/backend: move dashboard errors to dashboard service (#51593) 2022-06-30 09:31:54 -04:00
accesscontrol.go PublicDashboards: disable form if user does not has permissions (#54853) 2022-09-07 18:29:01 -03:00
dashboard_provisioning_mock.go feat(nested folders): add CountDashboardsInFolder (#57847) 2022-11-02 09:15:50 -04:00
dashboard_service_mock.go feat(nested folders): add CountDashboardsInFolder (#57847) 2022-11-02 09:15:50 -04:00
dashboard.go feat(nested folders): add CountDashboardsInFolder (#57847) 2022-11-02 09:15:50 -04:00
errors.go public-dashboards: Add log statement when public dashboard enabled or disabled (#54133) 2022-08-26 11:28:54 -08:00
folder_store_mock.go feat(nested folders): add CountDashboardsInFolder (#57847) 2022-11-02 09:15:50 -04:00
models.go feat(nested folders): add CountDashboardsInFolder (#57847) 2022-11-02 09:15:50 -04:00
store_mock.go feat(nested folders): add CountDashboardsInFolder (#57847) 2022-11-02 09:15:50 -04:00