You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All users who can delete and restore case contacts — admins and supervisors.
Environment
Any environment. This is a data loss issue in the Rails model layer, not specific to a browser or deployment.
Current Behavior
When a case contact is deleted, the contact_topic_answers associated with it are permanently removed from the database. If the case contact is later restored, it will be missing all of its topic answers.
This happens because CaseContact uses acts_as_paranoid for soft deletes, but ContactTopicAnswer does not. The dependent: :destroy cascade from a paranoia soft-delete issues a real SQL DELETE on contact_topic_answers, not a soft delete.
The restore(recursive: true) call in CaseContactsController#restore only recovers records that were themselves soft-deleted — so permanently deleted contact_topic_answers cannot be recovered.
We highly recommend that you join us in slack #casa channel to ask questions quickly. And discord for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.
Impacted User Types
All users who can delete and restore case contacts — admins and supervisors.
Environment
Any environment. This is a data loss issue in the Rails model layer, not specific to a browser or deployment.
Current Behavior
When a case contact is deleted, the
contact_topic_answersassociated with it are permanently removed from the database. If the case contact is later restored, it will be missing all of its topic answers.This happens because
CaseContactusesacts_as_paranoidfor soft deletes, butContactTopicAnswerdoes not. Thedependent: :destroycascade from a paranoia soft-delete issues a real SQLDELETEoncontact_topic_answers, not a soft delete.The
restore(recursive: true)call inCaseContactsController#restoreonly recovers records that were themselves soft-deleted — so permanently deletedcontact_topic_answerscannot be recovered.Relevant code in
app/models/case_contact.rb:Expected Behavior
Deleting a case contact should soft-delete its
contact_topic_answersas well, so that restoring the case contact also restores the topic answers.How to Replicate
/casa_cases/:id)[DELETE]prefixed to its nameScreen recording of bug
Screen.Recording.2026-04-09.at.16.03.50.mov
How to access the QA site
Login Details:
Link to QA site
Login Emails:
/all_casa_admins/sign_inPassword for all users: 12345678
Questions? Join Slack!
We highly recommend that you join us in slack #casa channel to ask questions quickly. And discord for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.