Project

Profile

Help

Issue #4474

One shot uploader doesn't populate 'created_resource' on task

Added by daviddavis almost 3 years ago. Updated almost 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 50
Quarter:

Description

Upload an rpm with the one shot uploader and you'll notice that the task's created_resource field is not populated:

$ http --form POST http://localhost:8000/pulp/api/v3/rpm/upload/ file@./camel-0.1-1.noarch.rpm
$ http :8000/pulp/api/v3/tasks/1/
HTTP/1.1 200 OK
Allow: GET, DELETE, HEAD, OPTIONS
Content-Length: 422
Content-Type: application/json
Date: Tue, 26 Feb 2019 10:43:42 GMT
Server: WSGIServer/0.2 CPython/3.7.2
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "_created": "2019-02-26T10:43:34.818055Z",
    "_href": "/pulp/api/v3/tasks/1/",
    "created_resources": [],
    "error": null,
    "finished_at": "2019-02-26T10:43:35.144069Z",
    "job_id": "f791e73c-44b1-48a4-860a-932e95d7f8c4",
    "name": "pulp_rpm.app.upload.one_shot_upload",
    "non_fatal_errors": [],
    "parent": null,
    "progress_reports": [],
    "spawned_tasks": [],
    "started_at": "2019-02-26T10:43:35.063511Z",
    "state": "completed",
    "worker": "/pulp/api/v3/workers/3/"
}

Associated revisions

Revision 120b8f29 View on GitHub
Added by ppicka over 2 years ago

Populate created resources

As one shot upload run in task it should return some created resources. As repository is optional the task now returns package or package and repository version as resource created.

closes: #4474 https://pulp.plan.io/issues/4474

Signed-off-by: Pavel Picka

History

#1 Updated by ppicka almost 3 years ago

  • Assignee set to ppicka

#2 Updated by ipanova@redhat.com almost 3 years ago

  • Status changed from NEW to ASSIGNED
  • Sprint set to Sprint 49

#3 Updated by ttereshc almost 3 years ago

  • Triaged changed from No to Yes

#4 Updated by ppicka over 2 years ago

  • Status changed from ASSIGNED to POST

#5 Updated by rchan over 2 years ago

  • Sprint changed from Sprint 49 to Sprint 50

#6 Updated by ppicka over 2 years ago

  • Status changed from POST to MODIFIED

#7 Updated by bmbouter over 2 years ago

  • Tags deleted (Pulp 3)

#8 Updated by ttereshc almost 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF