Skip to content

Commit a999187

Browse files
Merge branch 'main' into fix_gha_too_big
2 parents 66e0ecd + 5ec1e39 commit a999187

14 files changed

Lines changed: 65 additions & 22 deletions

.github/workflows/da_build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: DA Build
2+
on:
3+
push:
4+
branches: [ main, master ]
5+
pull_request:
6+
branches: [ main, master ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: SuffolkLITLab/ALActions/da_build@main

.github/workflows/valid_jinja2.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Valid Jinja2
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
jobs:
7+
validate:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: SuffolkLITLab/ALActions/valid_jinja2@main

.github/workflows/word_diff.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Word Diff
2+
on:
3+
pull_request:
4+
jobs:
5+
diff:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: SuffolkLITLab/ALActions/word_diff@main

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,22 @@ Main interviews of import:
99
* any_filing_interview.yml: allows you to make any type of filing, initial or subsequent
1010
* admin_interview.yml: lets you handle admin / user functionality, outside of the context of cases and filings
1111

12-
In progress!
12+
## Config
13+
14+
Different parts of this package expect the below to be present in Docassemble's
15+
config.
16+
17+
```yaml
18+
efile proxy:
19+
# The URL where the Efile Proxy Server is running
20+
url: https:...
21+
# The Proxy Server's API Key (should be provided to you by the sever admins)
22+
api key: ...
23+
# If you're given an EFSP global fee waiver ID for your jurisdiction, put it here
24+
global waivers:
25+
illinois: ...
26+
massachusetts: ...
27+
```
1328
1429
## Authors
1530
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.7.1'
1+
__version__ = '1.7.2'

docassemble/EFSPIntegration/conversions.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,19 +261,19 @@ def pretty_display(data, tab_depth=0, skip_xml=True, item_name=None) -> str:
261261

262262
elif isinstance(data, dict):
263263
if "declaredType" in data:
264-
if data["declaredType"] == "gov.niem.niem.niem_core._2.TextType":
264+
if "gov.niem.niem.niem_core._2.TextType" in data["declaredType"]:
265265
out += (
266266
tab_str
267267
+ f"* {data['name'].replace(':', '/')}: {data['value']['value']}\n"
268268
)
269269
return out
270-
if data["declaredType"] == "gov.niem.niem.proxy.xsd._2.Boolean":
270+
if "gov.niem.niem.proxy.xsd._2.Boolean" in data["declaredType"]:
271271
out += (
272272
tab_str
273273
+ f"* {data['name'].replace(':', '/')}: {data['value']['value']}\n"
274274
)
275275
return out
276-
if data["declaredType"] == "gov.niem.niem.proxy.xsd._2.DateTime":
276+
if "gov.niem.niem.proxy.xsd._2.DateTime" in data["declaredType"]:
277277
out += (
278278
tab_str
279279
+ f"* date: {datetime.fromtimestamp(float(data['value']['value'])/1000)}\n"
@@ -764,10 +764,7 @@ def fetch_case_info(
764764
if "AppellateCaseOriginalCase" in aug.get("declaredType"):
765765
new_case.lower_docket_number = aug.get("value", {}).get("caseDocketID")
766766
new_case.lower_case_title = aug.get("value", {}).get("caseTitleText")
767-
if (
768-
aug.get("declaredType")
769-
== "tyler.ecf.extensions.common.CaseAugmentationType"
770-
):
767+
if aug.get("name") == r"{urn:tyler:ecf:extensions:Common}CaseAugmentation":
771768
new_case.lower_judge = aug.get("value", {}).get("lowerCourtJudgeText")
772769
participant_xml = aug.get("value", {}).get("caseParticipant", [])
773770
for participant in participant_xml:

docassemble/EFSPIntegration/data/questions/minimal_interview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ code: |
5151
tyler_login
5252
lead_contact = users[0]
5353
main_document.completed
54-
tyler_payment_id = get_config('efile proxy', {}).get('global waiver', '')
54+
tyler_payment_id = get_config('efile proxy', {}).get('global waivers', [''])[0]
5555
ready_to_efile
5656
efile
5757
ending_screen

docassemble/EFSPIntegration/data/questions/unauthenticated_actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ data:
7272
texas: Texas
7373
california: California
7474
indiana: Indiana
75-
75+
vermont: Vermont
7676
---
7777
code: |
7878
can_connect_to_proxy = proxy_conn.get_server_name().is_ok()

docassemble/EFSPIntegration/test/test_conversions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# do not pre-load
2+
13
import json
24
import unittest
35
from unittest.mock import MagicMock

docassemble/EFSPIntegration/test/test_interview_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# do not pre-load
2+
13
import unittest
24
from ..interview_logic import (
35
make_filters,

0 commit comments

Comments
 (0)