Project

Profile

Help

Story #5403

closed

As a plugin writer, I have a Serializer I can use for Content creation via upload that accepts either file or an existing Artifact but not both

Added by bmbouter about 5 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
(Total: 0:00 h)
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 59
Quarter:

Description

Motivation

Plugin writers are writing the same serializer over and over. The situation is this:

  • The user wants to create a Content unit via upload.
  • Sometimes they want to uplod the file directly in that 1 call (for small files).
  • Sometimes they want to use the chunked upload API to create the Artifact and then pass a reference to that Artifact for Content unit creation
  • Sometimes they want to associate that ContentUnit with a specific repository, other times they don't and just want to create the Content unit

Usage

Plugin writers would be able to use this Serializer for the create() method of their Content unit specifically.

User Impact

1. This would effectively make all "upload APIs" live at the POST of the content unit. This is more RESTful.

2. This would remove the user's ability to specify the metadata for that content unit. This breaks no use case that I know of, as a user would have to hand over the binary data either way and Pulp "just handles it".


Sub-issues 5 (0 open5 closed)

RPM Support - Task #5453: Use new upload serializer in pulp_rpmCLOSED - CURRENTRELEASEfao89

Actions
Ansible Plugin - Task #5462: Use new upload serializer in pulp_ansibleCLOSED - CURRENTRELEASEfao89

Actions
Container Support - Task #5463: Use new upload serializer in pulp_dockerCLOSED - WONTFIX

Actions
Python Support - Task #5464: Use new upload serializer in pulp_pythonMODIFIEDfao89

Actions
Debian Support - Task #5487: Use new upload serializer in pulp_debCLOSED - CURRENTRELEASE

Actions

Related issues

Blocks Ansible Plugin - Issue #5281: Ansible collection upload URL missing /pulp/api/v3/CLOSED - DUPLICATEActions

Also available in: Atom PDF