Skip to content

ROX-29846: Reverts the UI to rr5 compat layer for OCP compatibility#16055

Merged
dvail merged 1 commit intomasterfrom
dv/ROX-29846-revert-to-react-router-v5-compat-layer
Jul 23, 2025
Merged

ROX-29846: Reverts the UI to rr5 compat layer for OCP compatibility#16055
dvail merged 1 commit intomasterfrom
dv/ROX-29846-revert-to-react-router-v5-compat-layer

Conversation

@dvail
Copy link
Copy Markdown
Contributor

@dvail dvail commented Jul 16, 2025

Description

Moves from react-router v6 to react-router-dom-v5-compat in 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 the connected-react-router library to wire the history up to context.

The core changes:

Follow ups

  1. It would be great to fully remove auth and integrations from sagas
  2. If/when we can reverse this change it should be as straightforward as reverting this PR

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

CI

Manual smoke testing of behavior throughout the app.

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Jul 16, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@red-hat-konflux
Copy link
Copy Markdown
Contributor

Caution

There are some errors in your PipelineRun template.

PipelineRun Error
quay-proxy no kind "ImageDigestMirrorSet" is registered for version "config.openshift.io/v1" in scheme "k8s.io/client-go/kubernetes/scheme/register.go:83"

@rhacs-bot
Copy link
Copy Markdown
Contributor

rhacs-bot commented Jul 16, 2025

Images are ready for the commit at e952125.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.9.x-299-ge9521253bb.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.69%. Comparing base (a2e52ee) to head (e952125).
Report is 2 commits behind head on master.

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     
Flag Coverage Δ
go-unit-tests 48.69% <ø> (+<0.01%) ⬆️

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

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dvail dvail force-pushed the dv/ROX-29846-revert-to-react-router-v5-compat-layer branch from 55dde77 to e786728 Compare July 16, 2025 20:55
@dvail
Copy link
Copy Markdown
Contributor Author

dvail commented Jul 16, 2025

/test gke-ui-e2e-tests

@dvail dvail force-pushed the dv/ROX-29846-revert-to-react-router-v5-compat-layer branch from e786728 to d25ece2 Compare July 17, 2025 16:24
@dvail
Copy link
Copy Markdown
Contributor Author

dvail commented Jul 17, 2025

/test gke-ui-e2e-tests

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @dvail - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@dvail dvail marked this pull request as ready for review July 18, 2025 17:08
@dvail dvail requested review from a team as code owners July 18, 2025 17:08
@dvail dvail changed the base branch from master to dv/better-active-state-handling-horizontal-nav July 18, 2025 20:33
@dvail dvail force-pushed the dv/ROX-29846-revert-to-react-router-v5-compat-layer branch from d25ece2 to 404a6ce Compare July 18, 2025 20:33
@dvail dvail force-pushed the dv/better-active-state-handling-horizontal-nav branch from e976e9c to 01cc05a Compare July 21, 2025 12:33
@dvail dvail force-pushed the dv/ROX-29846-revert-to-react-router-v5-compat-layer branch from 404a6ce to a3f0366 Compare July 21, 2025 12:33
Copy link
Copy Markdown
Contributor

@sachaudh sachaudh left a comment

Choose a reason for hiding this comment

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

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.

Base automatically changed from dv/better-active-state-handling-horizontal-nav to master July 23, 2025 12:08
@dvail dvail force-pushed the dv/ROX-29846-revert-to-react-router-v5-compat-layer branch from a3f0366 to e952125 Compare July 23, 2025 12:10
@dvail
Copy link
Copy Markdown
Contributor Author

dvail commented Jul 23, 2025

/retest

@dvail dvail merged commit a1280b9 into master Jul 23, 2025
139 of 167 checks passed
@dvail dvail deleted the dv/ROX-29846-revert-to-react-router-v5-compat-layer branch July 23, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants