Bug 1017865
Summary: | API synchronous call report example doesn't match task group management data description | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | mkovacik |
Component: | documentation | Assignee: | Jay Dobies <jason.dobies> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | pulp-qe-list |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 2.2 | CC: | jason.dobies, mhrivnak, mkovacik, skarmark |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | 2.3.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | https://pulp-dev-guide.readthedocs.org/en/pulp-2.2/conventions/sync-v-async.html#call-report | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-12-09 14:29:51 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
mkovacik
2013-10-10 16:04:07 UTC
Can you be more explicit and descriptive about what the discrepancies are? I'm not seeing it on first look. fields present in [1] absent in [2]: - job_id fields present in [2] absent in [1]: - task_group_id fields with different meaning - _href [1] points to /pulp/api/v2/tasks/ - _href [2] points to /pulp/api/v2/task_groups/ Based on listing /pulp/api/v2/tasks/ it seems [2] is more up-to-date Here's what I changed: fields present in [1] absent in [2]: - job_id ----- Removed this from [1], it was an old example before task groups existed. fields present in [2] absent in [1]: - task_group_id ----- Added this to [1] to replace job_id from above. fields with different meaning - _href [1] points to /pulp/api/v2/tasks/ - _href [2] points to /pulp/api/v2/task_groups/ ----- I didn't touch this in this fix. The docs are correct, this is in fact what is returned. For operations that are handled in a single task, the _href refers to the task itself. For operations that *can* span multiple tasks, a list of tasks are returned and the _href for each is set to the group. The behavior of the latter is debatable, but for the purposes of this bug, the docs are correct. If you'd like to pursue changing the values of the _hrefs, please file a new bug to start that discussion. build: 2.3.0-0.26.beta Checked the job_id in latest docs[1]. With regards to 2; will file a separate bug agains the API as the _href field doesn't point to a particular task item in cases where more tasks are spawned by pulp. This breaks compatibility with case when just a single task is spawned. [1] https://pulp-dev-guide.readthedocs.org/en/latest/conventions/sync-v-async.html#call-report Pulp 2.3 released. |