Bug 910646 - Unable to add more than 100 resources to a Compatible Group.
Summary: Unable to add more than 100 resources to a Compatible Group.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: RHQ 4.9
Assignee: Thomas Segismont
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-13 05:52 UTC by ud1
Modified: 2014-03-26 08:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-03-26 08:32:04 UTC
Embargoed:


Attachments (Terms of Use)

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.


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