Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-53

Preparatory work for upgrade to React Router to v6

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • A-Team

       

      • Affects assisted-installer code/team (used in ACM and OCM)
      • There is a compatability layer
      • Insights would like all tenents to use v6 singleton
      • Going to v6 paves the way for single page with content from multiple teams

      From HCC/Insights team:

      "The router package react-router-dom has undergone a lot of changes in it latest v6 major release. Frontend applications in HCC are on a v5 which is no longer the LTS. Migration to V6 comes with some challenges. Mainly a router context can no longer be nested.
      This means our applications have to adapt to the new changes."

      On Jan 9th 2023 HCC moved to React router v6.

      https://reactrouter.com/en/main/upgrading/v5

      https://github.com/RedHatInsights/better-platform-docs/blob/main/pages/guides/frontend-migrations/react-router-dom-v5-to-v6.mdx

       

      File Issue MR
      src/components/App/Router.tsx OCMUI-1299 5051
      src/components/clusters/CreateClusterPage/CreateClusterPage.jsx OCMUI-1304 5052
      src/components/clusters/ClusterDetails/components/IdentityProvidersPage/IdentityProvidersPage.jsx OCMUI-1307 5061
      src/components/clusters/ClusterDetails/ClusterDetailsClusterOrExternalId.jsx (ClusterDetailsRedirector + InsigntsRedirector) OCMUI-1310 5071
      src/components/clusters/ClusterDetails/components/AccessControl/IDPSection/IDPSection.jsx OCMUI-1325 5074
      src/components/clusters/wizards/osd/CreateOsdWizard.tsx OCMUI-1404 !5152
      Redirect components update OCMUI-1430 !5188
      Link components update OCMUI-1429 !5182
      Term Guarded routes OCMUI-1330 !5149
      ClusterList filters OCMUI-1397 !5166
      src/components/clusters/ClusterDetails/components/TabsRow/TabsRow.tsx OCMUI-1417 !5174
      src/components/App/ApiError/ApiError.tsx
      src/components/App/Insights.tsx
      src/components/clusters/common/InstallProgress/CancelClusterButton.jsx
      OCMUI-1418 !5164
      src/components/downloads/DownloadsPage/DownloadsPage.jsx OCMUI-1329 !5141
      src/components/clusters/InsightsAdvisorRedirector/InsightsAdvisorRedirector.jsx src/components/clusters/ClusterDetailsRedirector/ClusterDetailsRedirector.jsx src/components/clusters/ClusterDetails/ClusterDetailsClusterOrExternalId.jsx OCMUI-1310 !5071
      src/components/clusters/ClusterDetails/components/IdentityProvidersPage/IdentityProvidersPage.jsx OCMUI-1307 !5061
      Installer components OCMUI-1394 !5132
      src/components/clusters/CreateClusterPage/CreateClusterPage.jsx OCMUI-1304 !5052

      Tracking spreadsheet

              rh-ee-daznauro David Aznaurov
              dtaylor@redhat.com David Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: