Bug 715956

Summary: Edit attributes page should not use update-interval
Product: Red Hat Enterprise MRG Reporter: Jan Sarenik <jsarenik>
Component: cuminAssignee: Chad Roberts <croberts>
Status: CLOSED ERRATA QA Contact: Jan Sarenik <jsarenik>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.0CC: croberts, matt, tmckay
Target Milestone: 2.0.1   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: cumin-0.1.4863-1 Doc Type: Bug Fix
Doc Text:
Consequence: Job attributes could be tricky/impossible to edit if the cumin update-interval was set to a low value. Cause: The JobAdsEditor form had update_enabled set to true which caused that part of the page to refresh every <update-interval> seconds. Fix: turn off update_enabled for the JobAdsEditor Result: The job editor form will no longer reset for each update-interval.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-07 16:42:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 703196, 723848, 723887    

Description Jan Sarenik 2011-06-23 15:45:19 UTC
When I try to edit attributes of a Grid job with a really
short update-interval set, I lose the entered values easily,
for each time the page refreshes, the forms contain the original
values and I do not make it to the Submit button in time.

How reproducible: 100%

Steps to Reproduce:
0. Set up Cumin with update-interval: 2 (2 seconds)
1. Submit a Grid job.
2. While it is running, try to edit its attributes.

Actual results: The page gets refreshed, filled text is lost.

Expected results: Edit arguments page does not refresh.

Additional info: I may add more if needed. Yet I am not sure if
  it is a gregression, have seen it on cumin-0.1.4840-1.el6
  which is alreay beyond MRG 2.0.

Comment 1 Chad Roberts 2011-06-23 17:41:51 UTC
Fixed in revision 4839

Comment 2 Chad Roberts 2011-06-23 17:41:51 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Consequence:  Job attributes could be tricky/impossible to edit if the cumin update-interval was set to a low value.

Cause:  The JobAdsEditor form had update_enabled set to true which caused that part of the page to refresh every <update-interval> seconds.

Fix:  turn off update_enabled for the JobAdsEditor

Result:  The job editor form will no longer reset for each update-interval.

Comment 4 Jan Sarenik 2011-07-22 11:50:30 UTC
Verified with cumin-0.1.4878-1.el5

Comment 5 errata-xmlrpc 2011-09-07 16:42:54 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-1249.html