Repository navigation
Preserve existing-case parties through fees and submission - #299
Merged
Merged
Conversation
Review fixes: - Only clear an import on drafts that have one, so new-case filing choices survive court and classification changes. - Unwrap case lineage entries and turn unexpected court record shapes into a retryable import error instead of a 500. - Normalize party countries to ISO codes rather than failing the import. - Skip attorney references to parties without a court ID. - Keep co-parties already chosen when the filer links themselves. - Send an added organization's name first in the browser payload, matching the server and person_type. - Reuse a recent unconfirmed preview on case confirmation instead of asking the court again on every reload; Retry still refetches. - Render the blocked confirmation with the court roster. - Keep the import gate in the middleware only. Cleanups: - FilingParty.CASE_ROSTER_SOURCES and on_case_roster replace string checks. - One lock-and-check helper for the case import, shared fee-quote and snapshot field lists, and a dict lookup in reconcile_case_parties. - Fetch the case and its role list concurrently. - linked_case_party and missing_required_party_types replace duplicated queries and role-coverage logic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Existing-case filers were asked to recreate parties, and outgoing filings could turn those parties into new participants without their court IDs. This change imports the authenticated court roster at case confirmation and preserves each court party's identity through selection, fee calculation, and submission.
Changes
tyler_id,is_new, selected filing parties, and document references. Block incomplete imports and reject missing, duplicate, or substituted identities.Illinois staging verification
All seven issue examples completed fee calculation and submission against the Illinois test environment on October 8, 2026. Each submission returned an envelope ID and one filing ID, with the returned case ID matching the original search UUID. Validation used the browser payload builder and shared server preparation against persisted imported drafts.
2025SC53249472024EV0017523249482005SC0009853249492019-D-00006553249502019-SC-00016423249512024SC000033883249522024DC00000572324953This verifies staging envelope acceptance; clerk disposition was not checked. No production filings were made. The proxy exposes no supported representation-change fields, so returned associations are preserved without inventing changes.
Validation and deployment
Apply migration
0038_existing_case_identitybefore deploying. The validation note records the field matrix, workflow rules, commands, and detailed staging results. Raw court responses and credentials are not committed; fixture names, contacts, party/attorney IDs, and bar numbers are synthetic.Closes #291.