Bug 1721699

Summary: You cannot update a content-view filter's description using hammer.
Product: Red Hat Satellite Reporter: Andrew Puch <apuch>
Component: Hammer - ContentAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: chrobert, dsynk, pcreech, wpinheir
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: https://projects.theforeman.org/issues/27213
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 15:54:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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