Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1721699 - You cannot update a content-view filter's description using hammer.
Summary: You cannot update a content-view filter's description using hammer.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer - Content
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: 6.7.0
Assignee: Chris Roberts
QA Contact: Roman Plevka
URL: https://projects.theforeman.org/issue...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-18 22:07 UTC by Andrew Puch
Modified: 2023-09-07 20:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-14 15:54:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 27213 0 Normal Closed You cannot update a content-view filter's description using hammer 2020-10-19 13:17:24 UTC
Github Katello hammer-cli-katello pull 658 0 None closed Refs #27213 - Add description to filter list 2020-10-19 13:17:23 UTC
Github Katello katello pull 8193 0 None closed Fixes #27213 - Expose description to update filter api call 2020-10-19 13:17:24 UTC
Red Hat Product Errata RHBA-2020:1455 0 None None None 2020-04-14 15:54:23 UTC

Description Andrew Puch 2019-06-18 22:07:59 UTC
Description of problem:

You cannot update a content-view filter's description using hammer.

Version-Release number of selected component (if applicable):
All up to 6.5 

How reproducible:
%100 

Steps to Reproduce:
1. NOT IN HAMMER 

2.
3.

Actual results:

NA 

Expected results:
Not implemented 

Additional info:


ou cannot update a content-view filter's description using hammer.
# hammer content-view filter update --help
Usage:
    hammer content-view filter update [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       Content view numeric identifier
 --id ID                                 Filter identifier
 --inclusion INCLUSION                   Specifies if content should be included or excluded, default:
                                         Inclusion=false
                                         One of true/false, yes/no, 1/0.
 --name NAME                             Name to search by
 --new-name NEW_NAME                     New name for the filter
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --original-packages ORIGINAL_PACKAGES   Add all packages without errata to the included/excluded list. (package
                                         Filter only)
                                         One of true/false, yes/no, 1/0.
 --repositories REPOSITORY_NAMES         Comma separated list of values. Values containing comma should be quoted or escaped with backslash
 --repository-ids REPOSITORY_IDS         List of repository ids
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash
 -h, --help                              Print help

One can update the name using the --new-name argument but there is no way to update the description field.

You can update the description using the gui.

Mike McCune says to open a BZ on this.

preposed option  -nd || --new-description  NEW_desc New desc for the filter
or some such option , as this is in the gui to change not in hammer
Mike McCune, 2:07pm  pst 6/17/2019 
yeah, file a bz
need a  --description flag

see private bz for better formating

Comment 3 Andrew Puch 2019-06-20 20:03:55 UTC
if -nd does not meet may RH should have ---nd as I do not know if that  short hand would be allowed ?

Comment 4 Bryan Kearney 2019-07-05 14:04:26 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27213 has been resolved.

Comment 5 Roman Plevka 2020-02-06 10:29:27 UTC
VERIFIED
on sat6.7.0 snap#10

```
# hammer content-view filter create --content-view-id 1 --name foo --description bar --type rpm
Filter created.
[root@dhcp-3-155 ~]# hammer content-view filter list --content-view-id 1
----------|------|-------------|------|----------
FILTER ID | NAME | DESCRIPTION | TYPE | INCLUSION
----------|------|-------------|------|----------
1         | foo  | bar         | rpm  | false    
----------|------|-------------|------|----------
[root@dhcp-3-155 ~]# 
[root@dhcp-3-155 ~]# 
[root@dhcp-3-155 ~]# 
[root@dhcp-3-155 ~]# hammer content-view filter update --content-view-id 1 --name foo --description bar2
Filter updated.
[root@dhcp-3-155 ~]# hammer content-view filter list --content-view-id 1
----------|------|-------------|------|----------
FILTER ID | NAME | DESCRIPTION | TYPE | INCLUSION
----------|------|-------------|------|----------
1         | foo  | bar2        | rpm  | false    
----------|------|-------------|------|----------
```

Comment 8 errata-xmlrpc 2020-04-14 15:54:08 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, 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/RHBA-2020:1455


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