Bug 1261573 - API docs for incremental update incorrectly mark update_systems[included] as required
API docs for incremental update incorrectly mark update_systems[included] as ...
Product: Red Hat Satellite 6
Classification: Red Hat
Component: API (Show other bugs)
Unspecified Unspecified
medium Severity medium (vote)
: GA
: 6.2
Assigned To: Zach Huntington-Meath
Katello QA List
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2015-09-09 13:42 EDT by jaudet
Modified: 2016-05-02 16:38 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-05-02 16:38:32 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Output of foreman-debug from a RHEL 7.1 system. (2.25 MB, application/x-xz)
2015-09-09 13:42 EDT, jaudet
no flags Details

  None (edit)
Description jaudet 2015-09-09 13:42:25 EDT
Created attachment 1071860 [details]
Output of foreman-debug from a RHEL 7.1 system.

Document URL: 

Section Number and Name: 

Describe the issue:
The API docs mark each portion of an API call as either "required" or "optional". The update_systems[included] portion of the `POST /katello/api/content_view_versions/incremental_update` call is marked as required. But this is not true. It's definitely possible to perform an incremental update without specifying this bit of information.

Suggestions for improvement: 

Additional information: 
A test for this issue is in place. This [1] pull request performs an incremental update and passes the following JSON payload:

    payload = {
        'content_view_version_environments': [{
            'content_view_version_id': content_view.version[0].id,
            'environment_ids': [
                for environment
                in content_view.version[0].read().environment
        'add_content': {'puppet_module_ids': [puppet_module.id]},

[1] https://github.com/SatelliteQE/robottelo/pull/2739
Comment 1 Andrew Dahms 2016-01-04 01:36:34 EST
Assigning to Byron for review.
Comment 2 David O'Brien 2016-01-04 02:26:10 EST
This looks like part of the actual apidoc, not the "API Guide". This would be better raised against the api itself.
Comment 3 David O'Brien 2016-01-14 22:21:00 EST
Resetting to API component. Docs team doesn't maintain this part of API.
Comment 5 Zach Huntington-Meath 2016-05-02 16:38:32 EDT
This command is now known as update_hosts[included]. This command is a subcommand of the optional command update_hosts. However, if the update_hosts command is given update_hosts[included] is required, which is why it shows up as required in the documentation.

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