Conversation
|
This change is part of the following stack: Change managed by git-spice. |
|
Skipping CI for Draft Pull Request. |
|
Caution There are some errors in your PipelineRun template.
|
|
Images are ready for the commit at e952125. To use with deploy scripts, first |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #16055 +/- ##
=======================================
Coverage 48.69% 48.69%
=======================================
Files 2606 2606
Lines 191745 191745
=======================================
+ Hits 93363 93364 +1
+ Misses 91051 91049 -2
- Partials 7331 7332 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
55dde77 to
e786728
Compare
|
/test gke-ui-e2e-tests |
e786728 to
d25ece2
Compare
|
/test gke-ui-e2e-tests |
d25ece2 to
404a6ce
Compare
e976e9c to
01cc05a
Compare
404a6ce to
a3f0366
Compare
sachaudh
left a comment
There was a problem hiding this comment.
From your walkthrough and another look, it LGTM. Maybe Brad can take another look since he did the upgrade. He probably has more context about the React Router API differences and any little kinks that could be missed.
a3f0366 to
e952125
Compare
|
/retest |
Description
Moves from
react-routerv6 toreact-router-dom-v5-compatin order to have compatibility as an OCP plugin. Fortunately, as the compat layer uses react-router v6 under the hood, we do not need to change any of the existing v6 APIs that were implemented in #13628. Instead, we just need to change the main Router wrapping components at the top level, and revert to theconnected-react-routerlibrary to wire the history up to context.The core changes:
import ... from 'react-router-dom';withimport ... from 'react-router-dom-v5-compat';in all files. This is the vast majority of file diffs, but is a superficial change.redux-first-historyback toconnected-react-router. Primarily changing https://github.com/stackrox/stackrox/pull/16055/files#diff-17b63ecf711b742a7a122239cda060614dd22df1c31fa64cca750d83ae1f2dbd and https://github.com/stackrox/stackrox/pull/16055/files#diff-a9b7b8ed21a6d16377e9fbf2442ec7bcfa40b6f2df96e3ccf19b7a78c7074dc6ConnectedRouteras the main router provider, and then wrap this around a<CompatRouter>from the compatibility library in https://github.com/stackrox/stackrox/pull/16055/files#diff-64c2528d02a317cf6976a2b62b1f7959a7533009d976ade7210696ffe3ae260bFollow ups
User-facing documentation
Testing and quality
Automated testing
How I validated my change
CI
Manual smoke testing of behavior throughout the app.