Bug 747678 - not all inventoried Resources are listed on the left side of the group create and update wizards
Summary: not all inventoried Resources are listed on the left side of the group create...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Ian Springer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: rhq42
TreeView+ depends on / blocked
 
Reported: 2011-10-20 18:19 UTC by Mike Foley
Modified: 2013-08-06 00:41 UTC (History)
3 users (show)

Fixed In Version: 4.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-07 19:29:56 UTC
Embargoed:


Attachments (Terms of Use)

Description Mike Foley 2011-10-20 18:19:00 UTC
Description of problem:  Can't create compat group for RHQ Agent.    RHQ Agent doesn't appear in the list of resources


Version-Release number of selected component (if applicable):
build #587

How reproducible:
100%

Steps to Reproduce:
1.  inventory RHQ Agent
2.  verify it is inventoried by viewing Inventory-->Serves
3.  now create a new compat group
4.  observe that RHQ Agent is not listed as a resource 
  
Actual results:
RHQ Agent is not listed as a resource when creating a new compat group

Expected results:
RHQ Agent is listed as a resource


Additional info:

Comment 1 Charles Crouch 2011-10-20 21:59:11 UTC
(4:22:29 PM) ccrouch: #747678 Can't create compat group for RHQ Agent
(4:22:29 PM) ccrouch: #747677 Compat group-->Inventory-->Members ...shows all 
resources
(4:22:29 PM) ccrouch: mazz, ips: any thoughts on ^
(4:22:54 PM) mazz: 747677 is what I reported earlier - ips checked something in 
for that.
(4:23:12 PM) mazz: I don't know about 678. sounds like more table problems

Comment 2 Charles Crouch 2011-10-20 22:34:57 UTC
(5:19:51 PM) ips: ok, so 747678 is actually just because the listgrid is using 
paging. so it only shows a max of 50 resources
(5:21:02 PM) ips: as has been brought up recently, AbstractSelector is designed 
so that all the available records must be loaded client-side
(5:21:41 PM) ips: so do we want to limit the # it loads to eg - 1000, or load 
all resources in inventory
(5:22:06 PM) ips: i think we should set some sort of limit. loading 30000 
resources could crash the browser session
(5:22:25 PM) ips: or consume a ton of ram
(5:22:36 PM) ips: not to mention how long it would take to load
(5:24:03 PM) ips: i will limit to 1000 for now and display a warning msg if all 
resources could not be loaded, suggesting that the user specify filters to find 
the resources they want to add
(5:24:24 PM) ips: the other option would be to not load any resources until 
they specify one or more filters
(5:24:39 PM) ips: but even then we'd still want to limit the page size
(5:24:56 PM) ips: we can discuss the best way to deal with this after status 
tomorrow
(5:25:19 PM) ccrouch: ips: sounds good
(5:26:26 PM) ccrouch: 747678 is more of an issue than the case of creating a 
huge group
(5:26:46 PM) ccrouch: because this is an attempt to just create a single member 
group

Comment 3 Ian Springer 2011-10-21 14:01:19 UTC
Our selector widget does not page the items listed on the left hand side and therefore the number of items listed is truncated to the page size. Paging is not done, because it would make it very difficult to provide the move-all-to-right button. The group create/update wizards are really not intended for creating/updating large groups; group definitions are better suited to creating/updating large groups.

[master 2a1a665] (http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=2a1a665) increases the max number of Resources loaded on the left side from 50 to 100, and if there are more than 100 total Resources in the DB, a warning message is now displayed informing the user that not all Resources are listed and that they should specify one or more filters to find the Resources in which they are interested.

Comment 4 Heiko W. Rupp 2011-11-02 14:57:32 UTC
[15:56:47] <ips> pilhuhn, ccrouch - i think https://bugzilla.redhat.com/show_bug.cgi?id=747678 can be changed to ON_QA. if we decide to make further tweaks to our selector widget for jon 3.0, we can open new BZs

Comment 5 Ian Springer 2011-11-02 15:21:28 UTC
Steps for QA
============

1) go to one of the group list views, and click on New button to create a new group
2) on step 2 of the group create wizard, you should only see 100 Resources, rather than all inventoried Resources, listed on the left side of the Resource selector. you should also see a message displayed that is similar to the following:

Note: Only 100 out of 2846 available Resources are listed - please specify more specific filters below to find the Resources for which you are looking.

3) Enter one or more filters (name, category, type, etc.) to narrow the Resources listed on the left.

4) Once you've narrowed it down to 100 or less Resources that match the filters, the message should go away.

Comment 6 Mike Foley 2011-11-02 19:28:00 UTC
ips:  i don;t see the message that you have defined in step #2.  i will retest tomorrow ... as i am not absolutely positive i have picked up this change in the build i downloaded and installed today.

Comment 7 Sunil Kondkar 2011-11-03 09:18:48 UTC
Verified on build#678 (Version: 4.3.0-SNAPSHOT Build Number: 5fff4e7)

The group create wizard displays only 100 resources and a message below:

"Only 100 out of 1155 available resources are listed - please specify more specific filters below to find the resource for which you are looking."

The above message goes away when selecting the search filters so that the resource list narrows down. Also verified removing the filters which again displays the message.

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

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


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