Bug 1246140

Summary: Foreman UI - provider filtering is also being applied to configuration profiles within providers
Product: Red Hat CloudForms Management Engine Reporter: Jan Krocil <jkrocil>
Component: UI - OPSAssignee: Aparna Karve <akarve>
Status: CLOSED ERRATA QA Contact: Kyrylo Zvyagintsev <kzvyahin>
Severity: low Docs Contact:
Priority: medium    
Version: 5.4.0CC: cpelland, hkataria, jhardy, kzvyahin, mfeifer, mpovolny, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.5.0.3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1265392 (view as bug list) Environment:
Last Closed: 2015-12-08 13:23:27 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1265392    

Description Jan Krocil 2015-07-23 14:19:08 UTC
Description of problem:
Provider filtering is also being applied to configuration profiles within providers.

Version-Release number of selected component (if applicable):
5.4.1.0

How reproducible:
Always

Steps to Reproduce:
1. Go to Infra / Configuration Management
2. Click Providers / All Red Hat Satellite Providers (in accordion)
3. Use "manager" as search text
4. Click your provider (since it should be still present even with the filter applied)

Actual results:
You cannot see any configuration profiles except the "Unassigned Profiles Group". The rest is filtered out.

Expected results:
All configuration profiles are available as the filter is unset.

Additional info:
There was a similiar but separate issue present and it has been fixed in 5.4.1.0 (https://bugzilla.redhat.com/show_bug.cgi?id=1228849) - it is different from this one.

Comment 3 Aparna Karve 2015-09-21 22:23:53 UTC
This has been fixed in master.

The Foreman tree will now remember the search string per node type.
Note that there are 3 kinds of nodes -

1. The top node, or the root node, that shows all Foreman Providers
2. The Providers node that shows the Configuration Profiles for the selected provider
3. The Configuration Profiles node that shows the Configured Systems for the selected Configuration Profile.

Some testing guidelines for the new search support -

1. Try a search string for the root node, then select a different node and revisit the root node. The earlier search string should still apply.
2. Select a Provider Node, try a search on this node. Go to another
provider, the same Provider Node search string should apply here as well. Then click on a Configuration Profile node, and the search should clear.
3. Likewise, try the above steps for a Configuration Profile node

So generally speaking, the Foreman tree now supports 3 searches for the 3 node types.

Comment 4 CFME Bot 2015-09-24 01:00:59 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/c6de9273d9dd38f3efb0105610c53ed0911b2789

commit c6de9273d9dd38f3efb0105610c53ed0911b2789
Author:     Aparna Karve <akarve>
AuthorDate: Mon Sep 14 15:49:29 2015 -0700
Commit:     Aparna Karve <akarve>
CommitDate: Mon Sep 21 14:23:00 2015 -0700

    Maintain 3 search strings for root, provider and config_profile nodes
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1246140

 app/controllers/provider_foreman_controller.rb     | 33 +++++++++++-
 .../provider_foreman_controller_spec.rb            | 60 +++++++++++++++++++++-
 2 files changed, 90 insertions(+), 3 deletions(-)

Comment 7 errata-xmlrpc 2015-12-08 13:23:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2551