Bug 2081674

Summary: Developer add page create a new project modal redirects to admin project page after creation
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Lokananda Prabhu <lprabhu>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: low Docs Contact:
Priority: medium    
Version: 4.11CC: aos-bugs, jakumar, lprabhu, nmukherj
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-17 19:48:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
redirect-to-admin-project-dashboard.mp4 none

Description Christoph Jerolimov 2022-05-04 10:54:20 UTC
Description of problem:
As a user with limited access, the developer perspective is opened automatically. The user automatically saw a page that explain that she/he need to create a project:

> Getting Started
> OpenShift helps you quickly develop, host, and scale applications.
> To get started, create a project for your application.
> 
> To learn more, visit the OpenShift documentation.
> 
> Download the command-line tools
> 
> (Disabled) Add
> 
> (Disabled) Select a Project to start adding to it or create a Project

When creating a new project over the project dropdown the new project is created and the user stays on the add page.

But when creating a project with the link "Create a new project" the user is automatically redirected to the admin page.


Version-Release number of selected component (if applicable):
4.10.9 (older versions not tested)


How reproducible:
Always


Steps to Reproduce:
1. Login with a developer user (limited access, this means the developer perspective should be opened automatically and the user can not see any other project)
2. Navigate to the add page and click on "Create a new project"
3. Create a new project with the modal


Actual results:
The new project is created and the project detail page from the admin perspective is shown.


Expected results:
That the new project is created and the user stays on the add page. Ideally, the new namespace is selected and the add page shows the common add actions.


Additional info:
A questions to the UX team: it looks like the "Create a new project" button is the primary CTA on this page. But it's displayed as a "link" (with strange padding)  instead of a primary button. Should we change this to a primary button?

Comment 1 Christoph Jerolimov 2022-05-04 10:54:39 UTC
Created attachment 1876984 [details]
redirect-to-admin-project-dashboard.mp4

Comment 3 Christoph Jerolimov 2022-07-25 23:11:59 UTC
Verified on 4.12.0-0.nightly-2022-07-25-122035

Comment 6 errata-xmlrpc 2023-01-17 19:48:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.12.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:7399