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

fix: Removes Redux state mutations - iteration 2 #23535

Conversation

michael-s-molina
Copy link
Member

SUMMARY

This iteration removes Redux state mutations from the codebase to allow us to merge #23460 without disrupting the development workflow.

TESTING INSTRUCTIONS

1 - Pull changes from #23460 to enable the immutabilityMiddleware
2 - Add or remove a native filter
3 - You shouldn't see any errors related to state mutation

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

@codecov
Copy link

codecov bot commented Mar 30, 2023

Codecov Report

Merging #23535 (dfb8f32) into master (80d1e4f) will increase coverage by 0.08%.
The diff coverage is 72.28%.

❗ Current head dfb8f32 differs from pull request most recent head 6cc1395. Consider uploading reports for the commit 6cc1395 to get more accurate results

@@            Coverage Diff             @@
##           master   #23535      +/-   ##
==========================================
+ Coverage   67.63%   67.71%   +0.08%     
==========================================
  Files        1910     1916       +6     
  Lines       73747    74018     +271     
  Branches     7988     8039      +51     
==========================================
+ Hits        49879    50124     +245     
- Misses      21826    21845      +19     
- Partials     2042     2049       +7     
Flag Coverage Δ
javascript 53.95% <63.07%> (+0.09%) ⬆️

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

Impacted Files Coverage Δ
.../packages/superset-ui-core/src/chart/types/Base.ts 100.00% <ø> (ø)
...gins/legacy-plugin-chart-world-map/src/WorldMap.js 0.00% <0.00%> (ø)
...plugins/legacy-plugin-chart-world-map/src/index.js 66.66% <ø> (ø)
...tend/plugins/legacy-preset-chart-nvd3/src/utils.js 15.92% <ø> (ø)
.../plugins/plugin-chart-echarts/src/BoxPlot/index.ts 50.00% <ø> (ø)
...d/plugins/plugin-chart-echarts/src/Funnel/index.ts 50.00% <ø> (ø)
...nd/plugins/plugin-chart-echarts/src/Gauge/index.ts 50.00% <ø> (ø)
...ns/plugin-chart-echarts/src/Graph/EchartsGraph.tsx 0.00% <0.00%> (ø)
...nd/plugins/plugin-chart-echarts/src/Graph/index.ts 50.00% <ø> (ø)
...rts/src/MixedTimeseries/EchartsMixedTimeseries.tsx 0.00% <0.00%> (ø)
... and 134 more

... and 8 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

export default React.memo(FiltersConfigModal);
export default React.memo(
connect(null, dispatch =>
bindActionCreators({ updateCascadeParentIds }, dispatch),
Copy link
Member

Choose a reason for hiding this comment

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

how about useDispatch() instead of this classic connect way since it's already FC.

Copy link
Member Author

Choose a reason for hiding this comment

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

Great idea! Done.

@michael-s-molina michael-s-molina merged commit 3cff2b0 into apache:master Apr 5, 2023
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.0.0 labels Mar 13, 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 size/M 🚢 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants