-
Notifications
You must be signed in to change notification settings - Fork 8
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
Variables: add variable support #77
Conversation
@bymattoa -- most of this PR is formatting changes due to an upgrade in prettier :( |
return this.datasource.query(request).pipe( | ||
mergeMap((rsp) => { | ||
const assets = new DataFrameView<HierarchyInfo>(rsp.data[0]); | ||
const data: MetricFindValue[] = assets.map((a) => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default behavior just uses the string values as the variables... BUT for this, I assume we actually want the ids as the template value and the name as what is displayed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will also need to fetch property IDs. (See thread in conversation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're also going to need to fetch property IDs (which are available on models) as well as asset IDs. How would a user go about mapping these?
NOTE: the "Explore" button does not work -- need to investigate why, but It does not look like an easy easy fix 😢 should we merge without that fix first? |
support for query variables. Related to #113