Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-2831

Include cluster name in console URLs

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • Foundation, Multicluster
    • HAC Infra OCP - Sprint 227

      We need to include the cluster name in console URLs so that you can deep link to details pages on specific clusters. Most likely this will be part of the URL path, but it is possible to add as a query parameter. We should honor the old URL format as well without a cluster name. If there is no cluster name, we probably want the URL to refer to a resource on the hub cluster. We should can consider using a React Router redirect to update to a URL with the cluster name.

      We need to do this in a way where we don't have to update all the pages at once. First we should come up with the URL format and add an API for creating URLs. Then over time we can convert each page that generates URLs.

      There must be a dynamic plugin API for generating URLs, and we will need to coordinate with the plugin teams to always use the API for generating URLs instead of hard-coding paths.

      Open Questions

      What is the URL format when ACM is not installed?

      Acceptance Criteria

      • New utility function for building URLs for resources
      • The common navigation components are updated to use the new API
      • The common ResourceLink component is updated to use the new API
      • Old bookmarks still work
      • Console still works if ACM is not installed
      • e2e tests are updated for the URL updates

      Non Goals

      • This story does not cover updating all URLs in the console. We will have separate follow-on stories for that work.

        1. error-page.mov
          12.50 MB
        2. OperatorHub-rerender.mov
          8.54 MB
        3. other-pages-rerendered.mov
          2.98 MB

              Unassigned Unassigned
              spadgett@redhat.com Samuel Padgett
              Jakub Hadvig
              Jakub Hadvig
              Yanping Zhang Yanping Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: