| Summary: | findResourcesByCriteria(criteria) returns incomplete set of resources | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Filip Brychta <fbrychta> |
| Component: | Documentation | Assignee: | Deon Ballard <dlackey> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | JON 3.1.0 | CC: | 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-06-29 15:13:51 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: | |
|
Description
Filip Brychta
2012-04-18 11:38:29 UTC
doc issue per BZ triage 4/23 (crouch, loleary, asantos, foley) please update the JON documentation Update: not really a bug. I didn't realize that ResourceManager.findResourcesByCriteria(criteria) returns PageList<Resource> so
var resources = ResourceManager.findResourcesByCriteria(criteria);
println("CommitedResSize: "+resources.size());
prints just size of the current page. However i haven't fount straightforward way to get complete list of resources. It would be nice to have something like this:
resources.getCompleteList();
>I could be wrong, but is this at all related to bug 784571 where no more than >200 children are visible for a resource in the tree? Yes >If so, is it possible to disable paging in the CLI with criteria.clearPaging()? Yes So the only problem seems to be that by default this code: var criteria = new ResourceCriteria() var resources = ResourceManager.findResourcesByCriteria(criteria) returns paged list with 200 items but documentation states that this should return complete list of resources. Thanks for the info, Filip. I think I have this right in the JON docs; I'll clear with someone when I get the new docs on staging and then update the wiki. |