-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Backward replication of RECAP PDF uploads to subdockets #4864
Comments
I might not be thinking about this carefully enough, but I think the trigger is that whenever you add a new RECAPDocument without a PDF, you check if the PDF is available elsewhere and you replicate it to the new RECAPDocument if needed. I think this happens when:
We could have an extra step to only do this if the docket number contains |
Got it! So the goal of this issue is simply to replicate existing PDFs to new RECAPDocuments that match, correct? I initially thought we wanted to replicate existing PDFs to all RECAPDocuments that matched, even if the RDs were not new. However, if this should only apply to newly incoming RECAPDocuments, I agree that it’s straightforward. |
Yes, exactly. We'll get to that bigger project eventually, but not now. :) |
This is a follow up of #4826
In #4857 we added support for replicating incoming PDF uploads to subdockets. The goal of this issue is to enable PDF replication in the opposite direction. Specifically, if a docket already contains multiple merged PDFs and we detect that it has subdockets, we should replicate the PDFs to all subdockets where the
RECAPDocuments
match. This ensures that each subdocket is as complete as possible.To consider:
Replication at the
RECAPDocument
Level:PDFs should be copied at the
RECAPDocument
level, matched bypacer_doc_id
in order to avoid merging content that does not belong to a sub-docket.Triggering Backward Replication:
What action should trigger this backward replication? Ideally, replication should occur as soon as we identify that a docket has subdockets. Currently, this can be detected during an attachment page upload or a PDF upload, where logic exists to find common
RECAPDocuments
in subdockets. Additional triggers may be required once we add this logic to other sources.Handling content variations in subdockets:
Some sub-dockets may have different PDFs than others. To ensure completeness, the replication logic should be applied to each subdocket to all other sub-dockets. By the end of the process, all subdockets will contain the all the same content.
The text was updated successfully, but these errors were encountered: