-
Notifications
You must be signed in to change notification settings - Fork 271
feat(control-utils): add shared controls + dependencies, convert to typescript #459
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/superset/superset-ui/75ze770q4 |
This should be the last piece necessary to add to (except the DeckGL charts, they have some other dependency stuff going on that will need to be handled separately) |
Codecov Report
@@ Coverage Diff @@
## master #459 +/- ##
==========================================
+ Coverage 22.38% 22.74% +0.35%
==========================================
Files 270 275 +5
Lines 6562 6670 +108
Branches 608 644 +36
==========================================
+ Hits 1469 1517 +48
- Misses 5056 5113 +57
- Partials 37 40 +3
Continue to review full report at Codecov.
|
I'm making changes to the code coverage check: #468 |
Please rebase from master and that should resolve the coverage |
e83fdfa
to
f223c37
Compare
Rebased and should be ready for merge pending CI |
6ef521e
to
a415cb7
Compare
This is still failing coverage after rebasing. I'd like to just merge it since tests are passing and we've agreed to forego coverage for these files. |
Damn, the coverage rule still does not work, as |
Merged and created a PR to fix the coverage in the meantime: #482 |
🏆 Enhancements
Brought in the remaining shared controls from incubator-superset. This is a prerequisite for moving many of the controlPanels into the chart plugins.
When typing the
shared-controls
module, I did my best but had to useunknown
in several places. I propose merging the types as-is, and putting together a set of properly fleshed-out types for the controls system separately, since that will be very useful for plugin writers/maintainers. I don't feel well-equipped to do that myself.There are many subtle changes to these files due to differences in typescript/linter requirements between projects. Looking at the diff between these files and their originals in incubator-superset might be the best way to review.
I know this brings test coverage down, but I don't have the bandwidth to write tests for everything in shared-controls.tsx. I don't think adding tests would actually provide any real quality improvements anyway, since those functions are so closely tied to external behavior and have almost no behavior of their own.