Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1379672

Summary: hammer content-view-filter create does not support Date and Type
Product: Red Hat Satellite Reporter: Sebastian Hetze <shetze>
Component: Content ViewsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.2CC: bbuckingham, ehedgren, jcallaha, juwu
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-27 19:39:14 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 Sebastian Hetze 2016-09-27 12:19:47 UTC
Description of problem:

There is no way to create a 'Date and Type' type of content view filter with hammer.

While https://access.redhat.com/solutions/2216781 describes a procedure that may result in something similar, the appearance of the filter in Satellite-6.2 is significantly different from a manually created 'Date and Type' filter.

Version-Release number of selected component (if applicable):
Satellite 6.2.2

How reproducible:
always

Steps to Reproduce:
1. Create CV RHEL7_Base
2. hammer content-view filter create --organization=$ORG --content-view='RHEL7_Base' --type='erratum' --name='errata1606' --inclusion='false'
3. hammer content-view filter rule create --organization=$ORG --start-date='2016-06-01' --content-view='RHEL7_Base' --content-view-filter='errata1606' --date-type='updated' 

Actual results:
The filter has Content Type 'Errata'
The filter offers a List/Remove tab which is is empty and only allows to add individual errata


Expected results:
The filter should have Content Type 'Errata - Date and Type'
The filter should have a 'Erratum Date Range' tab to enter/modify appropriate dates

Additional info:

Comment 2 Brad Buckingham 2016-10-27 19:39:14 UTC
It is possible to create a the desired filter rule; however, the '--types' field (e.g. --types 'security') must be included as indicated in the KCS from the initial description.

There is a change in the upstream that was submitted for bug 1386688 that will allow that field to default to all types, to be consistent with the UI user experience.