Bug 2222446 - hammer content-view version info --include-applied-filters true should display rules
Summary: hammer content-view version info --include-applied-filters true should displa...
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.14.0
Assignee: Chris Roberts
QA Contact: Vladimír Sedmík
URL: https://projects.theforeman.org/issue...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-12 19:03 UTC by Samir Jha
Modified: 2023-08-03 15:09 UTC (History)
3 users (show)

Fixed In Version: rubygem-hammer_cli_katello-1.9.1.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36585 0 Normal New hammer content-view version info --include-applied-filters true should display rules 2023-07-12 19:03:27 UTC
Github Katello hammer-cli-katello pull 901 0 None open Fixes #36585 - Add cv rules to cvv info filters 2023-07-17 20:02:37 UTC
Red Hat Issue Tracker SAT-18911 0 None None None 2023-07-12 19:05:37 UTC

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


Note You need to log in before you can comment on or make changes to this bug.