Project

General

Profile

Actions

Bug #38678

closed

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

Added by Samir Jha 3 months ago. Updated 3 months ago.

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

Description

Steps to Reproduce:

1. Execute below command in hammer cli

hammer content-view filter rule info --content-view-filter-id 33 --id 4
2. Above command does not shows module-filter-ID

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

~~~

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 foreman admin user>:<replace with the admin user password> https://&lt;your foreman 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" } ] }

Actions

Also available in: Atom PDF