Consolidate upload functionality of CLI and bindings
The main area of work is getting plugins out of the business of needing to implement anything specific for uploads. The CLI code in platform will provide a single command for "upload" that is not provided by plugins. It will take the same options as the /import_upload API allows.
Plugins will have a way to manifest the content names and optional parameters the user is required to specify, along with help text for each of the to be used by the CLI. Plugin writers are not expected to provide any code for this, just manifests which will be used by platform. Each plugin will document the content types it supports will document the way to use those fields specific to that content type.
- Uploading becomes a single command
- All plugins will not have to do anything to support upload outside of the normal interfaces they need to make anyway, and specifying the content type upload manifest.
- The CLI will become more consistent and the code will be de-duplicated as its moved to platform. This will resolve problems that we have currently such as the upload commands for puppet and rpm are very different from each other for no good reason.
Updated by bmbouter over 4 years ago
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.