Issue #7196
pulpcore.app.response.OperationPostponedResponse docstring is slightly wrong (no 'task' field in response)
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Easy Fix
Sprint:
Sprint 78
Quarter:
Description
The docstring is:
An HTTP response class for returning 202 and a spawned task.
This response object should be used by views that dispatch asynchronous tasks. The most common
use case is for sync and publish operations. When JSON is requested, the response will look
like the following::
{
"pulp_href": "https://example.com/pulp/api/v3/tasks/adlfk-bala-23k5l7-lslser",
"task_id": "adlfk-bala-23k5l7-lslser"
}
But the response is only the 'pulp_href':
{
"task": "/pulp/api/v3/tasks/3f40df5c-985e-4817-a605-4e5fabb6ff7d/"
}
Associated revisions
Revision 23cd1292
View on GitHub
Fix the response's structure returned by OperationPostponedResponse
closes #7196
(cherry picked from commit 5da4995dc0ea88e679487ce8934a6b95288d7251)
History
#4
Updated by Anonymous 6 months ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|5da4995dc0ea88e679487ce8934a6b95288d7251.
#5
Updated by dkliban@redhat.com 5 months ago
- Sprint/Milestone set to 3.6.0
Please register to edit this issue
Fix the response's structure returned by OperationPostponedResponse
closes #7196