### What happened?
Accessing an element from a variable of type array yields th…e entire variable.
- `${myvar}` --> yields the entire array
- `${myvar.0}` --> yields the entire array
- `${myvar.1}` --> yields the entire array
All yield the same value. It is not possible to select an element from the array.
### What did you expect to happen?
- `${myvar}` --> yields the entire array
- `${myvar.0}` --> yields the first element of the array
- `${myvar.1}` --> yields the second element of the array
### Did this work before?
It worked in version 11.2.2.
It is broken in version 11.3.0.
### How do we reproduce it?
1. Create an Infinity Datasource with No Auth
2. Import this dashboard
`dashboard.json`
```json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 43,
"links": [],
"panels": [
{
"datasource": {
"name": "${datasource}",
"type": "yesoreyeram-infinity-datasource",
"uid": "${datasource}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": ["sum"],
"show": false
},
"showHeader": true
},
"pluginVersion": "11.2.2",
"targets": [
{
"columns": [],
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "${datasource}"
},
"filters": [],
"format": "table",
"global_query_id": "",
"refId": "A",
"root_selector": "",
"source": "url",
"type": "json",
"url": "https://jsonplaceholder.typicode.com/posts/${myvararray.0}",
"url_options": {
"data": "",
"method": "GET"
}
}
],
"type": "table"
}
],
"schemaVersion": 39,
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": ["All"],
"value": ["$__all"]
},
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "de3tjbvbn2fwgf"
},
"definition": "posts- (infinity) json",
"description": "Selecting one entry works\nSelecting 2 entries breaks the query",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "myvararray",
"options": [],
"query": {
"infinityQuery": {
"columns": [
{
"selector": "id",
"text": "id",
"type": "string"
}
],
"filters": [],
"format": "table",
"parser": "backend",
"refId": "variable",
"root_selector": "",
"source": "url",
"type": "json",
"url": "https://jsonplaceholder.typicode.com/posts",
"url_options": {
"data": "",
"method": "GET"
}
},
"query": "",
"queryType": "infinity"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": "posts",
"value": "de3tjbvbn2fwgf"
},
"hide": 0,
"includeAll": false,
"multi": false,
"name": "datasource",
"options": [],
"query": "yesoreyeram-infinity-datasource",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Debug Dashboard",
"uid": "de3tjviczek1sc",
"version": 9,
"weekStart": ""
}
```
4. In Settings -> Variables -> myvararray, select the Infinity Datasource you have created in step 1 to generate a list of IDs
5. Go back on the Dashboard main view
6. In the `datasource` dropdown. select the Infinity Datasource created in step one
7. In the `myvararray` dropdown, select one element ==> It works for Grafana 11.2.2 and 11.3.0
8. In the `myvararray` dropdown, select two elements ==> It breaks the panel for Grafana 11.3.0 even though we have requested: `https://jsonplaceholder.typicode.com/posts/${myvararray.0}`
### Is the bug inside a dashboard panel?
_No response_
### Environment (with versions)?
Grafana: 11.3.0
OS: Linux
Browser: Firefox 132.0.1
### Grafana platform?
Kubernetes
### Datasource(s)?
_No response_