Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-6590

Add user preference for landing page after switching to developer perspective and post-create flow

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • openshift-4.11
    • UI
    • None
    • 3
    • False
    • None
    • False
    • 0
    • Not Supported

      Description

      As a user, I was stopped from using the developer perspective when switching into a namespace with a lot of workloads (Deployments, Pods, etc.)

      This is a follow up on https://bugzilla.redhat.com/show_bug.cgi?id=2006395

      Acceptance Criteria

      1. New option "Default page in developer perspective" with this options:
        1. Add
        2. Topology (default, as it is default, we want to keep that it opens the add page on the first call, see isFirstPage)
        3. Search
      2. New option "Redirect after import" with this options:
        1. Add
        2. Topology (default)
        3. Detail page (depending on the created 'main' resource, for example, Deployment, DeploymentConfig or Knative Service)
      3. Show the new options between Project and Topology options in General
      4. Load these options and update the redirects when the user switches the perspective or created an application and show (redirect to) the right page

      Additional Details:

      landingPageURL and importRedirectURL is implemented as part of the "console.perspective" extension. Both API returns currently just a string and can not access (or?) the user settings. To implement access to the user settings (and other react context based APIs) we might need to run both URL "getters" as react hooks.

      See also:

      1. https://github.com/openshift/console/blob/master/frontend/packages/console-dynamic-plugin-sdk/src/extensions/perspectives.ts#L21-L24
      2. https://github.com/openshift/console/blob/master/frontend/packages/dev-console/console-extensions.json#L20-L21
      3. https://github.com/openshift/console/blob/master/frontend/packages/dev-console/src/utils/perspective.tsx#L21-L28

              Unassigned Unassigned
              cjerolim Christoph Jerolimov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: