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

Remove pfs.GrafanaPlugin from schemas
pull/71936/head
Selene 2 years ago committed by GitHub
parent 173c87beb5
commit f75a3d04cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .github/workflows/scripts/kinds/verify-kinds.go
  2. 8
      pkg/plugins/pfs/pfs.go
  3. 4
      public/app/plugins/datasource/azuremonitor/dataquery.cue
  4. 3
      public/app/plugins/datasource/cloud-monitoring/dataquery.cue
  5. 4
      public/app/plugins/datasource/cloudwatch/dataquery.cue
  6. 4
      public/app/plugins/datasource/elasticsearch/dataquery.cue
  7. 4
      public/app/plugins/datasource/grafana-pyroscope-datasource/dataquery.cue
  8. 4
      public/app/plugins/datasource/loki/dataquery.cue
  9. 4
      public/app/plugins/datasource/parca/dataquery.cue
  10. 4
      public/app/plugins/datasource/prometheus/dataquery.cue
  11. 4
      public/app/plugins/datasource/tempo/dataquery.cue
  12. 4
      public/app/plugins/datasource/testdata/dataquery.cue
  13. 8
      public/app/plugins/panel/debug/panelcfg.cue
  14. 4
      public/app/plugins/panel/xychart/panelcfg.cue

@ -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

@ -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())
}

@ -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"

@ -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"

@ -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"

@ -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"

@ -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"

@ -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"

@ -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"

@ -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"

@ -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"

@ -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"

@ -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"

@ -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"

Loading…
Cancel
Save