Skip to content
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

Merged
merged 5 commits into from
Sep 27, 2024
Merged

Switch to createDataFrame #1133

merged 5 commits into from
Sep 27, 2024

Conversation

tolzhabayev
Copy link
Collaborator

@tolzhabayev tolzhabayev commented Sep 25, 2024

What this PR does / why we need it:
Move from deprecated MutableDataFrame to the function the creates DataFrame's

Which issue(s) this PR fixes:

Fixes #763

Special notes for your reviewer:

Copy link

github-actions bot commented Sep 25, 2024

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 release label before merging.
NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.

@tolzhabayev tolzhabayev self-assigned this Sep 25, 2024
@tolzhabayev tolzhabayev added patch Increment the patch version when merged documentation Changes only affect the documentation labels Sep 25, 2024
Copy link
Contributor

@sunker sunker left a 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') {
Copy link
Collaborator Author

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jackw anything against that ☝️

Copy link
Contributor

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.

@tolzhabayev tolzhabayev marked this pull request as ready for review September 25, 2024 16:57
@tolzhabayev tolzhabayev requested a review from a team as a code owner September 25, 2024 16:57
@tolzhabayev tolzhabayev requested review from oshirohugo and removed request for a team September 25, 2024 16:57
@tolzhabayev tolzhabayev enabled auto-merge (squash) September 26, 2024 11:17
@tolzhabayev tolzhabayev merged commit 6567dec into main Sep 27, 2024
11 checks passed
@tolzhabayev tolzhabayev deleted the fix/763/dataframes branch September 27, 2024 09:27
@grafana-plugins-platform-bot
Copy link

🚀 PR was released in @grafana/create-plugin@5.3.12, @grafana/plugin-e2e@1.8.2 🚀

@grafana-plugins-platform-bot grafana-plugins-platform-bot bot added the released This issue/pull request has been released. label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Changes only affect the documentation patch Increment the patch version when merged released This issue/pull request has been released.
Projects
Development

Successfully merging this pull request may close these issues.

Frontend DS template and tutorial use deprecated MutableDataFrame
2 participants