Bug 570161

Summary: (Alert Page )Roles for Alert Has been selected by “Remove Roles” Button
Product: [Other] RHQ Project Reporter: spandey
Component: AlertsAssignee: Joseph Marques <jmarques>
Status: CLOSED CURRENTRELEASE QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: low    
Version: 3.0.0CC: benl, kbanerje, smohan, spandey
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-12 16:46:35 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: 565628, 577217    

Description spandey 2010-03-03 14:08:28 UTC
Description of problem:


Version-Release number of selected component (if applicable):
d882f2088e1f27d64376550e1b984cf33fcd2923

How reproducible:
100%

Steps to Repro : 

1)Login to RHQ host with valid credentials
2)Create Alert for Added Resource
3)Add Roles from Alert Notification Option 
4)Select Any Role from “Select the Roles to add “ Box 
5)Press “Remove Roles” Button

Expected Result : At step 5 Friendly Message should display “No role has been selected to remove “

Actual Result : At step 5 Selected Role has been added in “Selected Roles: “ Box


2nd scenario :

After step 5 select different role from “Select the Roles to add” box  and press “Removes Roles “Buttons 

Actual Result : At this step older Role entry has been removed and selected Role has been added to Selected Roles Box.

Comment 1 Charles Crouch 2010-04-27 17:55:20 UTC
Joseph, can you confirm this now works as expected or this test no longer makes sense.

Comment 2 Joseph Marques 2010-04-27 20:49:19 UTC
The roles-based custom UI fragment has been completely redeveloped.  The back/forth functionality should work now.

Comment 3 gneelaka@redhat.com 2010-04-28 13:22:21 UTC
tested on JON Build #116 ,Revision 10615

steps:

1)create an alert on the given resource.
2)Go to alert notification section.
3)Click on edit,addd new ,select system roles among alert notifications.
4)set ok.
5)select a role and click on Add Roles.

observation: the user role is added.

6)Select a role and click on remove roles 

Observation : the selected role is removed .

7)with ctrl key select multiple roles and click on add roles.

Observation: multiple roles are added.

8)with ctrl key select multiple roles and click on remove roles.

Observation: multiple roles are removed.

this is working fine now.

Comment 5 Corey Welton 2010-08-12 16:46:35 UTC
Mass-closure of verified bugs against JON.