grafana/pkg/services/dashboards
Kristin Laemmert ef7145e4aa
feat(nested folders): Add CountAlertRulesInFolder to ngalert store (#58269)
* chore: refactor CountDashboardsInFolder to use the more efficient Count() sql function

* feat(nested folders): Add CountAlertRulesInFolder to ngalert store

This commit adds CountAlertRulesInFolder and a new model for the CountAlertRulesQuery. It returns a count of alert rules associated with a given orgID and parent folder UID. (the namespace referenced inside alert rules is the parent folder).

I'm not sure where this belongs in the ngalert service, so that will come in a future commit.
2022-11-08 11:51:00 +01:00
..
database feat(nested folders): Add CountAlertRulesInFolder to ngalert store (#58269) 2022-11-08 11:51:00 +01:00
service Revert "Chore: Refactor quota service (#57586)" (#58394) 2022-11-08 11:52:07 +02: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 Revert "Chore: Refactor quota service (#57586)" (#58394) 2022-11-08 11:52:07 +02: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 CountAlertRulesInFolder to ngalert store (#58269) 2022-11-08 11:51:00 +01:00
store_mock.go Revert "Chore: Refactor quota service (#57586)" (#58394) 2022-11-08 11:52:07 +02:00