Skip to content

CRM 0.3.2: Deleting a contact no longer fails on a vanished list

CRM 0.3.2 closes a small gap in contact deletion. Deleting a contact recounts the subscribers of each list it was on. If one of those lists was deleted by someone else at the same moment, the recount failed and the whole contact deletion was undone.

Now a list that no longer exists is simply skipped, and the contact is deleted. Nothing is announced for the missing list.

Update the dependency; there is no migration and no configuration.

Full release notes: CRM 0.3.2

0.3.2 · 20 July 2026

Fixed

  • Lists.recount_list/1 raised if the list row it was recounting was deleted concurrently between the caller loading it and the recount’s own UPDATE — a narrower race left open by 0.3.1’s fix. It now returns :missing instead of raising, and Contacts.delete_contact/1’s recount step tolerates it: a moot counter on an already-deleted list no longer rolls back the whole contact deletion (PR #15).

CRM 0.3.2. Install or update: {:phoenix_kit_crm, "~> 0.3"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.