Actions
Bug #39328
closedAdd macro to allow showing and fetching activation_key_names used to register a content host
Description
While we expose subscription_facet and allow rendering registered_at\through and last_checkin, we don't have any macro that exposed the activation key names, used to register a system and users are demanding of the same.
We already have host_subscription_facet macro present in https://github.com/Katello/katello/blob/master/app/lib/katello/concerns/base_template_scope_extensions.rb#L316-L318 i.e.
def host_subscription_facet(host)
host.subscription_facet
end
We need to simply do `host_subscription_facet(host)&.activation_keys&.map(&:name)` to get the activation key names associated with a registered content host.
Updated by The Foreman Bot about 1 month ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/11745 added
Updated by Jeremy Lenz about 1 month ago
- Red Hat JIRA changed from SAT-40963 to SAT-45470
Updated by Jeremy Lenz 27 days ago
- Target version set to Katello Next
- Triaged changed from No to Yes
Updated by Sayan Das 20 days ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|e52bb975e1f0c4ef54203a1c2e584a1701950b22.
Actions