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

[build] Bump superset-ui packages and update build #9241

Merged
merged 1 commit into from
Mar 5, 2020

Conversation

etr2460
Copy link
Member

@etr2460 etr2460 commented Mar 4, 2020

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

Recently there's been some build config changes in the superset-ui repos, this pulls the new packages into Superset and updates the build to work appropriately

TEST PLAN

View a dashboard and see that charts still work as expected
Screen Shot 2020-03-04 at 2 40 38 PM

ensure npm run prod and npm run build still work

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

to: @kristw @graceguo-supercat @rusackas @nytai

@kristw
Copy link
Contributor

kristw commented Mar 4, 2020

@etr2460 Build error related to jestjs/jest#8660
Perhaps remove modules: false from babel config according to one of the comments.

@etr2460
Copy link
Member Author

etr2460 commented Mar 4, 2020

Yup, just saw that. Hopefully CI passes now

@etr2460 etr2460 force-pushed the erik-ritter--update-build branch 3 times, most recently from 9fbbf85 to 5007640 Compare March 5, 2020 20:13
@kristw kristw self-requested a review March 5, 2020 20:49
@codecov-io
Copy link

codecov-io commented Mar 5, 2020

Codecov Report

Merging #9241 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #9241   +/-   ##
=======================================
  Coverage   58.93%   58.93%           
=======================================
  Files         373      373           
  Lines       12014    12014           
  Branches     2945     2945           
=======================================
  Hits         7080     7080           
  Misses       4755     4755           
  Partials      179      179

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 969bc87...6f3bb33. Read the comment docs.

['@babel/plugin-transform-runtime', { corejs: 3 }],
],
env: {
test: {
Copy link
Contributor

Choose a reason for hiding this comment

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

after all the pain of figuring this out, should we add comments for why the different test config is needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

comment added

@@ -19,6 +19,7 @@
import React from 'react';
import { shallow } from 'enzyme';
import { Overlay, Tooltip } from 'react-bootstrap';
import { promiseTimeout } from '@superset-ui/core';
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably not needed if you are not using it.

Copy link
Member Author

Choose a reason for hiding this comment

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

ugh, yup. idk why a linter didn't catch this :(

@@ -17,6 +17,7 @@
* under the License.
*/
module.exports = {
timers: 'real',
Copy link
Contributor

Choose a reason for hiding this comment

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

not needed. default is real. I have tried removing and it works.

@@ -18,7 +18,7 @@
*/
import React from 'react';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import { promiseTimeout } from '@superset-ui/core';
Copy link
Contributor

Choose a reason for hiding this comment

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

Could use async pattern similar to other ones for consistency.

Copy link
Member Author

Choose a reason for hiding this comment

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

fair enough

@etr2460 etr2460 merged commit 786e575 into apache:master Mar 5, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants