Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-40963

[RFE] Allow subscription_facet and it's underlying properties e.g. activation_keys for hosts, within safemode

XMLWordPrintable

    • False
    • sat-proton
    • None
    • None
    • None
    • None

      The request is rather simple. Please allow subscription_facet to be queried from a report and webhook template, and then allow printing the activation_key information stored in a subscription_facet of a host. 

       

      Scenario 1: To print it in report templates:

      Something like this can do it in the rails console

      host&.subscription_facet&.activation_key_names.join(',')

      So this should be easy enough to have a macro created, like activation_keys(host) for report_templates. 

      Scenario 2: Webhook templates:

      In the case of Webhook templates, suppose I wanted to create a template and use it with a webhook for the Host updated event. At that point, if subscription_facet is not allowed in safemode, then I cannot query it as well to get the name of activation_keys associated with the host.

      Four main information one may need to fetch from subscription_facet of a host are:

      • activation_key_names or activation_keys
      • last_checkin
      • registered_through
      • registered_at

      Please allow them in safemode so that we can query them as needed. 

              Unassigned Unassigned
              rhn-support-saydas Sayan Das
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: