-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
chore: Upgrade Webpack to v5 #16701
chore: Upgrade Webpack to v5 #16701
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16701 +/- ##
=======================================
Coverage 76.98% 76.99%
=======================================
Files 1007 1007
Lines 54174 54180 +6
Branches 7463 7467 +4
=======================================
+ Hits 41708 41714 +6
Misses 12226 12226
Partials 240 240
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/testenv up |
@kgabryje Ephemeral environment spinning up at http://35.163.128.192:8080. Credentials are |
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.
amazing, thanks for tackling this! let's let it soak for a couple days, but we can probably merge by EOW if no one has any concerns
@@ -129,7 +129,7 @@ | |||
"lodash": "^4.17.21", | |||
"lodash-es": "^4.17.21", | |||
"match-sorter": "^6.1.0", | |||
"mathjs": "^8.0.1", |
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 will be a great perf win too!
671b8bf
to
c34d5fb
Compare
/testenv up |
@junlincc Ephemeral environment spinning up at http://54.200.57.4:8080. Credentials are |
Screen.Recording.2021-09-16.at.11.15.38.AM.mov |
I was able to repro this locally. This seems to be an unrelated bug affecting |
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.
Some comments, but in general LGTM and seems to work great!
let numScripts = 0; | ||
cy.get('script').then(nodes => { | ||
numScripts = nodes.length; | ||
}); |
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.
nit: we should maybe update the test name to reflect the fact that we're testing the edit feature.
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.
Done
xit('Should not load mathjs when not needed', () => { | ||
cy.get('script[src*="mathjs"]').should('have.length', 0); | ||
}); | ||
|
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.
Note to other reviewers: we're fully removing mathjs
as a dependency right now due to bundle size and compatibility problems with Webpack 5. Related PR removing mathjs
from superset-ui
: apache-superset/superset-ui#1362
superset-frontend/src/explore/components/controls/AnnotationLayerControl/AnnotationLayer.jsx
Show resolved
Hide resolved
// clean up built assets if not from dev-server | ||
if (!isDevServer) { | ||
plugins.push( | ||
new CleanWebpackPlugin({ | ||
dry: false, | ||
// required because the build directory is outside the frontend directory: | ||
dangerouslyAllowCleanPatternsOutsideProject: true, | ||
}), | ||
); | ||
} | ||
|
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.
Is this no longer needed? I remember this having been a problem before causing lots of accumulated old bundles in the build directory.
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.
|
/testenv up FEATURE_DASHBOARD_NATIVE_FILTERS=true FEATURE_DASHBOARD_CROSS_FILTERS=true FEATURE_UX_BETA=true FEATURE_ENABLE_EXPLORE_DRAG_AND_DROP=true FEATURE_ENABLE_TEMPLATE_PROCESSING=true FEATURE_SQLLAB_BACKEND_PERSISTENCE=true |
@villebro Ephemeral environment spinning up at http://34.219.36.79:8080. Credentials are |
/testenv up FEATURE_DASHBOARD_NATIVE_FILTERS=true FEATURE_DASHBOARD_CROSS_FILTERS=true FEATURE_UX_BETA=true FEATURE_ENABLE_EXPLORE_DRAG_AND_DROP=true FEATURE_ENABLE_TEMPLATE_PROCESSING=true FEATURE_SQLLAB_BACKEND_PERSISTENCE=true FEATURE_ENABLE_DND_WITH_CLICK_UX=true |
@villebro Ephemeral environment spinning up at http://34.217.195.114:8080. Credentials are |
645bfe3
to
169a2b3
Compare
Ephemeral environment shutdown and build artifacts deleted. |
* Upgrade Webpack to v5 * Remove mapbox hack * Replace url-loaders and file-loaders with asset modules * Remove 1 rule * Change --colors to --color * Remove invalid option (--no-progress) * Remove url-loader, bump plugin * Fix AnnotationLayer formula check * Remove redundant tests * Bump cypress packages * Remove old comment * Fix tests * Remove checks for number of scripts in markdown test * Cosmetic changes * Add tests * Fix test * Fix test * Fixes test warnings * disable flaky test Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com> Co-authored-by: Michael S. Molina <michael.s.molina@gmail.com>
* Upgrade Webpack to v5 * Remove mapbox hack * Replace url-loaders and file-loaders with asset modules * Remove 1 rule * Change --colors to --color * Remove invalid option (--no-progress) * Remove url-loader, bump plugin * Fix AnnotationLayer formula check * Remove redundant tests * Bump cypress packages * Remove old comment * Fix tests * Remove checks for number of scripts in markdown test * Cosmetic changes * Add tests * Fix test * Fix test * Fixes test warnings * disable flaky test Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com> Co-authored-by: Michael S. Molina <michael.s.molina@gmail.com>
SUMMARY
What's been done:
Next steps:
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
no visual changes
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION