superset icon indicating copy to clipboard operation
superset copied to clipboard

chore(hail mary): Update package-lock.json via npm-audit-fix

Open rusackas opened this issue 1 year ago • 3 comments

SUMMARY

Just thought this was worth a shot to see if it can pass CI. This removes our dependency warnings from: (37 moderate, 33 high, 14 critical) to (31 moderate, 28 high, 1 critical)

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

Good luck, CI.

ADDITIONAL INFORMATION

  • [ ] Has associated issue:
  • [ ] Required feature flags:
  • [ ] Changes UI
  • [ ] Includes DB Migration (follow approval process in SIP-59)
    • [ ] Migration is atomic, supports rollback & is backwards-compatible
    • [ ] Confirm DB migration upgrade and downgrade tested
    • [ ] Runtime estimates and downtime expectations provided
  • [ ] Introduces new feature or API
  • [ ] Removes existing feature or API

rusackas avatar Jan 19 '24 20:01 rusackas

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (753ef69) 67.16% compared to head (2e681c8) 67.18%. Report is 5 commits behind head on master.

Files Patch % Lines
...ns/plugin-chart-word-cloud/src/chart/WordCloud.tsx 0.00% 4 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #26693      +/-   ##
==========================================
+ Coverage   67.16%   67.18%   +0.01%     
==========================================
  Files        1902     1902              
  Lines       74454    74528      +74     
  Branches     8304     8327      +23     
==========================================
+ Hits        50009    50070      +61     
- Misses      22391    22397       +6     
- Partials     2054     2061       +7     
Flag Coverage Δ
javascript 56.90% <55.55%> (+0.04%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jan 19 '24 20:01 codecov[bot]

It seems this is mostly blocked by typescript problems... this might be fixable, which would be fantastic from a security perspective.

rusackas avatar Jan 19 '24 20:01 rusackas

Screenshot 2024-01-30 at 10 11 07 AM

mistercrunch avatar Jan 30 '24 18:01 mistercrunch

Rekindling this effort, now that storybook is in. This will probably break a whole slew of things, but I'll try to patch what I spot...

Here's the good news, if we can pull this off: image

rusackas avatar Feb 15 '24 16:02 rusackas

/testenv up

rusackas avatar Feb 15 '24 17:02 rusackas

@mistercrunch @michael-s-molina this finally passed CI! With this, vm2 is the only critical dependency, but removing it is a breaking change (killing JS tooltips) so we'll have to punt that to 5.0.

This will need testing, so I'm spinning up a test environment. I'm most worried about things that use Airbnb dependencies (data-ui, visx, vx) since those are not well maintained, and their use is not well tested. Legacy charts that use them may be quietly broken by this PR. Let me know if you want to join in on the testing effort, and we can coordinate a bit.

rusackas avatar Feb 15 '24 17:02 rusackas

Now I'm curious to pull this branch and run npm audit, this is great progress! Now if we can fix https://github.com/apache/superset/pull/26944 on the Python side we'll be golden

mistercrunch avatar Feb 15 '24 17:02 mistercrunch

Tempting as it is, I won't click merge yet... I strongly suspect this PR breaks some charts, and they won't be easily fixable without some pretty deep rewrites... particularly the histogram.

If we're willing to kill off some charts that have no replacement due to package vulnerabilities, we can take that route, but it sure seems like it'd need official consensus, and that ship has sailed for 4.0.

rusackas avatar Feb 15 '24 18:02 rusackas

Hmm... I thought ephemerals were working again... 😞

rusackas avatar Feb 15 '24 18:02 rusackas

If we're willing to kill off some charts that have no replacement due to package vulnerabilities, we can take that route, but it sure seems like it'd need official consensus, and that ship has sailed for 4.0.

Yep, that would have been a great 4.0 proposal 😢 I do think we should do that in 5.0 though given the security implications.

michael-s-molina avatar Feb 15 '24 18:02 michael-s-molina

Impacted things to test:

  • Sparkline cell (Timeseries Table)
  • Histogram
  • ...and more?

Results:

Histogram seems to work (even if it is giving me the finger) image

Sparkline seems to work, too! image

rusackas avatar Feb 15 '24 19:02 rusackas

I think the data-ui problem I was thinking of was part of the React 17 upgrade effort, and this PR doesn't break it. I'll merge this if/when CI passes.

rusackas avatar Feb 15 '24 19:02 rusackas