-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
base: main
Are you sure you want to change the base?
feat(recap): Add suport to parse ACMS attachment pages #3393
Conversation
7fb2719
to
a58920e
Compare
a58920e
to
855aaf6
Compare
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.
0d221ca
to
4ae06ee
Compare
4ae06ee
to
5214801
Compare
* Updates logic to handle successful marking of the processing queue using the new method arguments. * Implements the `associate_related_instances` method for additional functionality.
@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! |
There was a problem hiding this 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
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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")
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 theProcessingQueue
andpacerhtmlfiles
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 theacms_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.