grafana/pkg/services/provisioning/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
..
testdata Provisioning: Improve validation by validating across all dashboard providers (#26742) 2021-07-21 17:52:41 +02:00
config_reader_test.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
config_reader.go Use org service instead of sqlstore (#56407) 2022-10-13 08:40:46 -04:00
dashboard_mock.go Search: Fix indexing - re-index after initial provisioning (#50959) 2022-06-27 18:11:08 +03:00
dashboard.go Use org service instead of sqlstore (#56407) 2022-10-13 08:40:46 -04:00
file_reader_symlink_test.go Chore: Remove bus from dashboards provisioning (#47495) 2022-04-08 13:56:38 +02:00
file_reader_test.go feat(nested folders): add CountDashboardsInFolder (#57847) 2022-11-02 09:15:50 -04:00
file_reader.go Add the file label to dashboard provisioning errors (#53282) 2022-09-26 10:57:37 +02:00
types.go chore/backend: move dashboard errors to dashboard service (#51593) 2022-06-30 09:31:54 -04:00
validator_test.go feat(nested folders): add CountDashboardsInFolder (#57847) 2022-11-02 09:15:50 -04:00
validator.go Provisioning: Fix duplicate validation when multiple organizations have been configured (#44151) 2022-01-26 11:33:31 +01:00