Heatmap: Migrate to CUE (#62173)

* IP migrate heatmap to cue

* WIP

* refactor

* change usages and refactor panelcfg

* CR modifications and docs

* refactor, enable heatmap cue generation, overwrite enum values in types.ts

* small refactor

* refactor types.ts

* cr modifications

* docs
This commit is contained in:
Victor Marin
2023-03-01 17:47:21 +02:00
committed by GitHub
parent 763b0fa4d5
commit e1bc3fad83
25 changed files with 773 additions and 188 deletions
+28 -2
View File
@@ -746,6 +746,30 @@
"pluralName": "GraphOldPanelCfgs",
"schemaInterface": "PanelCfg"
},
"heatmappanelcfg": {
"category": "composable",
"codeowners": [
"grafana/dataviz-squad"
],
"currentVersion": [
0,
0
],
"grafanaMaturityCount": 0,
"lineageIsGroup": true,
"links": {
"docs": "https://grafana.com/docs/grafana/next/developers/kinds/composable/heatmappanelcfg/schema-reference",
"go": "n/a",
"schema": "https://github.com/grafana/grafana/tree/main/public/app/plugins/panel/heatmap/panelcfg.cue",
"ts": "https://github.com/grafana/grafana/tree/main/public/app/plugins/panel/heatmap/panelcfg.gen.ts"
},
"machineName": "heatmappanelcfg",
"maturity": "merged",
"name": "HeatmapPanelCfg",
"pluralMachineName": "heatmappanelcfgs",
"pluralName": "HeatmapPanelCfgs",
"schemaInterface": "PanelCfg"
},
"histogrampanelcfg": {
"category": "composable",
"codeowners": [
@@ -1920,6 +1944,7 @@
"graphitedataquery",
"graphitedatasourcecfg",
"grapholdpanelcfg",
"heatmappanelcfg",
"histogrampanelcfg",
"iconpanelcfg",
"jaegerdataquery",
@@ -1958,7 +1983,7 @@
"zipkindataquery",
"zipkindatasourcecfg"
],
"count": 65
"count": 66
},
"core": {
"name": "core",
@@ -2024,13 +2049,14 @@
"alertgroupspanelcfg",
"azuremonitordataquery",
"cloudwatchdataquery",
"heatmappanelcfg",
"playlist",
"preferences",
"publicdashboard",
"serviceaccount",
"team"
],
"count": 8
"count": 9
},
"planned": {
"name": "planned",
@@ -63,6 +63,7 @@ func corePlugins(rt *thema.Runtime) []pfs.ParsedPlugin {
parsePluginOrPanic("public/app/plugins/panel/geomap", "geomap", rt),
parsePluginOrPanic("public/app/plugins/panel/gettingstarted", "gettingstarted", rt),
parsePluginOrPanic("public/app/plugins/panel/graph", "graph", rt),
parsePluginOrPanic("public/app/plugins/panel/heatmap", "heatmap", rt),
parsePluginOrPanic("public/app/plugins/panel/histogram", "histogram", rt),
parsePluginOrPanic("public/app/plugins/panel/icon", "icon", rt),
parsePluginOrPanic("public/app/plugins/panel/live", "live", rt),