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

chore(ESSNTL-4076): Upgrade react-router-dom to version 6 #1968

Merged
merged 8 commits into from
Aug 17, 2023

Conversation

mkholjuraev
Copy link
Contributor

Resolves: https://issues.redhat.com/browse/ESSNTL-4076

Upgrades react-router to v6 and refactors all class components to function components

@mkholjuraev mkholjuraev requested a review from a team as a code owner August 10, 2023 12:23
@mkholjuraev mkholjuraev force-pushed the router-upgrade branch 2 times, most recently from 9dbdb6e to 762855a Compare August 10, 2023 14:11
@gkarat gkarat added enhancement New feature or request dependencies Pull requests that update a dependency file :rage4: labels Aug 11, 2023
@gkarat gkarat changed the title chore: upgrade react-router chore(ESSNTL-4076): Upgrade react-router-dom to version 6 Aug 11, 2023
@@ -71,7 +70,7 @@ const EntityTable = ({
);

const defaultRowClick = (_event, key) => {
history.push(
navigate(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think here we can freely use navigate from react-router and just replace with navigate(key) (using relative path).

src/components/InventoryDetail/helpers.js Outdated Show resolved Hide resolved
src/Utilities/TestingUtilities.js Outdated Show resolved Hide resolved
src/Utilities/TestingUtilities.js Outdated Show resolved Hide resolved
src/Routes.js Show resolved Hide resolved
@mkholjuraev
Copy link
Contributor Author

@gkarat why there is a rage label?

@gkarat
Copy link
Contributor

gkarat commented Aug 16, 2023

Haha, it just reflects my feelings working on the router upgrade 😄

Copy link
Contributor

@gkarat gkarat left a comment

Choose a reason for hiding this comment

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

LGTM! The last issue was resolved, and I can see the app working fine locally. Let's push it next 🚀

@gkarat gkarat force-pushed the router-upgrade branch 2 times, most recently from 0f8c534 to a5bc2b1 Compare August 17, 2023 14:31
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 59.18% and project coverage change: -1.41% ⚠️

Comparison is base (467fb37) 62.34% compared to head (a5bc2b1) 60.93%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1968      +/-   ##
==========================================
- Coverage   62.34%   60.93%   -1.41%     
==========================================
  Files         151      153       +2     
  Lines        4809     4882      +73     
  Branches     1360     1361       +1     
==========================================
- Hits         2998     2975      -23     
- Misses       1811     1907      +96     
Files Changed Coverage Δ
src/App.js 0.00% <ø> (ø)
src/AppEntry.js 0.00% <ø> (ø)
src/Routes.js 0.00% <0.00%> (-32.00%) ⬇️
src/Utilities/RouterWrapper.js 0.00% <0.00%> (ø)
src/components/GroupSystems/GroupSystems.js 95.45% <ø> (ø)
src/components/SystemDetails/Compliance.js 33.33% <0.00%> (ø)
src/components/SystemDetails/Ros.js 25.00% <0.00%> (ø)
src/modules/AsyncInventory.js 0.00% <0.00%> (ø)
src/modules/InventoryTable.js 0.00% <ø> (ø)
src/routes/InventoryDetail.cy.js 0.00% <ø> (ø)
... and 14 more

... and 14 files with indirect coverage changes

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

@gkarat gkarat merged commit 2d9450e into RedHatInsights:master Aug 17, 2023
@gkarat
Copy link
Contributor

gkarat commented Aug 21, 2023

🎉 This PR is included in version 1.37.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants