You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
As described here, we need to investigate why this happens and reimplement custom variable support.
we need to use metricFindQuery for query variable support, otherwise the variable object resolves to {text: "Demo Wind Farm Asset", value "Demo Wind Farm Asset"}, which is not what we want, since when they are selected in dashboards, their IDs are sent in different types of queries and not their names.
The only time we would need the names is when the variables are being filtered by regex like #154. However, the solution for this in the original commit is just a consequence of the values being the same as names, and not a proper fix.
I will reopen the original ticket, since we will need to reimplement custom variable support.
We should investigate why the values resolve to {text: "Demo Wind Farm Asset", value "Demo Wind Farm Asset"} and not to the assetId. For some reason the variable value in the redux state is equal to its text, for example:
What you expected to happen:
The variable value should have value of the id. How to reproduce it (as minimally and precisely as possible):
Screenshots
Anything else we need to know?:
Environment:
Grafana version:10.2.0
Plugin version:1.10.0
OS Grafana is installed on:
User OS & Browser:
Others:
The text was updated successfully, but these errors were encountered:
From investigating the linked athena issue, the problem seems to be that CustomVariableSupport expects data frames with text and value fields. I suspect that the query we're returning doesn't have those fields, so instead it takes the first field (in the example case the name) and uses it for both values. If that is the case, we're going to have to process the results (maybe write resource handlers for them) to get them into the correct formats to be used as variables
What happened:
As described here, we need to investigate why this happens and reimplement custom variable support.
We should investigate why the values resolve to
![Screenshot 2023-10-16 at 8 54 51 PM](https://private-user-images.githubusercontent.com/16140639/275622054-b684f4e6-08b0-4b2c-9729-48a894992577.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NDU2ODksIm5iZiI6MTczODk0NTM4OSwicGF0aCI6Ii8xNjE0MDYzOS8yNzU2MjIwNTQtYjY4NGY0ZTYtMDhiMC00YjJjLTk3MjktNDhhODk0OTkyNTc3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE2MjMwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE0MWQ5ODdiODA1NGI1OGM3NjczMGU4ZWY3ZWM1MGJhOTg2ODBkNGFkMmQ4YzdiN2ZiMGJiMzkwODgzZGU4ZjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.mknfcTUP2XMuBdY0c_E4OOAtQRbkIti6YvLYgKSSqX8)
{text: "Demo Wind Farm Asset", value "Demo Wind Farm Asset"}
and not to the assetId. For some reason the variable value in the redux state is equal to its text, for example:What you expected to happen:
The variable value should have value of the id.
How to reproduce it (as minimally and precisely as possible):
Screenshots
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: