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 1177765

Summary: Missing filter on listing only composite content views
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: APIAssignee: David Davis <daviddavis>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.6CC: cwelton, daviddavis, jcallaha, mmccune, riehecky, xdmoon
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/13837
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 08:46:16 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:
Bug Depends On:    
Bug Blocks: 1115190, 1122832    

Description Peter Vreman 2014-12-30 10:31:32 UTC
Description of problem:
The current noncomposite filter is only a filter that allows excluding of the composite content views. It is not possible to retrieve only the composite content views instead. This is therefor a strange filter, it would be more intuitive and consistent to have a "composite" filter, when set then check if the composite value matches.

# curl -K /opt/hoici/etc/curl-hoici.conf -H 'Content-Type: application/json' -d '{"per_page":9999,"noncomposite":false}' -XGET https://localhost/katello/api/v2/organizations/4/content_views | jq .results[].composite
true
null
null
null
null
null
true
null
null
true
null
null
null
null


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


How reproducible:


Steps to Reproduce:
1. Create a Composite Content View
2. Create a regular content view
3. List only the composite content view

Actual results:
regular content view is also included

Expected results:
only composite content views are listed

Additional info:

Comment 1 RHEL Program Management 2014-12-30 10:54:10 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Mike McCune 2015-01-08 16:29:22 UTC
This is more of a bug, adjusting accordingly

Comment 4 Partha Aji 2016-02-22 15:06:40 UTC
Created redmine issue http://projects.theforeman.org/issues/13837 from this bug

Comment 5 Bryan Kearney 2016-02-23 01:03:07 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/13837 has been closed
-------------
David Davis
Applied in changeset commit:katello|ce6941cd3934f55c358669762c2486b8e4cb367b.

Comment 8 jcallaha 2016-04-05 13:38:19 UTC
Verified in Satellite 6.2 Beta Snap 6 Compose 1.

You can now filter the results to include only composite content views.

{"composite":true}

Comment 10 errata-xmlrpc 2016-07-27 08:46:16 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-2016:1500