Chore: fix builds on main (#62218)

fix builds
This commit is contained in:
Ieva 2023-01-26 14:39:52 +00:00 committed by GitHub
parent f4be855e30
commit 5e1dc22f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,6 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/services/dashboards" "github.com/grafana/grafana/pkg/services/dashboards"
"github.com/grafana/grafana/pkg/services/folder" "github.com/grafana/grafana/pkg/services/folder"
"github.com/grafana/grafana/pkg/services/store/entity" "github.com/grafana/grafana/pkg/services/store/entity"
@ -32,7 +31,7 @@ func (s *k8sDashboardService) DeleteDashboard(ctx context.Context, dashboardId i
return s.orig.DeleteDashboard(ctx, dashboardId, orgId) return s.orig.DeleteDashboard(ctx, dashboardId, orgId)
} }
func (s *k8sDashboardService) FindDashboards(ctx context.Context, query *models.FindPersistedDashboardsQuery) ([]dashboards.DashboardSearchProjection, error) { func (s *k8sDashboardService) FindDashboards(ctx context.Context, query *dashboards.FindPersistedDashboardsQuery) ([]dashboards.DashboardSearchProjection, error) {
return s.orig.FindDashboards(ctx, query) return s.orig.FindDashboards(ctx, query)
} }
@ -77,7 +76,7 @@ func (s *k8sDashboardService) SaveDashboard(ctx context.Context, dto *dashboards
return s.orig.SaveDashboard(ctx, dto, allowUiUpdate) return s.orig.SaveDashboard(ctx, dto, allowUiUpdate)
} }
func (s *k8sDashboardService) SearchDashboards(ctx context.Context, query *models.FindPersistedDashboardsQuery) error { func (s *k8sDashboardService) SearchDashboards(ctx context.Context, query *dashboards.FindPersistedDashboardsQuery) error {
return s.orig.SearchDashboards(ctx, query) return s.orig.SearchDashboards(ctx, query)
} }