Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pacer.email): plain text parsing of bankruptcy short description #865

Merged

Conversation

grossir
Copy link
Contributor

@grossir grossir commented Jan 20, 2024

Because of order of statements, parsing of bankruptcy short description was failing when trying to access the 0 index
of the empty list self.docket_numbers

Also added

  • a plain text test case for cob
  • short description parsing case for cob
  • logger.error calls for when we are not prepared to parse a bankruptcy short description
  • correct document_url parsing

Solves #729
Solves #866

Because of order of statements, parsing of bankruptcy short description
was failing when trying to access the 0 index
of the empty list self.docket_numbers

Also added
- a plain text test case for cob
- short description parsing case for cob
- logger.error calls for when we are not prepared to parse a bankruptcy short description

Solves freelawproject#729
@mlissner
Copy link
Member

Alberto, can you please review this one when you have a moment?

@albertisfu albertisfu self-requested a review January 23, 2024 21:07
Copy link
Contributor

@albertisfu albertisfu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes here look pretty good. I just added a couple of suggestions and noticed that the description parsing in the plain cob example should be fixed.

…ents_plain

- _contains_attachments_plain was always returning False, even when True
- _get_description_plain updated regex for format seen in cob
- Updated test cases: almd_4_plain.txt had a duplicated document paragraph
Copy link
Contributor

@albertisfu albertisfu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed the latest changes here and they look great. I just made one last suggestion.

Thanks

@grossir
Copy link
Contributor Author

grossir commented Jan 31, 2024

@albertisfu please check again

@albertisfu albertisfu self-requested a review January 31, 2024 01:16
Copy link
Contributor

@albertisfu albertisfu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good now to me. It seems ready for merging. @mlissner

@mlissner mlissner merged commit 36f1bb6 into freelawproject:main Jan 31, 2024
8 checks passed
@mlissner
Copy link
Member

Lovely. Thank you guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants