-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
openshift-4.11
-
None
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
- New option "Default page in developer perspective" with this options:
- Add
- Topology (default, as it is default, we want to keep that it opens the add page on the first call, see isFirstPage)
- Search
- New option "Redirect after import" with this options:
- Add
- Topology (default)
- Detail page (depending on the created 'main' resource, for example, Deployment, DeploymentConfig or Knative Service)
- Show the new options between Project and Topology options in General
- 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:
- https://github.com/openshift/console/blob/master/frontend/packages/console-dynamic-plugin-sdk/src/extensions/perspectives.ts#L21-L24
- https://github.com/openshift/console/blob/master/frontend/packages/dev-console/console-extensions.json#L20-L21
- https://github.com/openshift/console/blob/master/frontend/packages/dev-console/src/utils/perspective.tsx#L21-L28