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 1 month ago. Updated 20 days 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 #1

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
Actions #2

Updated by Jeremy Lenz about 1 month ago

  • Red Hat JIRA changed from SAT-40963 to SAT-45470
Actions #3

Updated by Jeremy Lenz 27 days ago

  • Target version set to Katello Next
  • Triaged changed from No to Yes
Actions #4

Updated by The Foreman Bot 20 days ago

  • Fixed in Releases Katello 5.0.0 added
Actions #5

Updated by Sayan Das 20 days ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF