-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: add support for Unit conversion on Custom Time Series Queries #319
Conversation
@@ -104,7 +104,7 @@ | |||
"@grafana/schema": "^10.1.2", | |||
"@grafana/ui": "^10.1.2", | |||
"deepdash": "^4.5.4", | |||
"eslint-plugin-jsdoc": "^40.1.1", | |||
"eslint-plugin-jsdoc": "48.0.4", |
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.
PR looks good (with some limitations, that we discussed), but we need to bump the version and add a changelog.MD entry
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.
- Updated the help text for the custom query button mentioning the fact that we expose the unit and unitExternalId of the original data in the label
- Bumped the package version
- Added a changelog -> let me know if there are other things to mention there
…na-datasource into unit-coversion
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.
LGTM
Problem / User story
This PR adds support for performing unit conversion on custom time series queries
Solution
targetUnit
andtargetUnitSystem
in custom time series queriesunitExternalId
andunitQuantity
unitExternalId
to time series and datapoints response types30
-> https://atchison.dev/non-legacy-form-data-source-plugin-grafana/Affected Resource types
Time series
Changes to datasource JSON model
N/A
Has documentation been updated
Yes
Have tests been updated?
No
Screenshots and examples