Project

Profile

Help

Story #8454

Updated by bmbouter over 3 years ago

## Current State 

 You cannot delete version 0. That is enforced int the code [here](https://github.com/pulp/pulpcore/blob/348c654567067fb24bc13fa5105628433fb911fb/pulpcore/app/viewsets/repository.py#L222-L223). 

 ## Proposal 

 Allow users to be able to delete RepoVersion 0 if it is not the only RepoVersion. Due to the set-differencing data model in Pulp, RepositoryVersions must have at least one RepositoryVerison. 

 ## Add Tests Question 

 We need a functional test asserting the correctness around removing What if RepoVersion 0. Something like: 

 1. Create a repository 
 2. Put some content in it to create RepoVersion 1 
 3. Delete RepoVersion 0 
 4. View is the content from RepoVersion 1 again, to ensure the content is still in-tact. only RepoVersion?

Back