Dashboard Conversion: Set panel level datasource when converting from v2 to v1 (#115777)

* set panel level ds when converting from v2 to v1

* remove comment

* lint

* always set ds in sqr

* improve

* Apply suggestions from code review

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>

---------

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
This commit is contained in:
Haris Rozajac
2026-01-05 07:37:57 -07:00
committed by GitHub
parent 99cabcb8be
commit ab4ccef319
105 changed files with 1880 additions and 46 deletions
@@ -80,6 +80,10 @@
"liveNow": false,
"panels": [
{
"datasource": {
"type": "grafana-testdata-datasource",
"uid": "gdev-testdata"
},
"description": "This should resolve to the grafana-testdata-datasource datasource",
"fieldConfig": {
"defaults": {
@@ -170,6 +174,9 @@
"type": "timeseries"
},
{
"datasource": {
"type": "elasticsearch"
},
"description": "This should resolve to the first elasticsearch datasource",
"fieldConfig": {
"defaults": {