chore: remove redundant service-worker.js placeholder#38348
chore: remove redundant service-worker.js placeholder#38348villebro wants to merge 1 commit intoapache:masterfrom
Conversation
Code Review Agent Run #a685b8Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (96.03%) is below the target coverage (100.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #38348 +/- ##
==========================================
+ Coverage 64.11% 64.87% +0.76%
==========================================
Files 1810 2483 +673
Lines 71175 123024 +51849
Branches 22650 28523 +5873
==========================================
+ Hits 45631 79817 +34186
- Misses 25544 41810 +16266
- Partials 0 1397 +1397
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
SUMMARY
A recent PR #36191 introduced a new file in the
/superset/staticpath that gets overwritten every time you runnpm run build. This file is redundant, as it will get rebuilt everytime you rebuild the frontend assets, and is problematic, as the rebuilt asset may accidentally get committed upstream. A workaround was merged in #38106 which avoids the rebuild onnpm run dev-server, but still remains in thenpm run buildworkflow. This PR does the following:/superset/static/service-worker.jsfile from the git tree.gitignoreto ignore the contents of/superset/static(version_info.jsonwas already being ignored - now we ignore the entire directory's contents)BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
npm run buildservice-worker.jsfile is indeed there after the changeADDITIONAL INFORMATION