casa icon indicating copy to clipboard operation
casa copied to clipboard

draft case contact cleanup

Open Smullz622 opened this issue 1 year ago • 2 comments

What github issue is this PR for, if any?

Resolves #5442

What changed, and why?

Added a scope to CaseContact to return drafts without an attached case as well as drafts older than one week. The rake task actually deletes the case contact. The task will need to be added to Heroku task scheduler.

How is this tested? (please write tests!) 💖💪

There's a model test on CaseContact that tests different scenarios and ensures only case contacts that should be cleaned up are returned.

Screenshots please :)

Before running rake task: Screenshot 2024-07-16 at 11 20 22 AM After running rake task: Screenshot 2024-07-16 at 11 21 04 AM

Feelings gif (optional)

moira rose

Smullz622 avatar Jul 16 '24 15:07 Smullz622

Cool stuff :)

compwron avatar Jul 25 '24 14:07 compwron

This PR has been open for a long time without any pushes or comments! What's up?

github-actions[bot] avatar Oct 07 '24 02:10 github-actions[bot]