-
Notifications
You must be signed in to change notification settings - Fork 32
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
Switch to createDataFrame #1133
Conversation
Hello! 👋 This repository uses Auto for releasing packages using PR labels. ✨ This PR can be merged but will not trigger a new release. To trigger a new release add the |
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
@@ -77,7 +76,7 @@ export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> { | |||
} | |||
} catch (err) { | |||
let message = ''; | |||
if (_.isString(err)) { | |||
if (typeof err === 'string') { |
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.
I couldn't find any other places we are using lodash
on scaffolding so I removed it - the developers can add it back when needed and it is removed by webpack on bundle anyway.
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.
@jackw anything against that ☝️
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.
👍
This method is a bit of a mess, so would be nice to improve at some point. Maybe grafana/data could expose a function that returns message from an unknown error.
🚀 PR was released in |
What this PR does / why we need it:
Move from deprecated
MutableDataFrame
to the function the createsDataFrame
'sWhich issue(s) this PR fixes:
Fixes #763
Special notes for your reviewer: