Bug 1238408 - GET /katello/api/v2/content_view_filters/:id/rules/:id returns incomplete set of attributes
Summary: GET /katello/api/v2/content_view_filters/:id/rules/:id returns incomplete set...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Jitendra Yejare
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-01 19:49 UTC by jaudet
Modified: 2019-02-25 21:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-12 15:21:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Output of foreman-debug from a Satellite 6.1.0 system running RHEL 7.1. (365.04 KB, application/x-xz)
2015-07-01 19:49 UTC, jaudet
no flags Details

Description jaudet 2015-07-01 19:49:30 UTC
Created attachment 1045214 [details]
Output of foreman-debug from a Satellite 6.1.0 system running RHEL 7.1.

Description of problem:
A content view filter rule may have the following attributes:

* content_view_filter_id
* end_date
* errata_id
* errata_ids
* max_version
* min_version
* name
* start_date
* types
* version

Only some of these attributes may be available, depending on the filter's type.
For example, an erratum content view filter rule has the following attributes:

* content_view_filter_id
* end_date
* errata_id
* errata_ids
* start_date
* types

A GET request to `/katello/api/v2/content_view_filters/:id/rules/:id` does not
return all of these attributes. For example, here are the attributes returned
for an errata content view filter rule:

* content_view_filter_id
* created_at
* errata_id
* id
* updated_at

The following attributes are missing from the server's response:

* end_date
* errata_ids
* start_date
* types

This is problematic for two reasons:

* The state of the content view filter rule is unclear. Are the un-mentioned
  attributes simply nil? Are they set but not returned by the API?
* The behaviour of the API is unclear. Will the same set of attributes be
  returned if I update the entity with new attributes?

Version-Release number of selected component (if applicable):
Satellite 6.1.0. Foreman-debug is attached.

How reproductible:
100%

Steps to reproduce:
1. Create a content view filter rule.
2. Get information about the content view filter rule by issuing an HTTP GET
   request to `/katello/api/v2/content_view_filters/:id/rules/:id`.
3. Inspect the returned JSON payload. Discover that numerous attributes are not
   mentioned.

Actual results:
See above.

Expected results:
See above.

Additional info.
n/a

Comment 1 RHEL Program Management 2015-07-01 19:53:50 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 Bryan Kearney 2016-07-26 15:25:24 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 4 Bryan Kearney 2016-07-26 15:43:14 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 6 Bryan Kearney 2017-01-12 15:21:01 UTC
This is an older bug which I do not envision being fixed in the near term. I am closing this out. If you believe doing so is an issue, please feel free to re-open and provide additional business information. Thank you.


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