Bug 1383729

Summary: Unable to filter Errata's applicable content hosts by environment using corresponding env dropdown
Product: Red Hat Satellite Reporter: Andrii Balakhtar <abalakht>
Component: Errata ManagementAssignee: Andrew Kofink <akofink>
Status: CLOSED ERRATA QA Contact: Ales Dujicek <adujicek>
Severity: low Docs Contact:
Priority: low    
Version: 6.3.0CC: adujicek, akofink, bbuckingham, ehelms, jcallaha, nsamant, walden
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 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:
Attachments:
Description Flags
wrong filtering on applicable content hosts list none

Description Andrii Balakhtar 2016-10-11 15:33:08 UTC
Created attachment 1209195 [details]
wrong filtering on applicable content hosts list

Description of problem:
`Filter by Environment` drop-down on Content-Hosts tab of Errata page seems not working and showing content hosts from all environments.

Version-Release number of selected component (if applicable):
Sat6.3 Beta SNAP 3

How reproducible:
Always

Steps to Reproduce:
1. Make sure you have errata and at least 2 applicable hosts in different environments
2. Navigate to Content -> Errata -> (errata-id) -> Content Hosts, try to filter hosts by environment

Actual results:
`Filter by Environment` drop-down doesn't filter content hosts by environment and shows all the content hosts regardless of selected environment.

Expected results:
`Filter by Environment` drop-down should correctly filter list of hosts by environment

Additional info:

Comment 2 Andrew Kofink 2016-11-03 18:46:09 UTC
Created redmine issue http://projects.theforeman.org/issues/17208 from this bug

Comment 3 Bryan Kearney 2016-11-04 14:13:34 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17208 has been resolved.

Comment 4 Walden Raines 2017-08-09 17:17:24 UTC
This doesn't work for me on 6.3.0 snap 9.  When selecting an environment I don't see the environment id included in the request to /api/v2/hosts/post_index and when I click the 'x' the environment is not cleared from the select.

Comment 5 Walden Raines 2017-08-10 14:34:10 UTC
(In reply to Walden Raines from comment #4)
> This doesn't work for me on 6.3.0 snap 9.  When selecting an environment I
> don't see the environment id included in the request to
> /api/v2/hosts/post_index and when I click the 'x' the environment is not
> cleared from the select.

Sorry, I now see that the environment is included in the search query but the selection still doesn't clear when the 'x' is clicked.  It is removed from the query but the UI isn't updated.

Comment 7 Neha Samant 2018-01-31 05:41:09 UTC
Hello,

We would like to have update on this as we need to inform the customer about the progress.

Thanks,
Neha

Comment 8 Andrew Kofink 2018-01-31 12:42:58 UTC
This patch has been verified in 6.3; you can expect it in 6.3 GA.

Comment 9 Satellite Program 2018-02-21 16:54:17 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-2018:0336