Project

General

Profile

Actions

Bug #39328

closed

Add macro to allow showing and fetching activation_key_names used to register a content host

Added by Sayan Das about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Subscriptions
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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.

Actions

Also available in: Atom PDF