Add declarative LITEFile filing handoff - #426
Open
nonprofittechy wants to merge 2 commits into
Open
Conversation
Collaborator
Author
|
This package has some files that would move into a dedicated standalone repo if the shape of this all looks good. |
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.
The Vermont RFA interview can now hand its completed answers and four enabled court PDFs to LITEFile as an editable filing draft. This is the Docassemble sender half of SuffolkLITLab/LITEFile#106.
Companion receiver PR: SuffolkLITLab/LITEFile#225.
All interview-specific behavior is visible in
litefile.yml: jurisdiction and filing intent, known case facts, party roles, semantic filing hints, and the document map. The Python module is interview-independent transport code so it can move into a shared integration package later. The main interview only includes the YAML and displays its button on the download screen.The adapter uses the flat server-wide
litefileconfiguration, defaultslitefile_person()to normal AssemblyLine/Docassemble individual fields throughshowifdef, retains AssemblyLine's cache andDAFilehandles for idempotent retries, and uploads withBackgroundAction. Its initial routing block reliably consumes the result after Docassemble's wait refresh. Background task arguments are empty, so filing answers, correction tokens, and credentials are not copied into task arguments.A separate follow-up commit adds declarative
litefile_filing_hint_overrides. Authors can replace general semantic hints by county and then by court, including per-document filing type, document type, and filing component hints.Validation:
python -I -m pytest -q tests/test_litefile.py— 17 passed.~/venv/bin/dainstall --server localhost ..BackgroundActionflow created a draft and displayed its success screen.No production configuration or credentials are included in this branch.