Created attachment 419349 [details]
group search results
Description of problem:
The group search results seem to show additional entries that are not (explicitly created) groups.
See screenshot for details.
Steps to Reproduce:
1. Create a recursive compatible group with 2 members (I used JBoss ASes)
2. Click on a couple of child resources in the group left nav
3. Go to the group search page.
4. Observe that apart from the group itself, phantom entries are present for each of the resources (or rather "clusters") that have been clicked on in the step 2.
Even though the number of groups in the subtab titles is correct, the actual results table contains more entries.
Only the defined groups are listed in the results table.
Author: Joseph Marques <email@example.com>
Date: Wed Jul 7 00:05:14 2010 -0400
BZ-599515: by default, do not show auto-backing-cluster results in group browser
to test this, put 2 linux platforms into a recursive group. navigate to that group and click around the tree for a while. these click actions will create auto-cluster-backing-groups. these ACBGs were the phantoms you saw in the group browser. they should no longer appear in the search results.
verified this with build 122 of ci-rhq-release. Group counts match gui display now. I'll have to re-verify when the jon-build with this fix is available tomorrow.
Is there any way to browse/verify that the auto-cluster-backing-groups are still being created, now that they don't show up as phantoms?
JPQL: select count(rg) from ResourceGroup rg
SQL: select count(id) from rhq_resource_group
the two counts above should be equal. the two counts above should be higher than the count shown in the group browser.
I verified that the phantom entries do not show up(gui count matching screen) in build 52 of tag-jon-release.
However, running the two queries above, the returned counts are exactly equal to the group count shown(1).
I installed JON and imported two linux platforms and then clicked around in the trees of both instances. I also let the instance stay up for 7 hrs and still no additional groups created that I can see.
Joe can you comment on this?
I also noted that if you click the search bar, these items that you have clicked also show up in the search dropdown helper.
Please see screenshot -- related issue, or perhaps no issue?
Created attachment 430361 [details]
search dropdown showing some of the clicked items.
Simeon, from my steps above "to test this, put 2 linux platforms into a recursive group [and] navigate to that group and click around the tree for a while" -- this requires you to navigate around the group tree, not the individual resource trees.
Corey, you definitely found a separate issue. Do you want to create a separate BZ or add to this one?
QA Verified -- no longer do I see any phantom items showing up. However, I have opened bug #612612 to track the search suggestions (versus search results) issue.
+1. Joseph, my mistake was not doing the steps on a compatible group. Compatible instructions were in the original steps but not your updated reproduction steps. I didn't realize that the gui was so different between compat/mixed. Works correctly as described.
Corey, I'm moving this to Verified.
Simeon, both Lukas's description and my comment #1 said to use compatible groups. But it's good that it's verified now.
FYI, mixed groups have no left-nav-tree component at all.
Mass-closure of verified bugs against JON.