Bug 1520828 - The "Close" button wrongly changed to "Bind" after creating binding
Summary: The "Close" button wrongly changed to "Bind" after creating binding
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 3.9.0
Assignee: Jeff Phillips
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-05 09:20 UTC by shahan
Modified: 2018-12-13 19:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: The wizard was setting the valid state prior to retrieving data. Consequence: The primary button was set to 'Bind` due to prematurely setting the wizard state to valid. Fix: Do not set the wizard state to valid until the data is retrieved and determined if more steps are necessary. Result: At startup the wizard is not in the valid state.
Clone Of:
Environment:
Last Closed: 2018-12-13 19:26:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
wizard_loading_completely (741.57 KB, application/octet-stream)
2017-12-05 09:21 UTC, shahan
no flags Details
wizard_not_loading_completely (545.05 KB, application/octet-stream)
2017-12-05 09:22 UTC, shahan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3748 0 None None None 2018-12-13 19:26:58 UTC

Description shahan 2017-12-05 09:20:44 UTC
Description of problem:
  Should disable bind button when the binding creation wizard not loaded completely. 

Version-Release number of selected component (if applicable):
v3.7.9

How reproducible:
Always

Steps to Reproduce:
1. Select one serviceclass to provision
2. Goto overview page, click 'create binding' for provisioned service.
3. Click enabled ’Bind‘ button when opened wizard not loaded completely yet.
4. Wait for wizard loading completely, and click ‘Bind’ button 

Actual results:
3. After a while, the close button will change to button with text 'Bind' in the fresh wizard. Click that button, could close the wizard.
4. The 'Close' button works well.

Expected results:
3. Should always keep button with text 'Close'. 

Additional info:

Comment 1 shahan 2017-12-05 09:21:40 UTC
Created attachment 1363094 [details]
wizard_loading_completely

Comment 2 shahan 2017-12-05 09:22:22 UTC
Created attachment 1363095 [details]
wizard_not_loading_completely

Comment 3 Jeff Phillips 2017-12-06 13:27:22 UTC
I believe this is working properly. The initial page informs you what the binding will do and waits upon the user to confirm by pressing the 'Bind' button. Once that is pressed the bind operation begins and the results pages is shown to show the user hte progress of the operation.

Comment 4 shahan 2017-12-07 03:07:21 UTC
The point is that should keep the 'Close' button instead of changing the button text to 'Bind' when results page is shown if users click "Bind" in the initial page which content not loaded completely. For more information, please see attachment.

Comment 5 Samuel Padgett 2017-12-07 12:56:43 UTC
We should fix the problem with the bind button, but it also worries me that this dialog is taking so long to load in the first place. It looks like we are loading the service classes and all plans always when we shouldn't need to. From this context at least, we already have both.

The simple fix is to disable the bind button until everything loads, but it would be better to pass in the service class and service plan to the dialog to avoid unnecessary requests.

Comment 6 Jeff Phillips 2017-12-07 21:12:30 UTC
Agreed. I see that it is possible to only retrieve the service class for the service instance and the service plans for just that service class. I will address this as well as the button enablement.

Comment 7 Jeff Phillips 2017-12-07 21:49:59 UTC
PR: https://github.com/openshift/origin-web-console/pull/2585

Comment 8 openshift-github-bot 2017-12-12 13:07:02 UTC
Commits pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/2e311e664303aeb20e76b0ecd1079c18bf1e9b0c
Bug 1520828 - Do not enable Bind button until data fetched

Also, do not fetch all the service classes and plans when only a single
service class and its plans are necessary.

https://github.com/openshift/origin-web-console/commit/61898e3d689188f96f3b0c0218206cb117f5e8e4
Merge pull request #2585 from jeff-phillips-18/bind

Automatic merge from submit-queue.

Bug 1520828 - Do not enable Bind button until data fetched

Also, do not fetch all the service classes and plans when only a single service class and its plans are necessary.

Comment 10 shahan 2018-07-02 02:12:04 UTC
The bug verification process was covered by testing schedule,  the issue has been fixed. move to verified.

Comment 13 errata-xmlrpc 2018-12-13 19:26:48 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, 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/RHBA-2018:3748


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