freelawproject / foresight

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

Add Claims support for recap.email #58

Open albertisfu opened 2 years ago

albertisfu commented 2 years ago

Reviewing more errors related to freelawproject/courtlistener#2243 on Sentry.

This time the reason for recent errors are notifications that belong to a Claim, some examples are below:

Screen Shot 2022-10-21 at 15 04 09

Screen Shot 2022-10-21 at 15 03 59

Their content is different from a normal pacer document. Seems the Claim number is a parallel number from the Document number in the same case.

Also contains additional data like: Creditor Name, Amount Claimed, Amount Secured, Amount Priority.

mlissner commented 2 years ago

Is there an easy way to stop getting errors when we get these emails?

albertisfu commented 2 years ago

Yeah, we could just pass an empty response from the email report when these messages come in. So that would mean a no-valid notification, so the error won't be logged into sentry. If that's ok I can apply this temporary fix.

mlissner commented 2 years ago

Sounds simple enough. :)

mlissner commented 1 year ago

We have a potential client that wants this now. It's not a blocker for them, but it'd be nice if we could do it.

albertisfu commented 1 year ago

Great, so should we move it to my backlog?

mlissner commented 1 year ago

Yeah, I haven't figured that out yet. Could you take a look at how hard this feature would be — which pieces it needs and how complicated they are? The full package for the customer will be:

mlissner commented 1 year ago

I'll put this on your backlog just for analysis for now.

albertisfu commented 1 year ago

Yes, of course, I'll do the analysis and report it here.

albertisfu commented 1 year ago

I've checked this, these are my findings.

  1. Case Name
  2. Case Number: we can use this to identify the docket to which the Claim is linked to.
  3. Creditor Name: creditor_details in DB
  4. Claim Number: claim_number in DB
  5. Amount Claimed: amount_claimed in DB
  6. Amount Secured: secured_claimed in DB
  7. Amount Priority: priority_claimed in DB

And the Claim document that we can get using the magic link and store in a ClaimHistory object.

I think everything above could be done in a week or so if there are no surprises to solve.

I have a question, Do we need to show claims to users on CourtListener site?

mlissner commented 1 year ago

Thanks Alberto, this sounds good, and I appreciate the work estimate as well.

I have a question, Do we need to show claims to users on CourtListener site?

Yes, in theory, we should do it, but it's one of those things we haven't gotten around to. I guess this would be the time, when we do this project.

albertisfu commented 1 year ago

Seems that this is the next task on my backlog, so should we start building the things that we described above (parsing claims email notifications, merging into DB, sending docket alerts and webhooks)?

And in the next step (Issue/PR) should we define how to show Claims to users on Courtslitener site?

mlissner commented 1 year ago

See related issues:

https://github.com/freelawproject/juriscraper/issues/543

https://github.com/freelawproject/juriscraper/issues/630

https://github.com/freelawproject/juriscraper/issues/638

https://github.com/freelawproject/courtlistener/issues/1005

https://github.com/freelawproject/juriscraper/issues/650