feat(pacer.email): multi docket NEF bankruptcy short description
Changes are basically putting the old parsing inside a for loop, accumulating parsed short_descriptions and choosing the best looking. It doesn't break past examples and will allow us to add the short_description field for multi docket NEFs (we say "multi" but have only seen 2 docket NEFs). Check the GH issue for graphic examples
Solves: #914
Solves: COURTLISTENER-6Q7 COURTLISTENER-6Q8 COURTLISTENER-6QV COURTLISTENER-71E
Also, do you know if the short descriptions are always the same for all the items in a multi-doc NEF?
I don't know with certainty. I would guess from the few examples I have seen, and the general structure of NEF emails:
The only type of "multi" docket NEF we have examples of are 2-docket NEF. Most of them have a subject related to Adversary Case ..something.... It seems to me the logic is that some "single documents" (which may actually be more than a document, considering attachments) become a docket entry mirrored on both linked dockets. In that sense, the subject and short description should be the same, since there is a "single document"
there is a "single document"
That's my assumption too. If we lean into that, does that change your code?