Project

Profile

Help

Story #4745

closed

As a plugin writer, I can create distributions for repository versions

Added by daviddavis over 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:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 52
Quarter:

Description

Problem

Some plugins like pulp_ansible and pulp_docker have no need for publications since they don't use metadata. Give these plugins a way to attach distributions directly to repo versions.

Solution

1. Add a "repository_version" attribute to the Distribution model
2. Update the content app to serve up content from that RepositoryVersion
3. The "repository_version" and "publication" fields should not be used together and should error somehow.

We will also remove the 'publisher' option because we expect it will not be used in 3.0 and will introduce more confusion than value.

We will also adjust the auto-distribution behavior as follows:

When the Distribution.repository field is set, the Distribution will be updated to have the repository_verison field point at the newly created repository_version.


Related issues

Blocks Pulp - Story #4680: As a user I have lifecycle docs in pulpcore workflowsCLOSED - CURRENTRELEASE

Actions
Blocks Ansible Plugin - Task #4765: Remove PublicationsCLOSED - CURRENTRELEASEdaviddavis

Actions
Blocked by Pulp - Issue #4791: Cannot `make diagrams` on F29 w/ pulpliftCLOSED - CURRENTRELEASEbmbouterActions

Also available in: Atom PDF