Bug #36538
closedRemoving manifest referenced by tag doesn't remove it from pulp but deletes it from katello
Description
We allow deletions of Manifests from repository in Katello today if it is not part of any manifest lists. However, if a manifest has a tag, we allow users to delete it from the UI. Probably from API and hammer too.
Pulp skips deletion of Manifests with tags which leaves Katello DB out of sync with pulp when such manifests are removed.
Proposed solution:
We should not allow deletion of Manifests in Katello which are referenced by tags. Alternatively, we should delete the tag for the manifest in pulp. However it should be clearly specified to user that the operation will delete more than what's selected on the UI if we do so.
Alternatively, we can disallow deletion of manifests that are tagged like Pulp does. Follow the same pattern as manifests that are part of manifest lists.