Red Hat Bugzilla – Bug 820981
fix group queries to not return non-committed resources
Last modified: 2013-09-01 06:05:58 EDT
this issue was noticed while working on bug 819897 and a response to charles' comment #10 in that BZ:
> we shouldn't *ever* be showing
> uncommitted resources in the regular inventory. The only place uncommitted
> resources should appear is in the Import related resource lists.
I did a search in our java code for places where JPQL queries used the .implicitResources and .explicitResources collection and noticed many places where we don't filter out non-committed resources.
This issue is to correct and test those queries. We need good unit tests here because this is going to touch many group queries. Without good unit tests it would require good manual testing in the UI (which we will still do, but we need automated tests as well).
we also need to address bug 820716 since its related.
master commit: 3d1a2e5
this includes several more unit tests.
3f5f02c489179e81d783b49d8270ae869b74d404 fixes a test method name i forgot to change
git commit master: 5c02dfb fixes old unit tests that now have to make sure new resources created are in committed inventory state
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.