mirror of https://github.com/grafana/grafana
SearchV2: Fix reading library panels (#92961)
* Fix reading of library panel field * Add test to check reading of library panel fieldpull/92979/head
parent
ebd17adecf
commit
47cd8288cd
@ -0,0 +1,30 @@ |
||||
{ |
||||
"id": 345, |
||||
"title": "The libraryPanel field should get read properly despite the version being an integer", |
||||
"tags": null, |
||||
"datasource": [ |
||||
{ |
||||
"uid": "default.uid", |
||||
"type": "default.type" |
||||
} |
||||
], |
||||
"panels": [ |
||||
{ |
||||
"id": 454, |
||||
"title": "Example title", |
||||
"type": "timeseries", |
||||
"libraryPanel": "dfkljg98345dkf", |
||||
"datasource": [ |
||||
{ |
||||
"uid": "default.uid", |
||||
"type": "default.type" |
||||
} |
||||
] |
||||
} |
||||
], |
||||
"schemaVersion": 39, |
||||
"linkCount": 0, |
||||
"timeFrom": "now-6h", |
||||
"timeTo": "now", |
||||
"timezone": "" |
||||
} |
@ -0,0 +1,83 @@ |
||||
{ |
||||
"annotations": { |
||||
"list": [ |
||||
{ |
||||
"builtIn": 1, |
||||
"datasource": { |
||||
"type": "datasource", |
||||
"uid": "grafana" |
||||
}, |
||||
"enable": true, |
||||
"hide": true, |
||||
"iconColor": "rgba(0, 211, 255, 1)", |
||||
"name": "The libraryPanel field should get read properly despite the version being an integer", |
||||
"type": "dashboard" |
||||
} |
||||
] |
||||
}, |
||||
"editable": true, |
||||
"fiscalYearStartMonth": 0, |
||||
"graphTooltip": 0, |
||||
"id": 345, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"description": "", |
||||
"fieldConfig": { |
||||
"defaults": {}, |
||||
"overrides": [] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 15 |
||||
}, |
||||
"id": 454, |
||||
"libraryPanel": { |
||||
"name": "example name", |
||||
"uid": "dfkljg98345dkf", |
||||
"version": 2001 |
||||
}, |
||||
"options": { |
||||
"legend": { |
||||
"calcs": [], |
||||
"displayMode": "hidden", |
||||
"placement": "bottom" |
||||
}, |
||||
"tooltip": { |
||||
"mode": "single" |
||||
} |
||||
}, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"type": "graphite", |
||||
"uid": "000000001" |
||||
}, |
||||
"refId": "A" |
||||
} |
||||
], |
||||
"title": "Example title", |
||||
"transparent": true, |
||||
"type": "timeseries" |
||||
} |
||||
], |
||||
"preload": false, |
||||
"refresh": "", |
||||
"schemaVersion": 39, |
||||
"tags": [], |
||||
"templating": { |
||||
"list": [] |
||||
}, |
||||
"time": { |
||||
"from": "now-6h", |
||||
"to": "now" |
||||
}, |
||||
"timepicker": {}, |
||||
"timezone": "", |
||||
"title": "The libraryPanel field should get read properly despite the version being an integer", |
||||
"uid": "sdjf03945834sdkf", |
||||
"version": 33, |
||||
"weekStart": "" |
||||
} |
Loading…
Reference in new issue