-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Video Player does not use the correct value for repeated variable #175
Comments
This should work out of the box. Have you tried to change the {
"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": 1,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "testdata",
"uid": "dd8d7fa4-67e3-4507-b42b-47250d7e76ca"
},
"description": "",
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
},
"content": "## $value",
"mode": "markdown"
},
"pluginVersion": "10.0.0-pre",
"repeat": "value",
"repeatDirection": "h",
"title": "Panel $value",
"type": "text"
}
],
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": "0",
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"hide": 0,
"includeAll": true,
"label": "Value",
"multi": false,
"name": "value",
"options": [
{
"selected": true,
"text": "All",
"value": "$__all"
},
{
"selected": false,
"text": "1",
"value": "1"
},
{
"selected": false,
"text": "2",
"value": "2"
},
{
"selected": false,
"text": "3",
"value": "3"
},
{
"selected": false,
"text": "4",
"value": "4"
}
],
"query": "1,2,3,4",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Testing",
"uid": "a9cca03a-8647-44f6-af62-b370815c178a",
"version": 6,
"weekStart": ""
} |
After investigating, I found out that panel plugins should be using |
I was able to verify that this branch works. You can see in the images below that with a multi-value variable the Video Player panel is duplicated, and each value of the template variable is used to input the stream name. The error message shows that each stream name (demo, test, example, new, old) is used, but my datasource doesn't have access to it because I didn't set up the streams or permissions. |
What happened:
When the Video Player Panel is used with a Dashboard Variable, and has the Panel in a Row that repeats by Variable, the Row Name is correct, however the Panel seems to use the "All" Variable and shows all values from the Variable, rather than the individual Variable for that row.
note that even though the titles, set as
${System}_CAM1
are correct, the video player interpolation of the value is not:From my initial investigation, the issue seems to be that the video player panel is not getting the correct value to use for
$System
.What you expected to happen:
Its expected that the Repeat Variable should be correctly used in the Video Player like it is in the Title and Row.
How to reproduce it (as minimally and precisely as possible):
Reproduction dashboard:
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: