Project

Profile

Help

Issue #7196

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

Added by alikins 2 months ago. Updated about 2 months 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/"
}

Associated revisions

Revision 5da4995d View on GitHub
Added by Lubos Mjachky 2 months ago

Fix the response's structure returned by OperationPostponedResponse

closes #7196

Revision 23cd1292 View on GitHub
Added by Lubos Mjachky 2 months ago

Fix the response's structure returned by OperationPostponedResponse

closes #7196

(cherry picked from commit 5da4995dc0ea88e679487ce8934a6b95288d7251)

History

#1 Updated by fao89 2 months ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 78

#2 Updated by lmjachky 2 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to lmjachky

#3 Updated by pulpbot 2 months ago

  • Status changed from ASSIGNED to POST

#4 Updated by Anonymous 2 months ago

  • Status changed from POST to MODIFIED

#5 Updated by dkliban@redhat.com about 2 months ago

  • Sprint/Milestone set to 3.6.0

#6 Updated by pulpbot about 2 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF