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 1824959 - [RFE] [sat-e-492] Activation Key repository list should be in 'Show All' mode by default with Organization Env Access aka Simple Content Access
Summary: [RFE] [sat-e-492] Activation Key repository list should be in 'Show All' mode...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.9.0
Assignee: Partha Aji
QA Contact: Cole Higgins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-16 18:10 UTC by Mike McCune
Modified: 2023-01-20 16:56 UTC (History)
6 users (show)

Fixed In Version: tfm-rubygem-katello-3.17.0-0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:12:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
show-all.png (218.26 KB, image/png)
2020-04-16 18:11 UTC, Mike McCune
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 30592 0 Normal Closed Activation Key repository list should be in 'Show All' mode by default with Organization Env Access aka Simple Content A... 2021-02-10 22:31:05 UTC

Description Mike McCune 2020-04-16 18:10:55 UTC
In order to encourage customers to not add subscriptions to Activation Keys and Hosts when operating in relaxed enforcement (Organization Environment Access) mode we should have the UI default to 'Show All' on the "Activation keys -> Repository Sets" page.


Currently users have to know to check the 'Show All' selector to get the list of repositories populated without forcing the addition of subscriptions to the activation key.

Comment 3 Mike McCune 2020-04-16 18:11:13 UTC
Created attachment 1679455 [details]
show-all.png

Comment 4 Mike McCune 2020-06-24 16:59:53 UTC
Users with Simple Content Access are still adding subscriptions to Activation Keys because they are not aware that they need to click 'show all' to view the available repositories. The filtering makes sense in a subscription focused mode, but when SCA is on, the requirement to 'Show All' just gets in the way and it should be that way by default.

Comment 5 Jonathon Turel 2020-06-24 17:24:46 UTC
There's an API parameter for an Activation Key's product content called 'content_access_mode_all' which we can specify rather than using 'Show All'. This way the LCE and CV will be respected which is the behavior of SCA. That param was added a while back and it may have regressed since I do see references to it in the UI code but we aren't sending it. We can do the same for Content Hosts too (may be working already, but we should verify that).

https://github.com/Katello/katello/blob/b226cf98a8e16c338cda6d4117d690029d323657/app/controllers/katello/api/v2/activation_keys_controller.rb#L148
https://github.com/Katello/katello/blob/b226cf98a8e16c338cda6d4117d690029d323657/app/controllers/katello/api/v2/host_subscriptions_controller.rb#L172

Comment 6 Jeremy Lenz 2020-08-07 17:40:08 UTC
Created redmine issue https://projects.theforeman.org/issues/30592 from this bug

Comment 7 Partha Aji 2020-09-14 18:18:35 UTC
If the org has SCA I am planning to 
1) Always fetch the repo sets with content_access_mode_all = true
2) Hide the 'Show All' on activations key page.

Does that sound adequate ?

Comment 8 Jeremy Lenz 2020-09-14 20:25:44 UTC
^^ That will result in the following behavior:

In SCA mode:
- 'Show All' checkbox is not displayed
- Always behave as if the checkbox were checked

In non-SCA mode, no change.

I'm +1 to this

Comment 9 Bryan Kearney 2020-09-15 00:04:17 UTC
Upstream bug assigned to paji

Comment 10 Bryan Kearney 2020-09-15 00:04:19 UTC
Upstream bug assigned to paji

Comment 11 Bryan Kearney 2020-10-12 20:04:22 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30592 has been resolved.

Comment 17 errata-xmlrpc 2021-04-21 13:12:29 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 (Moderate: Satellite 6.9 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-2021:1313


Note You need to log in before you can comment on or make changes to this bug.