Bug 910646

Summary: Unable to add more than 100 resources to a Compatible Group.
Product: [Other] RHQ Project Reporter: ud1 <ud1bugzilla>
Component: Core UIAssignee: Thomas Segismont <tsegismo>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5CC: hrupp, ud1bugzilla
Target Milestone: ---   
Target Release: RHQ 4.9   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-26 08:32:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ud1 2013-02-13 05:52:19 UTC
Description of problem:
I have created a Compatible Group, but I'm not able to add more than 100 resources to it. The left half of the "Update Membership" window (Available resources)
is empty. It seems that the issue is the AbstractSelector class, it loads up to 100 resources and then removes
from the list all the resources that were already added. Probably this filtering should be done during the query.
Or class could fetch (100 + number_of_assigned_resources) rows, or provide some pagination functionality etc...

Steps to Reproduce:
1. Create Compatible Group
2. Open group Inventory, press "Update Membership......"
3. Add 100 resources of the same type to the group.
4. Open "Update Membership" again, the list of available resources would be empty even if there are more than 100 resources of this type.

Comment 1 Heiko W. Rupp 2013-07-01 08:58:44 UTC
Hey,

thanks for reporting this - this is still an issue in 4.8/master.

As a workaround you can add the first 100 and then in the "search" box add specific terms that match your desired resource names until you are satisfied.

Of course that needs a real fix in the sense that the left box fills up with more items when some are pushed to the right side

Comment 2 Thomas Segismont 2013-07-05 13:15:00 UTC
Fixed in master

commit d5b6714edf6eacbed95fbf2253de9f4ab5c1b08b
Author: Thomas Segismont <tsegismo>
Date:   Fri Jul 5 15:09:44 2013 +0200

Comment 3 Thomas Segismont 2013-07-10 13:54:11 UTC
Second commit in master

commit 5b0415a3703ce56bbc27fd348c9808e446207fed
Author: Thomas Segismont <tsegismo>
Date:   Wed Jul 10 15:52:07 2013 +0200

Add integration test and throw UnsupportedOperationException if criteria has unlimited PageControl

Comment 4 Heiko W. Rupp 2014-03-26 08:32:04 UTC
Bulk closing now that 4.10 is out.

If you think an issue is not resolved, please open a new BZ and link to the existing one.