Bug 599691

Summary: Alert Notification: have to click save each time you make a selection
Product: [Other] RHQ Project Reporter: Jeff Weiss <jweiss>
Component: AlertsAssignee: John Mazzitelli <mazz>
Status: CLOSED WONTFIX QA Contact: Corey Welton <cwelton>
Severity: medium Docs Contact:
Priority: high    
Version: 3.0.0CC: ccrouch, dajohnso, sdharane
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 593218 Environment:
Last Closed: 2011-03-24 13:40:30 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: 593218    
Bug Blocks: 577217    

Description Jeff Weiss 2010-06-03 18:47:44 UTC
+++ This bug was initially created as a clone of Bug #593218 +++

Description of problem:
While creating a new alert sender type, each time you make a selection, you have to click save, in order for more selections to appear.  For the Resource Operations type, this is 4 or 5 saves.

Version-Release number of selected component (if applicable):
Build# 152.

How reproducible:
Always

Steps to Reproduce:
1.Create a new alert definition.
2.Click on Edit for the Alert Notification.
3.On the Alert notification page, click on Add New. Select the Alert sender type as Resource Operations.
4.Select the resource selection mode as Relative Resource. 

  
Actual results:
Save button is shown - if you click it you have to reselect the Notification and then more form items are shown with another save button.  

Expected results:
All form items should be shown (either immediately or via ajax) and filled in before the user clicks save.  He should only have to click save once.

Additional info:

Comment 1 Joseph Marques 2010-06-10 09:23:30 UTC
commit 2674a1413dd7f6edaf2f4757d508125fdbabd6f5
Author: Joseph Marques <joseph>
Date:   Thu Jun 10 05:18:02 2010 -0400

    BZ-599691: automatically reselect the active notification each time "SAVE" is pressed
    
    figure out which one should be selected from the backing store.  updating
    an alert notification will overwrite all existing notifications with the
    latest data.  since the ids of the alert notifications are different after
    a save-action, but since we know what the updated data, we can select the
    correct one by testing for data equality (instead of pk/id equality).

Comment 2 Corey Welton 2010-06-10 18:04:19 UTC
Comment above was for different bug.  moving this one back to dev.

Comment 3 John Mazzitelli 2011-03-24 13:40:30 UTC
we won't fix this JSF view since our new GWT UI supercedes this and it doesn't have this problem.