Skip to content

Deleting a ContentGuard should be disallowed if it is "in use" #7990

Description

@ggainey

Consider the discussion in RPM issue pulp/pulp_rpm#4554

Distributions have the same problem, with ContentGuards. If I delete a CG, suddenly every Distribution protected by it becomes a public Distribution. I believe that the same argument being made for 4554 applies here - we should put the onus on the user to take action to "detach" CGs before deletion, rather than doing it "to" them.

See https://github.com/pulp/pulpcore/blob/main/pulpcore/app/models/publication.py#L652 for the line we'd need to change

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions