Refactor dashboard scuemata to introduce composition slots, allow unspecified panels to validate, and re-enable devenv validation (#38727)

* Re-enable devenv dashboard validation

* Open up dashboard schema composition points

* Introduce composition space at front of scuemata

* Refactor go code to use new composition structure

* Bunch of small cleanups in dashboard.cue

* Enable both base and dist tests of devenv

* Get rid of obsolete CUE loading hacks

* Skip weird failures on these tests

Really don't seem to be testing for what we intend them to be testing
for.
This commit is contained in:
sam boyer
2021-09-06 18:53:42 -04:00
committed by GitHub
parent 0ecc24d1c0
commit 96473004db
8 changed files with 130 additions and 144 deletions
+1 -6
View File
@@ -1,4 +1,4 @@
package grafanaschema
package dashboard
import "github.com/grafana/grafana/cue/scuemata"
@@ -76,8 +76,3 @@ Dummy: scuemata.#Family & {
]
]
}
#Latest: {
#Dashboard: Dummy.latest
#Panel: Dummy.latest._Panel
}
+1 -6
View File
@@ -1,4 +1,4 @@
package grafanaschema
package dashboard
import "github.com/grafana/grafana/cue/scuemata"
@@ -76,8 +76,3 @@ Family: scuemata.#Family & {
]
]
}
#Latest: {
#Dashboard: Family.latest
#Panel: Family.latest._Panel
}