Alternera.Resource.Changes.RefuseReferencedDelete (alternera_resource_sdk v0.9.0)

Copy Markdown View Source

On every destroy of a resource-package resource: when the database refuses the delete because other records reference the record (AshPostgres reports "would leave records behind"), the error becomes Alternera.Resource.Errors.Referenced, which the REST API answers with 409 and the other surfaces can tell from a validation error.