Bug 1872923 - 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)
Summary: Click "Cancel" button on the "initialization-resource" creation form page sho...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Yadan Pei
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-26 23:22 UTC by tony.wu
Modified: 2021-02-24 15:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:16:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
1_init-CR_creation_card.png (815.28 KB, image/png)
2020-08-26 23:22 UTC, tony.wu
no flags Details
2-1_init-CR_creation_form_page.png (932.60 KB, image/png)
2020-08-26 23:22 UTC, tony.wu
no flags Details
2-2_hint-cancel-btn__init-CR_creation_form_page.png (737.23 KB, image/png)
2020-08-26 23:23 UTC, tony.wu
no flags Details
3_directed_back_to_install-operator_page.png (1.16 MB, image/png)
2020-08-26 23:23 UTC, tony.wu
no flags Details
4_operator-details_page.png (1006.32 KB, image/png)
2020-08-26 23:23 UTC, tony.wu
no flags Details
5__Click Cancel Sent to Operator Details page (211.51 KB, image/png)
2020-10-23 03:32 UTC, Yadan Pei
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 6957 0 None open Bug 1872923: Fix cancel button to return to operator details 2020-10-19 19:05:41 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:17:05 UTC

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


Note You need to log in before you can comment on or make changes to this bug.