freelawproject / foresight

Where we discuss and prioritize new features
2 stars 1 forks source link

Send email notification when a case is terminated or un-terminated #50

Open mlissner opened 1 year ago

mlissner commented 1 year ago

I keep being surprised when I get my weekly emails telling me cases have been terminated for 90 days. I think we could do a better job making sure people realize this. The flag flips from null to a value two ways that I can think of:

  1. When we get a docket report.

    When we get the docket report, that would normally come along with a docket entry. In that case, we should send the alert we would normally, and include a note in it that explains that the case was also terminated.

    It's also possible to get a docket report with no new entries, but that flips the date_terminated field. If so, we should just send an email saying the case is terminated.

  2. When our nightly iquery crawler hits the page.

    When this happens, we might not have the docket entry that closed the case, so we should send a notice explaining that grabbing that entry might be necessary.

The flag also flips from a date value to null sometimes, for example, when cases are re-opened. When this happens, we should notify:

I think that should cover the bases, but there's certainly more I haven't thought about. Anyway, I think this feature should help folks. For my part, it would have helped me on a few occasions already.