Bug 749654

Summary: selector widget: if there are more than the maximum available records in the DB, there is no way to view the remaining records for selectors that do not provide any filter fields
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: Core UIAssignee: Ian Springer <ian.springer>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: medium    
Version: 4.1CC: ccrouch, hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-07 19:29:37 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: 678340    

Description Ian Springer 2011-10-27 19:42:45 UTC
There are four selector impls that do not provide any filter fields:

- RoleSubjectSelector
- SystemUsersNotificationSenderForm$SubjectSelector
- SubjectRoleSelector
- SystemRolesNotificationSenderForm$RoleSelector

Comment 1 Ian Springer 2011-10-27 19:49:27 UTC
[master 4d78975] (http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=4d78975) provides a stop-gap workaround for RHQ 4.2. We simply override getMaxAvailableRecords() in the four selectors with no filters and return 500, rather than the default of 100, i.e.:

        @Override
        protected int getMaxAvailableRecords() {
            return 500;
        }

The permanent and more robust fix for JON 3.0 will be to add one or more filters to each of the four selectors.

Comment 2 Mike Foley 2011-10-27 20:06:04 UTC
info on verification ....

RoleSubjectSelector and SubjectRoleSelector are on the pages where you add users to roles and roles to users  so around the workflow of adding an RHQ user

Comment 3 Mike Foley 2011-10-27 20:08:20 UTC
SystemUsersNotificationSenderForm$SubjectSelector and SystemRolesNotificationSenderForm$RoleSelector would be for when you are setting up email notifications from an alert and you went to send emails to either a particular user or all the users in a particular role

Comment 4 Mike Foley 2011-10-28 15:08:44 UTC
verified RHQ master 10/28/2011:

1) create roles
2) create users
3) alert notification with email notification to system user
4) alert notification with email notification to system role

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

Comment 6 Mike Foley 2012-02-07 19:30:18 UTC
marking VERIFIED BZs to CLOSED/CURRENTRELEASE