Bug 1872923

Summary: Click "Cancel" button on the "initialization-resource" creation form page should send users to the "Operator details" page instead of "Install Operator" page (previous page)
Product: OpenShift Container Platform Reporter: tony.wu
Component: Management ConsoleAssignee: Yadan Pei <yapei>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6CC: aos-bugs, jokerman, yapei
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:16:22 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
1_init-CR_creation_card.png
none
2-1_init-CR_creation_form_page.png
none
2-2_hint-cancel-btn__init-CR_creation_form_page.png
none
3_directed_back_to_install-operator_page.png
none
4_operator-details_page.png
none
5__Click Cancel Sent to Operator Details page none

Description tony.wu 2020-08-26 23:22:37 UTC
Created attachment 1712749 [details]
1_init-CR_creation_card.png

Description of problem:
With 'initialization-resource' CSV annotation, the console will direct users to "Operand Creation form" page for that specific custom resource.

However, it's noticed if clicked on the "Cancel" button on the "initialization-resource" creation form page, the console would simply send users to the previous page, which is the "Install Operator" page.

After discussed with Peter from UXD team, folks think it's better to send users to the "Operator details" page instead.


Version-Release number of selected component (if applicable):
4.6

How reproducible:
100%

Steps to Reproduce:
1. Install an Operator has 'initialization-resource' CSV annotation

2. Wait until Operator installed and the UI prompts to create initialization resource, click on the "Create" button
--> See attached screenshot: 1_init-CR_creation_card.png

3. Being sent to the "creation form" page
--> See attached screenshot: 2-1_init-CR_creation_form_page.png

4. Click "Cancel" button at the bottom of the screen
--> See attached screenshot: 2-2_hint-cancel-btn__init-CR_creation_form_page.png

5. Being sent to the previous page ("Install Operator" page)
--> See attached screenshot: 3_directed_back_to_install-operator_page.png

6. Should be better by sending users to "Operator details" page instead
--> See attached screenshot: 4_operator-details_page.png


Actual results:
See step 5.

Expected results:
Should replace above step 5 with step 6.

Additional info:

Comment 1 tony.wu 2020-08-26 23:22:51 UTC
Created attachment 1712750 [details]
2-1_init-CR_creation_form_page.png

Comment 2 tony.wu 2020-08-26 23:23:01 UTC
Created attachment 1712751 [details]
2-2_hint-cancel-btn__init-CR_creation_form_page.png

Comment 3 tony.wu 2020-08-26 23:23:13 UTC
Created attachment 1712752 [details]
3_directed_back_to_install-operator_page.png

Comment 4 tony.wu 2020-08-26 23:23:24 UTC
Created attachment 1712753 [details]
4_operator-details_page.png

Comment 5 Zac Herman 2020-10-02 18:57:16 UTC
So this is a real tricky one to fix.  We use the common FormEditor component which does not know where the form was trigger from so it just uses "back" on cancel.  In this case, the last page was the install page.  The proper fix will most likely be to pass a property with the cancel URL.

Comment 7 Yadan Pei 2020-10-23 03:32:23 UTC
Created attachment 1723665 [details]
5__Click Cancel Sent to Operator Details page

Steps to Reproduce:
1. Install an Operator has 'initialization-resource' CSV annotation

2. Wait until Operator installed and the UI prompts to create initialization resource, click on the "Create <CR>" button

3. Being sent to the "creation form" page

4. Click "Cancel" button at the bottom of the screen

5. Being sent to the Operator Details page
--> See attached screenshot: 5__Click Cancel Sent to Operator Details page

Verified on 4.7.0-0.nightly-2020-10-22-175439

Comment 10 errata-xmlrpc 2021-02-24 15:16:22 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.7.0 security, bug fix, and enhancement 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-2020:5633