You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Following the changes here: c4e842c , we can no longer delete repo versions if it's distributed (directly or via publication)
We are looking at a workflow during Katello initiated orphan cleanup, where we have a list of repo versions we want to delete. We send a request to delete those and we get an error message : The repository version cannot be deleted because it (or its publications) are currently being used to distribute content. Please update the necessary distributions first.
Describe the solution you'd like
Some enhancements around this which would help out greatly are the ability to list all distros/publications that are tied to a repo version. Today the way to do so via API would be to fetch publications for the version and then distros for the publication. It would be nice to have an API call to fetch these with a list of versions.
Also, When an exception is thrown when deleting protected version, it will also be useful to list the resources (publication/distributions) that caused the exception in the error message.
Describe alternatives you've considered
An alternative would be to allow cascading delete of a repo version that would in turn delete ny distributions tied to it.
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Following the changes here: c4e842c , we can no longer delete repo versions if it's distributed (directly or via publication)
We are looking at a workflow during Katello initiated orphan cleanup, where we have a list of repo versions we want to delete. We send a request to delete those and we get an error message :
The repository version cannot be deleted because it (or its publications) are currently being used to distribute content. Please update the necessary distributions first.
Describe the solution you'd like
Some enhancements around this which would help out greatly are the ability to list all distros/publications that are tied to a repo version. Today the way to do so via API would be to fetch publications for the version and then distros for the publication. It would be nice to have an API call to fetch these with a list of versions.
Furthermore, for types that skip publications and distribute versions directly, ex: container/ansible collections, I was looking for a good way to fetch distros ties to a version..The list API doesn't seem to support searching on repo_versions: https://docs.pulpproject.org/pulp_container/restapi.html#tag/Distributions:-Container/operation/distributions_container_container_list or https://docs.pulpproject.org/pulp_ansible/en/master/nightly/restapi.html#tag/Distributions:-Ansible/operation/distributions_ansible_ansible_list
Also, When an exception is thrown when deleting protected version, it will also be useful to list the resources (publication/distributions) that caused the exception in the error message.
Describe alternatives you've considered
An alternative would be to allow cascading delete of a repo version that would in turn delete ny distributions tied to it.
Additional context
The text was updated successfully, but these errors were encountered: