Bug 2100887

Summary: Repository sets and Errata tabs do not show toggle group when host is in Library environment but non-default content view
Product: Red Hat Satellite Reporter: Jeremy Lenz <jlenz>
Component: Hosts - ContentAssignee: Jeremy Lenz <jlenz>
Status: CLOSED ERRATA QA Contact: Shweta Singh <shwsingh>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: zhunting
Target Milestone: 6.12.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 13:34:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeremy Lenz 2022-06-24 15:03:14 UTC
new host details page

On the Repository sets and Errata tabs, a toggle group "Show all / Limit to environment" shows when the host is a "non-library" host.

This is currently defined as

const nonLibraryHost = contentViewDefault === false &&
    lifecycleEnvironmentLibrary === false;

However, if only one of the two are non-default, nonLibraryHost ends up as false. This is incorrect. The toggle group should show if one of the two is non-default, not require both.  It should be

const nonLibraryHost = contentViewDefault === false ||
    lifecycleEnvironmentLibrary === false;

Comment 1 Jeremy Lenz 2022-06-24 15:03:17 UTC
Created from redmine issue https://projects.theforeman.org/issues/35114

Comment 2 Jeremy Lenz 2022-06-24 15:03:18 UTC
Upstream bug assigned to None

Comment 3 Bryan Kearney 2022-06-24 16:04:45 UTC
Upstream bug assigned to jlenz

Comment 4 Bryan Kearney 2022-06-24 16:04:47 UTC
Upstream bug assigned to jlenz

Comment 6 Bryan Kearney 2022-07-11 20:04:56 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35114 has been resolved.

Comment 7 Silas Pusateri 2022-09-16 15:14:59 UTC
Verified
Version Tested: Satellite 6.12.0 snap 10
Steps Followed: 
Create a content view (it doesn't need to have anything in it)
Create a lifecycle environment.

Get a host in
default CV and default environment
non-default CV and default environment
default CV and non-default environment
non-default CV and non-default environment

Results:
Show All/Limit to Environment Toggle is available in scenarios 2, 3  and 4 where it was previously only visible in scenario 4

Comment 12 errata-xmlrpc 2022-11-16 13:34:13 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 (Important: Satellite 6.12 Release), 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-2022:8506