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

feat(recap): Add suport to parse ACMS attachment pages #3393

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

ERosendo
Copy link
Contributor

@ERosendo ERosendo commented Nov 21, 2023

This PR introduces the logic to process attachment pages from ACMS. Here's a breakdown of the key changes:

  • New Upload Type: A new upload type named ACMS_ATTACHMENT_PAGE is added to the ProcessingQueue and pacerhtmlfiles model.

  • A new helper method process_recap_acms_appellate_attachment is introduced. This method encapsulates the logic for parsing, processing, and merging ACMS attachment pages.

  • The PacerDocIdLookUpSerializer class is updated to include the acms_document_guid field in its response. This field is crucial for matching documents within the attachment page and generating the recap icon in ACMS.

  • Factories are added to mock the dictionary returned by Juriscraper methods. Additionally, tests are included to verify the functionality of the new features.

@ERosendo ERosendo changed the title feat(recap): Add new upload type for ACMS attachment pages feat(recap): Add suport to parse ACMS attachment pages Nov 21, 2023
@ERosendo ERosendo force-pushed the feat-add-support-to-parse-attachment-pages-from-acms branch 3 times, most recently from 7fb2719 to a58920e Compare November 21, 2023 17:09
@ERosendo ERosendo force-pushed the feat-add-support-to-parse-attachment-pages-from-acms branch from a58920e to 855aaf6 Compare November 21, 2023 17:22
cl/recap/mergers.py Outdated Show resolved Hide resolved
Adds a new parameter to the merge_attachment_page_data method and tweaks  the merge mechanism to integrate ACMS attachment pages into their corresponding docket entries.
@ERosendo ERosendo force-pushed the feat-add-support-to-parse-attachment-pages-from-acms branch 2 times, most recently from 0d221ca to 4ae06ee Compare November 21, 2023 22:40
@ERosendo ERosendo force-pushed the feat-add-support-to-parse-attachment-pages-from-acms branch from 4ae06ee to 5214801 Compare November 21, 2023 22:42
@ERosendo ERosendo marked this pull request as ready for review May 22, 2024 18:32
@ERosendo ERosendo requested a review from mlissner May 22, 2024 18:32
@mlissner
Copy link
Member

@grossir, can you please review again before I take another look? It's been a month or two and it looks like we've got some changes.

Thank you!

Copy link
Contributor

@grossir grossir 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 look fine, I just left a couple of observations

Copy link
Contributor

Choose a reason for hiding this comment

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

I see that different UPLOAD_TYPES have different validations in ProcessingQueueSerializer.validate. Would it be worth it to add validations for ACMS_ATTACHMENT_PAGE and ACMS_DOCKET_JSON ?

"docket_entry", "docket_entry__docket"
)
.filter(**params)
.afirst()
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure the first will be the desired RD? Note that the RecapDocument model has this Meta attribute ordering = ("document_type", "document_number", "attachment_number")

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

Successfully merging this pull request may close these issues.

None yet

4 participants