Chore: Remove pfs.GrafanaPlugin from schemas (#71884)

Remove pfs.GrafanaPlugin from schemas
This commit is contained in:
Selene 2023-07-19 09:46:13 +02:00 committed by GitHub
parent 173c87beb5
commit f75a3d04cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 1 additions and 64 deletions

View File

@ -85,12 +85,6 @@ func main() {
}
for _, pp := range corelist.New(nil) {
// ElasticSearch composable kind causes the CUE evaluator to hand
// see https://github.com/grafana/grafana/pull/68034#discussion_r1187800059
if pp.Properties.Id == "elasticsearch" {
continue
}
for _, kind := range pp.ComposableKinds {
if len(kindArgs) > 0 && !contains(kindArgs, kind.Name()) {
continue

View File

@ -196,13 +196,7 @@ func ParsePluginFS(fsys fs.FS, rt *thema.Runtime) (ParsedPlugin, error) {
})
bi.Files = append(bi.Files, f)
gpi := ctx.BuildInstance(bi)
// Temporary hack while we figure out what in the elasticsearch lineage turns
// this into an endless loop in thema, and why unifying twice is anything other
// than a total no-op.
if pp.Properties.Id != "elasticsearch" {
gpi = gpi.Unify(gpv)
}
gpi := ctx.BuildInstance(bi).Unify(gpv)
if gpi.Err() != nil {
return ParsedPlugin{}, errors.Wrap(errors.Promote(ErrInvalidGrafanaPluginInstance, pp.Properties.Id), gpi.Err())
}

View File

@ -16,12 +16,8 @@ package grafanaplugin
import (
common "github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
// This file (with its sibling .cue files) implements pfs.GrafanaPlugin
pfs.GrafanaPlugin
composableKinds: DataQuery: {
maturity: "merged"

View File

@ -16,11 +16,8 @@ package grafanaplugin
import (
"github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
pfs.GrafanaPlugin
composableKinds: DataQuery: {
maturity: "merged"

View File

@ -16,12 +16,8 @@ package grafanaplugin
import (
common "github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
// This file (with its sibling .cue files) implements pfs.GrafanaPlugin
pfs.GrafanaPlugin
composableKinds: DataQuery: {
maturity: "experimental"

View File

@ -16,12 +16,8 @@ package grafanaplugin
import (
"github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
// This file (with its sibling .cue files) implements pfs.GrafanaPlugin
pfs.GrafanaPlugin
composableKinds: DataQuery: {
maturity: "experimental"

View File

@ -16,12 +16,8 @@ package grafanaplugin
import (
"github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
// This file (with its sibling .cue files) implements pfs.GrafanaPlugin
pfs.GrafanaPlugin
composableKinds: DataQuery: {
maturity: "experimental"

View File

@ -16,12 +16,8 @@ package grafanaplugin
import (
"github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
// This file (with its sibling .cue files) implements pfs.GrafanaPlugin
pfs.GrafanaPlugin
composableKinds: DataQuery: {
maturity: "experimental"

View File

@ -16,12 +16,8 @@ package grafanaplugin
import (
"github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
// This file (with its sibling .cue files) implements pfs.GrafanaPlugin
pfs.GrafanaPlugin
composableKinds: DataQuery: {
maturity: "experimental"

View File

@ -16,12 +16,8 @@ package grafanaplugin
import (
common "github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
// This file (with its sibling .cue files) implements pfs.GrafanaPlugin
pfs.GrafanaPlugin
composableKinds: DataQuery: {
maturity: "experimental"

View File

@ -16,12 +16,8 @@ package grafanaplugin
import (
"github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
// This file (with its sibling .cue files) implements pfs.GrafanaPlugin
pfs.GrafanaPlugin
composableKinds: DataQuery: {
maturity: "experimental"

View File

@ -16,12 +16,8 @@ package grafanaplugin
import (
"github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
// This file (with its sibling .cue files) implements pfs.GrafanaPlugin
pfs.GrafanaPlugin
composableKinds: DataQuery: {
maturity: "experimental"

View File

@ -14,14 +14,6 @@
package grafanaplugin
import (
// "github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
// This file (with its sibling .cue files) implements pfs.GrafanaPlugin
pfs.GrafanaPlugin
composableKinds: PanelCfg: {
maturity: "experimental"

View File

@ -16,12 +16,8 @@ package grafanaplugin
import (
"github.com/grafana/grafana/packages/grafana-schema/src/common"
"github.com/grafana/grafana/pkg/plugins/pfs"
)
// This file (with its sibling .cue files) implements pfs.GrafanaPlugin
pfs.GrafanaPlugin
composableKinds: PanelCfg: {
maturity: "experimental"