-
Notifications
You must be signed in to change notification settings - Fork 25
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
Migrate to create-plugin and Update package version for grafana-sankey-plugin and grafana-chord-plugin #536
Conversation
Codecov Report
@@ Coverage Diff @@
## main #536 +/- ##
==========================================
+ Coverage 70.51% 70.60% +0.09%
==========================================
Files 40 45 +5
Lines 5253 5511 +258
Branches 0 41 +41
==========================================
+ Hits 3704 3891 +187
- Misses 1372 1436 +64
- Partials 177 184 +7
*This pull request uses carry forward flags. Click here to find out more.
|
409d129
to
01f0d57
Compare
/theia-test-e2e |
7ba260e
to
d440ff9
Compare
plugins/grafana-custom-plugins/grafana-chord-plugin/src/ChordPanel.test.tsx
Show resolved
Hide resolved
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.
overall LGTM, just some nits
plugins/grafana-custom-plugins/grafana-chord-plugin/.config/Dockerfile
Outdated
Show resolved
Hide resolved
c2c06fc
to
9b9a34a
Compare
…y-plugin and grafana-chord-plugin we do: 1. Migration from toolkit to create-plugin for grafana-sankey-plugin and grafana-chord-plugin. 2. Update node version as create-plugin doesn't support node-version < 18. 3. Update @grafana/ui and @grafana/data for grafana-sankey-plugin and grafana-chord-plugin. 4. Update the unit test for grafana-sankey-plugin and grafana-chord-plugin. Note: 1. Couple of dependencies are updated by create-plugin automatically. 2. .config file is generated by create-plugin automatically. 3. Do not update the version of "react" and "react-dom" to the version higher than 16, as we are using enzyme-adapter-react-16. Using version higher than 16 will break the unit test and show error Cannot read property 'child' of undefined 4. The reason we add transformIgnorePatterns in jest.config.js is because we are not using grafana/toolkit to run the test and Jest failed to parse a file. This happens e.g. when our code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Signed-off-by: Yun-Tang Hsu <hsuy@vmware.com>
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
/theia-test-e2e |
In this PR we do:
Reviewer can focus on files [ package.json/jest.config.js/ChordPanel.test.tsx/ChordPanel.tsx/SankeyPanel.tsx]
Note:
Cannot read property 'child' of undefined
Granafa pictures: