Project

Profile

Help

Issue #7196

closed

pulpcore.app.response.OperationPostponedResponse docstring is slightly wrong (no 'task' field in response)

Added by alikins about 2 years ago. Updated about 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
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/"
}
Actions #1

Updated by fao89 about 2 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 78
Actions #2

Updated by lmjachky about 2 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to lmjachky
Actions #3

Updated by pulpbot about 2 years ago

  • Status changed from ASSIGNED to POST

Added by Lubos Mjachky about 2 years ago

Revision 5da4995d

Fix the response's structure returned by OperationPostponedResponse

closes #7196

Actions #4

Updated by Anonymous about 2 years ago

  • Status changed from POST to MODIFIED

Added by Lubos Mjachky about 2 years ago

Revision 23cd1292

Fix the response's structure returned by OperationPostponedResponse

closes #7196

(cherry picked from commit 5da4995dc0ea88e679487ce8934a6b95288d7251)

Actions #5

Updated by dkliban@redhat.com about 2 years ago

  • Sprint/Milestone set to 3.6.0
Actions #6

Updated by pulpbot about 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF