Bug 593218 - Alert Notification: fails to default select the alert sender type once clicked on save
Summary: Alert Notification: fails to default select the alert sender type once clicke...
Alias: None
Product: RHQ Project
Classification: Other
Component: Alerts
Version: 3.0.0
Hardware: All
OS: Linux
medium vote
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Corey Welton
Depends On:
Blocks: jon24-alert-notify 599691
TreeView+ depends on / blocked
Reported: 2010-05-18 08:26 UTC by Sudhir D
Modified: 2010-08-12 16:48 UTC (History)
0 users

Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 599691 (view as bug list)
Last Closed: 2010-08-12 16:48:43 UTC

Attachments (Terms of Use)

Description Sudhir D 2010-05-18 08:26:17 UTC
Description of problem:
While creating a new alert sender type, the page fails to default select the alert sender type that is being configured upon.

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

How reproducible:

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. 
5.Click Save
Actual results:
Page gets refreshed and the alert sender type is not selected by default even though the configuration for that type is not complete yet.

Expected results:
Once page is refreshed, the alert sender type, upon which the configuration is still pending, should be selected by default.

Additional info:

Comment 1 Corey Welton 2010-06-10 18:04:48 UTC
commit 2674a1413dd7f6edaf2f4757d508125fdbabd6f5
Author: Joseph Marques <joseph@redhat.com>
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:14:09 UTC
QA Verified.

Comment 3 Corey Welton 2010-08-12 16:48:43 UTC
Mass-closure of verified bugs against JON.

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