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

687 Fix docket report parsing on view multiple documents layout #688

Merged
merged 2 commits into from
May 31, 2023

Conversation

albertisfu
Copy link
Contributor

This PR fixes the issue described in #687.

When the "View multiple documents" option is enabled on PACER, the docket entries table contains an extra column with a checkbox input to select the displayed documents.

Screenshot 2023-05-31 at 12 02 36

Previously, this extra cell was removed when the checkbox was present within the cell. However, the problem arose when there was no checkbox in this extra cell, such as with sealed documents or entries without an attached document. As a result, the cell was not removed, causing a parsing mismatch.

A similar issue occurred with bankruptcy dockets, where there is an extra empty cell before the entry number. As a result, the entry number was incorrectly placed in the description field, while the entry number itself remained null.
Screenshot 2023-05-31 at 12 01 16

To resolve the problem, the "View multiple documents" docket report is now detected by checking for the presence of the "View Selected" underneath the entries table so the correct indexes are used for each case.

Regarding tests, there are multiple tests for "View multiple documents" docket reports on appellate dockets. However, only two tests were available for bankruptcy dockets (nvb_368678.html, kywb_238163.html), but they did not cover the scenarios where this issue occurred (numbered entries without the checkbox input). So this issue was not previously detected.

…documents layout

- Since there are layouts where the Download Selected button is not available, see: nvb_368678.html
@albertisfu albertisfu marked this pull request as ready for review May 31, 2023 18:05
@albertisfu albertisfu requested a review from mlissner May 31, 2023 18:06
Copy link
Member

@mlissner mlissner left a comment

Choose a reason for hiding this comment

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

Great. Too many corner cases! Thanks Alberto.

@mlissner mlissner merged commit ce91e3c into main May 31, 2023
@mlissner mlissner deleted the 687-fix-view-multiple-documents-docket-report branch May 31, 2023 18:35
@mlissner
Copy link
Member

Will you get this deployed please, as usual, too?

@albertisfu
Copy link
Contributor Author

Sure, Juriscraper update is released, and Courtlistener update it's being deployed now.

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