Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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