codeforpdx / recordexpungPDX

A project to automate the expungement of qualifying criminal records in Oregon. This project is done in conjunction with Qiu-Qiu Law.
https://recordsponge.com
MIT License
52 stars 88 forks source link

NEW FORMS #1672

Closed michaelzhang43 closed 1 year ago

michaelzhang43 commented 1 year ago

Oregon Judicial Department has issued new forms that all new expungements have to use. Pretty annoying because it's almost identical to the old form, but some counties have already told us they're not going to accept the old form starting in March. But also hopefully not difficult since the new form is essentially the same as the old form.

Please update the non-Multnomah County forms to the one attached, (and keep using the Multnomah County form for Multnomah County cases for now - no word yet on Multnomah County's procedure). new CriminalSetAside_AdultCases.pdf

monocle commented 1 year ago

@KentShikama Let me know if/how I can help.

I haven't done any PDF work before. I see pdfrw is being used to fill the forms out. Here are things I noticed.

I put the new form in to replace the existing "oregon.pdf" form and it give this error

image

Does the PDF need to be fillable? From what I can tell, the form Michael attached isn't fillable. Have you guys been manually converting the PDFs into fillable forms? If so, how are you doing that?

Here are the differences in the forms that I can see:

Existing form used by RecordSponge:

New form

KentShikama commented 1 year ago

@monocle In short, I've been using Adobe Acrobat. We create text fields and name them in a way that the program expects. I've just been paying for the subscription when needed but I'm sure @michaelzhang43 would be happy to reimburse you for the monthly cost.

monocle commented 1 year ago

@KentShikama @michaelzhang43 The new form has a new field "If no arrest date, date of citation, booking, or incident"

image

Would we ever put anything on this line? I'm not seeing that we are capturing this information in the app.

michaelzhang43 commented 1 year ago

Got it -

No, we don't need to ever put anything in that line. Those would be for minor citations that don't make it into OECI anyways

wittejm commented 1 year ago

Hey @monocle are you currently working on this or #1673 ? If not I can pick them up since courts will start taking the new paperwork soon.

monocle commented 1 year ago

@wittejm I opened up a PR this weekend https://github.com/codeforpdx/recordexpungPDX/pull/1675

I found some problems displaying check marks last night. I have a solution that I'm testing now. Hoping to update the PR here this afternoon.

wittejm commented 1 year ago

Ooh thanks, sorry I missed that

monocle commented 1 year ago

@wittejm I've been trying different approaches to get the check marks to show up consistently. However, I keep running into new problems with what I'm doing. If you have time, maybe it's best that jump in on it disregarding the work I've done. I can submit later if I can get things to work.

wittejm commented 1 year ago

Shoot, I offered too soon. I'm having trouble getting a dev environment working since the new Mac hardware doesn't support python very well yet. I'm sorry! But if I can help out by pairing with you on your own work, let me know!

monocle commented 1 year ago

@wittejm I just submitted a PR with the changes I've been using to get the backend Docker to work on Apple silicon. https://github.com/codeforpdx/recordexpungPDX/pull/1676 The PR is failing the backend check because of unrelated tests that are failing due to some being tied to today's date. So you could just pull those files from my fork it you want.

I think the changes I committed yesterday will work. If you are able to get your dev environment to work and can test the changes on your end, that would be greatly appreciated!

monocle commented 1 year ago

@wittejm @KentShikama @michaelzhang43 As far as I can tell, things are working appropriately with the new code in this PR. Here are the generated forms use John Common demo data. Please disregard the county name for these test files. The way RecordSponge picks the forms should be unchanged but should be tested in the dev/prod servers.

michaelzhang43 commented 1 year ago

Awesome - thank you!

Could you put it into dev so I can test it out?

michaelzhang43 commented 1 year ago

Just tested out - looks fantastic, including the additional view options.

Could you please push this to prod?