Skip to content

Backend: Mark catalog resource as draft if final version removed

Problem

It's possible for owners of catalog resources to remove all releases from the resource. If this happens, we don't want to display the resource in the Catalog

Proposed solution

When a release is deleted in a catalog resource project, check if there are any catalog resource versions remaining for the resource. If none remain, set the state of the catalog resource to draft