Navtree: Add dashboard type to reduce query (#103057)

This commit is contained in:
Stephanie Hingtgen
2025-03-29 00:22:24 +02:00
committed by GitHub
parent 5fa9f2b425
commit 290e5cbe83
@@ -20,6 +20,7 @@ import (
"github.com/grafana/grafana/pkg/services/pluginsintegration/pluginsettings"
"github.com/grafana/grafana/pkg/services/pluginsintegration/pluginstore"
pref "github.com/grafana/grafana/pkg/services/preference"
"github.com/grafana/grafana/pkg/services/sqlstore/searchstore"
"github.com/grafana/grafana/pkg/services/star"
"github.com/grafana/grafana/pkg/services/supportbundles/supportbundlesimpl"
"github.com/grafana/grafana/pkg/setting"
@@ -334,6 +335,7 @@ func (s *ServiceImpl) buildStarredItemsNavLinks(c *contextmodel.ReqContext) ([]*
}
starredDashboards, err := s.dashboardService.SearchDashboards(c.Req.Context(), &dashboards.FindPersistedDashboardsQuery{
DashboardUIDs: uids,
Type: searchstore.TypeDashboard,
OrgId: c.SignedInUser.GetOrgID(),
SignedInUser: c.SignedInUser,
})