feat: add library elements to dash service (#114016)

This commit is contained in:
Costa Alexoglou
2025-11-18 09:21:05 +01:00
committed by GitHub
parent d6e81c6334
commit faabe2e46d
12 changed files with 162 additions and 36 deletions
@@ -6,6 +6,19 @@ import (
"github.com/grafana/grafana/apps/dashboard/pkg/migration/schemaversion"
)
// EmptyLibraryElementProvider provides an empty library element list for tests
type EmptyLibraryElementProvider struct{}
// NewLibraryElementProvider creates a new empty library element provider for tests
func NewLibraryElementProvider() *EmptyLibraryElementProvider {
return &EmptyLibraryElementProvider{}
}
// GetLibraryElementInfo returns an empty list for tests
func (p *EmptyLibraryElementProvider) GetLibraryElementInfo(_ context.Context) []schemaversion.LibraryElementInfo {
return []schemaversion.LibraryElementInfo{}
}
// DataSourceConfig defines different test configurations
type DataSourceConfig string