Bug 1654953

Summary: [admin] Removing subscription does not redirect to subscription menu page
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Management ConsoleAssignee: Alec Merdler <amerdler>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 4.1.0CC: aos-bugs, jokerman, mmccomas, spadgett
Target Milestone: ---   
Target Release: 4.1.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: 2019-03-22 12:08:34 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:

Description XiaochuanWang 2018-11-30 07:19:57 UTC
Description of problem:
Make sure user has olm operators, subscript one of a CatalogSource from PackageMenifests such as "etcd". Browse to Subscription -> etcd, click Actions -> Remove Subscriptions. It is still stay on current page instead of jumping to Subscription list.

Version-Release number of selected component (if applicable):
oc v4.0.0-0.74.0
registry.reg-aws.openshift.com:443/openshift/ose-console   v4.0   32d268ebfeeb

How reproducible:
Always

Steps to Reproduce:
1. Make sure user has olm operators, subscript one of a CatalogSource from PackageMenifests such as "etcd". 
2. Browse to Subscription -> etcd, click Actions -> Remove Subscriptions.

Actual results:
2. It is still stay on current page instead of jumping to Subscription list.

Expected results:
2. Since the subscription is actually removed, it should direct to Subscription list page.

Additional info:
The subscription is actually removed.

Comment 1 XiaochuanWang 2018-11-30 07:47:34 UTC
Add additional info:
1. Remove in kebab button works.
2. $ oc get subscription could get the correct result which the subscription has been actually removed.

Comment 2 Samuel Padgett 2019-03-19 19:52:45 UTC
https://github.com/openshift/console/pull/1305

Comment 3 XiaochuanWang 2019-03-22 06:25:26 UTC
Now it behave correctly on latest OCP4. When user delete the subscription from Action, the page will go back to Operator Management page to display subscription list. Also the ClusterServiceVersion deletion will jump back to Installed Operators page which behave correctly.

Verified on 4.0.0-0.nightly-2019-03-21-164511