Move dashboard scuemata to grafana-schema (#38470)

* Relocate dashboard scuemata to grafana-schema

* Update assorted tests, vars with dashboard path

* Remove crufty commented var

* Not sure...why that failed

* Remove prefix from base dashboard path var

* Move cue/ui remnants into grafana-schema

* Update import paths in plugin models

* Remove mudball, add package statements

* Remove cuegen.sh

Wooooo we ain't got no codegen

* Revert "Remove mudball, add package statements"

This reverts commit 9bed3098f1.

* Tidy up all the cue files

* Move dashboard scuemata into scuemata/ subdir

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
sam boyer
2021-08-25 06:55:04 -04:00
committed by GitHub
co-authored by Ryan McKinley
parent a19ad25eaa
commit e61bc33163
25 changed files with 152 additions and 574 deletions
+2 -6
View File
@@ -5,15 +5,11 @@ import (
"io/fs"
)
// CoreSchema embeds all CUE files within the cue/ subdirectory.
// CoreSchema embeds all core CUE files, which live in packages/grafana-schema/src
//
// TODO good rule about where to search
//
//go:embed cue/*/*.cue
//go:embed cue.mod cue packages/grafana-schema/src/schema/*.cue packages/grafana-schema/src/scuemata/*/*.cue
var CoreSchema embed.FS
// TODO good rule about where to search
//
//go:embed public/app/plugins/*/*/*.cue public/app/plugins/*/*/plugin.json
var base embed.FS