Bug 1379991 - Inconsistency in Content View Filter sub-commands
Summary: Inconsistency in Content View Filter sub-commands
Keywords:
Status: CLOSED DUPLICATE of bug 1378018
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.3.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: Unspecified
Assignee: Andrew Kofink
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-28 11:39 UTC by Oleksandr Shtaier
Modified: 2017-04-25 16:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-31 19:21:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Oleksandr Shtaier 2016-09-28 11:39:22 UTC
Description of problem:
It seems that 'organization*' parameters are removed for 'update' and 'delete' sub-commands for content-view filter command, but not for 'create'. It is not obvious what scenario correct, so it necessary to make a decision and choose only one.

hammer content-view filter create [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       content view numeric identifier
 --description DESCRIPTION               description of the filter
 --inclusion INCLUSION                   specifies if content should be included or excluded, default:
                                         inclusion=false
                                         One of true/false, yes/no, 1/0.
 --name NAME                             name of 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.
 --repository-ids REPOSITORY_IDS         list of repository ids
                                         Comma separated list of values.
 --type TYPE                             type of filter (e.g. rpm, package_group, erratum)


hammer content-view filter delete [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
 --name NAME                       Name to search by

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
 --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.
 --repository-ids REPOSITORY_IDS       list of repository ids

Version-Release number of selected component (if applicable):
6.3 SNAP 2

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:
There are no same approach in entity sub-commands

Expected results:
One approach should be chosen

Additional info:

Comment 3 Andrew Kofink 2016-10-31 19:21:05 UTC

*** This bug has been marked as a duplicate of bug 1378018 ***


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