Bug 733613

Summary: Add button got disabled, if user cancel the drift creation
Product: [Other] RHQ Project Reporter: Venkat <vupparap>
Component: Core UIAssignee: Jay Shaughnessy <jshaughn>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: urgent    
Version: 4.1CC: hrupp, ian.springer, jshaughn, sdharane
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-07 19:28:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 730796    
Attachments:
Description Flags
screenshot_drift
none
ImportButtonIssue none

Description Venkat 2011-08-26 09:20:57 UTC
Created attachment 520044 [details]
screenshot_drift

Description of problem:
while creating the drift, if user hits cancel button in between ( while creating) "Add" button got disabled.

Please refer the screen shot attached herewith.

Version-Release number of selected component (if applicable):
RHQ
Version: 4.1.0-SNAPSHOT
Build Number: 3003087


How reproducible:
Every time 

Steps to Reproduce:
1.Login into RHQ
2.Navigate to 'Drift->Configuration' tab of a platform resource and click on Add button.
3.Click on the 'Cancel' button.


  
Actual results:
Add button is disabled.

Expected results:
Add button should be enabled.


Additional info:
If user is goes to another tab or  leaves that UI and come back to that "configuration" tab or by refreshing the page, then that Add button will be enabled.

Comment 1 Venkat 2011-08-29 10:44:01 UTC
Created attachment 520341 [details]
ImportButtonIssue

Comment 2 Venkat 2011-08-29 10:45:32 UTC
Similar kind of issues found at  several places where user is dealing with following actions.
Create Child----> and cancel 
import resource --- and cancel 

While doing this following buttons are getting disabled 
Delete, Import, Create child, Uninventory, Refresh.

Please refer the attached screenshot.

Comment 3 Jay Shaughnessy 2011-08-30 12:59:13 UTC
Was this always like this?  I think something changed. Looking at this...  Something to do with wizards exiting.

Comment 4 Jay Shaughnessy 2011-08-30 13:39:33 UTC
This looks like a regression due to the new Table footer control
disablement put in place to prevent subsequent button clicks while a
button action is already executing.  

The problem is that that each button action is now responsible for
refreshing the encompassing view when the button action is complete. In
other words, the wizards now need to, on cancel/completion, ensure a
table refresh.  Most button actions already are doing this but
certain code paths, like wizard cancel, need to handle this situation.


Looking at fix solution...

Comment 5 Jay Shaughnessy 2011-08-30 17:31:04 UTC
master commit 85882c6e0e00d5d788032d9c4192577c21e4fcc6

Regression due to new footer disablement in Table, on footer action. The
footer actions are now responsible for footer re-enablement upon action
completion (or as soon as it is safe). This commit fixes various instances
of the problem when canceling out of wizards. At the moment there are
no other known occurrences since most actions do perform some sort of
Table refresh on completion.

Test Notes: Fixed for Group creation, Drift config creation, Child resource create
and import, bundle creation wizards.

Comment 6 Venkat 2011-08-31 09:34:26 UTC
I verified buttons which are associated with wizard cancel/completion actions which does table refresh. Now I'm seeing buttons are getting enabled properly.

I had tested according to test note , and all are working fine.

Verified on this following build 
RHQ
Version: 4.1.0-SNAPSHOT
Build Number: 044113e

Comment 8 Mike Foley 2012-02-07 19:28:53 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE