Bug 2222446

Summary: hammer content-view version info --include-applied-filters true should display rules
Product: Red Hat Satellite Reporter: Samir Jha <sajha>
Component: Content ViewsAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Vladimír Sedmík <vsedmik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: ahumbe, pcreech, sbible, vsedmik
Target Milestone: 6.14.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: https://projects.theforeman.org/issues/36585
Whiteboard:
Fixed In Version: rubygem-hammer_cli_katello-1.9.1.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 14:19:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Samir Jha 2023-07-12 19:03:26 UTC
Today the --include-applied-filters flag only lists names of filters but doesn't list rules inside those filters. We should display rules as well when asked for the list.

Comment 1 Samir Jha 2023-07-12 19:03:30 UTC
Created from redmine issue https://projects.theforeman.org/issues/36585

Comment 2 Samir Jha 2023-07-12 19:03:31 UTC
Upstream bug assigned to chrobert

Comment 4 Bryan Kearney 2023-07-22 00:03:20 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36585 has been resolved.

Comment 6 Vladimír Sedmík 2023-08-03 15:09:10 UTC
Verified in 6.14.0 snap 9 for all filter types:

1. RPM filter with rules:
Applied Filters:        
 1) Id:                      4
    Name:                    Include RPM filter
    Type:                    rpm
    Inclusion:               yes
    Original packages:       no
    Original module streams: no
    Rules:                   
     1) Id:                     1
        Name:                   cat
        Architecture:           x86_64
        Content view filter Id: 4
     2) Id:                     2
        Name:                   dog
        Architecture:           noarch
        Content view filter Id: 4

2. Package group filter with rules:
Applied Filters:        
 2) Id:                      5
    Name:                    Package groups
    Type:                    package_group
    Inclusion:               yes
    Original packages:       no
    Original module streams: no
    Rules:                   
     1) Id:                     1
        UUID:                   /pulp/api/v3/content/rpm/packagegroups/ebf75f01-4ac3-4649-b818-055104a36f57/
        Content view filter Id: 5
     2) Id:                     2
        UUID:                   /pulp/api/v3/content/rpm/packagegroups/e1afd706-c213-4989-9bca-29ee6b1f9a6a/
        Content view filter Id: 5

3. Errata - by time range filter with rules:
 3) Id:                      6
    Name:                    Errata range filter
    Type:                    erratum
    Inclusion:               no
    Original packages:       no
    Original module streams: no
    Rules:                   
     1) Id:                     1
        Types:
         1) : security
         2) : enhancement
         3) : bugfix
        Content view filter Id: 6
        Date type:              updated
        Start date:             2023-08-01T12:00:00.000Z
        End date:               2023-09-16T12:00:00.000Z

4. Errata filter with rules:
 4) Id:                      7
    Name:                    Errata filer
    Type:                    erratum
    Inclusion:               yes
    Original packages:       no
    Original module streams: no
    Rules:                   
     1) Id:                     2
        Content view filter Id: 7
        Errata Id:              RHSA-2023:4419
        Date type:              updated
     2) Id:                     3
        Content view filter Id: 7
        Errata Id:              RHBA-2023:4279
        Date type:              updated
     3) Id:                     4
        Content view filter Id: 7
        Errata Id:              RHEA-2023:3843
        Date type:              updated

5. Container image tag filter with rules:
 5) Id:                      8
    Name:                    Container image tag filter
    Type:                    docker
    Inclusion:               yes
    Original packages:       no
    Original module streams: no
    Rules:                   
     1) Id:                     1
        Name:                   latest
        Content view filter Id: 8
     2) Id:                     2
        Name:                   0.1.0
        Content view filter Id: 8

6. Module stream filter with rules:
 6) Id:                      9
    Name:                    Module stream filter
    Type:                    modulemd
    Inclusion:               yes
    Original packages:       no
    Original module streams: yes
    Rules:                   
     1) Id:                     1
        Module stream Id:       678
        Content view filter Id: 9
     2) Id:                     2
        Module stream Id:       690
        Content view filter Id: 9
     3) Id:                     3
        Module stream Id:       445
        Content view filter Id: 9

Filed a new BZ for further improvements https://bugzilla.redhat.com/show_bug.cgi?id=2228909

Comment 9 errata-xmlrpc 2023-11-08 14:19:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.14 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:6818