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

[deps]: Upgrade redux and react-redux to latest version #2623

Merged
merged 2 commits into from
Jan 25, 2025

Conversation

hari45678
Copy link
Contributor

Which problem is this PR solving?

Description of the changes

  • With redux 5, type of an action is now a string. According to them, this change is to make the action obj serializable. Change log: https://redux.js.org/usage/migrations/migrating-rtk-2#action-types-must-be-strings
  • In the test, due to some import error, redux no longer has configurable properties, and jest requires them to be configurable for spying and changing their behavior. More context on this.
  • Since we are using requireActual in jest.mock, it would anyway be the actual implementation of functions for other test cases.

How was this change tested?

  • npm run start is working fine

How was this upgrade carried out?

  1. npm uninstall react-redux -w packages/jaeger-ui to remove react-redux
  2. npm uninstall redux -w packages/jaeger-ui to remove redux
  3. npm install react-redux -w packages/jaeger-ui to install react-redux latest version. This installed the latest version but the package was nested in jaeger-ui node modules so had to do step 4.
  4. Even with 2nd step, there was an entry of redux v4.2.1 in lockfile and package was installed in root node_modules.
  5. I manually removed that entry from lockfile, and again ran npm install redux -w packages/jaeger-ui. This worked.
  6. Again ran npm uninstall react-redux -w packages/jaeger-ui to remove react-redux nested entry in lockfile
  7. npm install react-redux -w packages/jaeger-ui to install react-redux latest version. This finally created an entry in root node_modules in lockfile.

Checklist

Signed-off-by: Hariom Gupta <guptahariom03082003@gmail.com>
@hari45678 hari45678 requested a review from a team as a code owner January 24, 2025 14:32
@hari45678 hari45678 requested review from mahadzaryab1 and removed request for a team January 24, 2025 14:32
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.61%. Comparing base (ece0461) to head (ea6ea52).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2623   +/-   ##
=======================================
  Coverage   96.61%   96.61%           
=======================================
  Files         255      255           
  Lines        7738     7738           
  Branches     1937     2004   +67     
=======================================
  Hits         7476     7476           
  Misses        262      262           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yurishkuro yurishkuro added the changelog:dependencies Update to dependencies label Jan 25, 2025
Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

Thanks!

@yurishkuro yurishkuro enabled auto-merge (squash) January 25, 2025 21:53
@yurishkuro yurishkuro merged commit b2d6e2e into jaegertracing:main Jan 25, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:dependencies Update to dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Deps]: Upgrade react-redux to 9.x
2 participants