mirror of https://github.com/grafana/grafana
Unified Storage Search: Add sprinkles (#97820)
* Wire up sprinkles to oss and enterprise. Fetching sprinkles not implemented yet. * Adds wireset for initializing document builders. Had to init it when creating the service to avoid cyclical imports. * updates to int64 for stats * adds config for sprinklesApiServer and gets sprinkles from there when its present * add comment for later * adds feature toggle for sprinkles. returns empty results when flag not enabled. * adds unified storage config setting for sprinkles apiserver page limit * fixes bug where dashboard uid was not getting set * when creating dashboard summary, use metadata.name as the dashboard uid * cleans up wire. use existing oss and enterprise sets to generate doc builders * remove old wireset * fix linter - adds missing arg for doc builders * update dashboard stats in tests * updates test-data dashboards * log a warning instead of returning an error if we can't get sprinkles for a namespace * dont read uid from dashboard jsonpull/98547/head
parent
54e603e552
commit
4837585cab
|
@ -0,0 +1,15 @@ |
||||
package search |
||||
|
||||
import ( |
||||
"context" |
||||
) |
||||
|
||||
type OssDashboardStats struct{} |
||||
|
||||
func ProvideDashboardStats() *OssDashboardStats { |
||||
return &OssDashboardStats{} |
||||
} |
||||
|
||||
func (s *OssDashboardStats) GetStats(ctx context.Context, namespace string) (map[string]map[string]int64, error) { |
||||
return nil, nil |
||||
} |
Loading…
Reference in new issue