Skip to content

Add bates number params to AL Document#1004

Open
BryceStevenWilley wants to merge 2 commits intomainfrom
bates_number_to_aldoc
Open

Add bates number params to AL Document#1004
BryceStevenWilley wants to merge 2 commits intomainfrom
bates_number_to_aldoc

Conversation

@BryceStevenWilley
Copy link
Contributor

Lets the ALDocumentBundle use bates_number function when generating a PDF, as well as the work-in-progress params.

Depends on jhpyle/docassemble#898

Copy link
Member

@nonprofittechy nonprofittechy left a comment

Choose a reason for hiding this comment

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

LGTM!

@nonprofittechy
Copy link
Member

@BryceStevenWilley let me know when this is really ready to review/merge--looks like you still made recent changes

@BryceStevenWilley
Copy link
Contributor Author

I had been waiting for jhpyle/docassemble#898 to be merged, but missed that it just got cherry-picked and is already in 1.9.2. Needs some testing there, but it shouldn't have to change much.

@nonprofittechy nonprofittechy marked this pull request as draft February 23, 2026 16:00
@nonprofittechy
Copy link
Member

Changing to draft--update state when it's ready to merge, and we can do a major version bump if we need if this depends on a specific Docassemble release

@BryceStevenWilley BryceStevenWilley marked this pull request as ready for review March 5, 2026 16:11
@BryceStevenWilley
Copy link
Contributor Author

Okay, finished testing again, there were some bug fixes that didn't make it into Docassemble that I made another PR for at jhpyle/docassemble#914, but whether that's in doesn't affect this PR (bates_number() will just be broken for normal docassemble users until that's merged).

It does still require docassemble 1.9.2, so it might be worth the major version bump.

@BryceStevenWilley
Copy link
Contributor Author

Additional discovery; ALExhibitDocument will error in Docassemble 1.9.2, as it partially uses the bates numbering stuff. We're only on 1.9.1 for our prod server, so I'm going to add a fix for ALExhibitDocument (working on it right now) to this PR, and then we'll have to merge / upgrade when we upgrade to 1.9.2.

@BryceStevenWilley BryceStevenWilley marked this pull request as draft March 5, 2026 19:39
@BryceStevenWilley
Copy link
Contributor Author

Switching back to draft, since I realized that this will break all existing interviews that don't start from the beginning.

@BryceStevenWilley BryceStevenWilley force-pushed the bates_number_to_aldoc branch 2 times, most recently from d92f76b to cd66bc0 Compare March 5, 2026 20:45
Must be given to the `using` object block, and it sets
a param on the ALDocumentBundle object that gets used
when `as_pdf` is called. Addds defaults for all as well.
Passes along all of the bates parameters through all of the exhibit
document classes (ALExhibitDocument, ALExhibitList, ALExhibit).
@BryceStevenWilley BryceStevenWilley marked this pull request as ready for review March 5, 2026 22:23
@BryceStevenWilley
Copy link
Contributor Author

Forgot to comment back here, but fixed the remaining issues that I had found with the ALDocument (mainly being able to run with previously created objects. Should be ready for a re-review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants