Entities 0.4.15: Delete guards from different modules no longer overwrite each other
Entities 0.4.15 fixes managed entities that refused to be deleted. It matters on sites where more than one module owns entities, such as the catalogue’s attribute sets and supplier fields.
A module that owns entities registers a delete guard at boot. All guards were kept in one shared map, read, changed and written back. When two modules registered at the same moment, the later write could drop the earlier module’s guard. Every delete of that module’s entities then failed with {:error, :no_delete_guard} until the next restart.
Each module’s guard now has its own entry, so both survive. Registering the same module again still replaces its guard, and the API is unchanged. A node upgraded without a restart keeps refusing those deletes until the modules register again, which they do at every boot.
Full release notes: Entities 0.4.15
0.4.15 · 15 September 2026
Fixed
- Delete guards registered by different owners at the same moment all
survive (#48).
Managed.register_delete_guard/2used to read, update and write back one shared:persistent_termmap. When two owners registered from separate boot tasks (the catalogue’s attribute sets and supplier fields), the later write could drop the earlier owner’s guard, and every delete of that owner’s blueprints then failed closed with{:error, :no_delete_guard}. Each owner’s guard now lives under its own key. Re-registering the same owner still replaces its guard, and the public API is unchanged. A node that is hot-upgraded without restarting keeps refusing deletes until its owners register again, which they do at every boot.
Changed
- Dependency lock:
ex_aws_sqs(beamlab_ex_aws_sqs) 5.0.2.
Entities 0.4.15. Install or update: {:phoenix_kit_entities, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.