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

Hammer command of module filter does not shows module-filter-id of modules.

XMLWordPrintable

    • None
    • None
    • None
    • Automated

      Description of problem: Hammer command of module filter does not shows module-filter-id of modules.

       

      How reproducible:

      Execute below command in satellite to retrieve the information of  module filter from Content View. 

       

       

      Steps to Reproduce:

      1. Log Into Satellite Cli 

      2. Execute below command in Satellite cli

      1. hammer content-view filter rule info --content-view-filter-id 33 --id 4

      3. Above command does not shows module-filter-ID

      Actual behavior:
      As checked in test satellite it only shows the module name which got excluded or included as per filter applied but not module-stream-id.

       

      ~~~

      1. hammer content-view filter rule info --content-view-filter-id 33 --id 4{{Rule ID: 4
        Filter ID: 33
        Name: test*
        Created: 2024/06/05 06:11:05
        Updated: 2024/06/05 06:11:05}}

      ~~~

       

      Expected behavior:

      It should shows the Module-stream-id as well, but  this can achieved by below API endpoints

      ~~~

      curl --request GET --insecure --user <replace with the satellite admin user>:<replace with the admin user password> https://<your satellite fqdn/katello/api/content_view_filters/<replace with the content view filter id>/rules/| json_reformat

      ~~~

       

      This will shows output as below which clearly shows module-stream-id -:

       

      { "total": 2, "subtotal": 2, "selectable": 2, "page": 1, "per_page": 20, "error": null, "search": null, "sort":

      { "by": "id", "order": "asc" }

      , "results": [ { "content_view_filter_id": 16, "module_stream_id": 145927, "id": 2, "created_at": "2024-06-12 22:59:55 UTC", "updated_at": "2024-06-12 22:59:55 UTC" }, { "content_view_filter_id": 16, "module_stream_id": 71543, "id": 3, "created_at": "2024-06-12 22:59:55 UTC", "updated_at": "2024-06-12 22:59:55 UTC" } ] }

       

      Business Impact / Additional info:

       

       

       

              rhn-engineering-sajha Samir Jha
              rhn-support-gmukhrai Gaurav Mukhraiya
              Vladimír Sedmík Vladimír Sedmík
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: