docassemble.EFSPIntegration 1.7.2__tar.gz → 1.7.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/LICENSE +1 -1
- docassemble_efspintegration-1.7.4/MANIFEST.in +17 -0
- {docassemble_efspintegration-1.7.2/docassemble.EFSPIntegration.egg-info → docassemble_efspintegration-1.7.4}/PKG-INFO +2 -6
- docassemble_efspintegration-1.7.4/docassemble/EFSPIntegration/__init__.py +1 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/login_qs.yml +19 -7
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/efm_client.py +13 -5
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/interview_logic.py +2 -4
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/py_efsp_client.py +0 -3
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4/docassemble.EFSPIntegration.egg-info}/PKG-INFO +2 -6
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble.EFSPIntegration.egg-info/SOURCES.txt +1 -19
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble.EFSPIntegration.egg-info/requires.txt +1 -1
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble.EFSPIntegration.egg-info/top_level.txt +1 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/pyproject.toml +12 -14
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/setup.cfg +1 -1
- docassemble_efspintegration-1.7.2/.bumpversion.cfg +0 -14
- docassemble_efspintegration-1.7.2/.github/workflows/black-action.yml +0 -19
- docassemble_efspintegration-1.7.2/.github/workflows/da_build.yml +0 -12
- docassemble_efspintegration-1.7.2/.github/workflows/deploy.yml +0 -23
- docassemble_efspintegration-1.7.2/.github/workflows/kiln_tests.txt +0 -29
- docassemble_efspintegration-1.7.2/.github/workflows/publish.yml +0 -14
- docassemble_efspintegration-1.7.2/.github/workflows/unittests.yml +0 -24
- docassemble_efspintegration-1.7.2/.github/workflows/valid_jinja2.yml +0 -11
- docassemble_efspintegration-1.7.2/.github/workflows/word_diff.yml +0 -9
- docassemble_efspintegration-1.7.2/.gitignore +0 -23
- docassemble_efspintegration-1.7.2/CHANGELOG.md +0 -101
- docassemble_efspintegration-1.7.2/MANIFEST.in +0 -1
- docassemble_efspintegration-1.7.2/docassemble/EFSPIntegration/__init__.py +0 -1
- docassemble_efspintegration-1.7.2/docassemble/EFSPIntegration/requirements.txt +0 -7
- docassemble_efspintegration-1.7.2/docassemble/EFSPIntegration/test/opening_affidavit_adams.json +0 -1473
- docassemble_efspintegration-1.7.2/docassemble/EFSPIntegration/test/peoria_to_cr.json +0 -220
- docassemble_efspintegration-1.7.2/docassemble/EFSPIntegration/test/temp2.json +0 -3216
- docassemble_efspintegration-1.7.2/docassemble/EFSPIntegration/test/vars.json +0 -1190
- docassemble_efspintegration-1.7.2/docassemble.EFSPIntegration.egg-info/not-zip-safe +0 -1
- docassemble_efspintegration-1.7.2/setup.py +0 -58
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/README.md +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/conversions.py +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/admin_interview.yml +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/any_filing_interview.yml +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/case_search.yml +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/codes_interview.yml +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/efiling_integration.yml +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/logs_interview.yml +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/minimal_interview.yml +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/toga_payments.yml +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/toga_payments_interview.yml +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/unauthenticated_actions.yml +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/questions/unauthenticated_interview.yml +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/sources/README.md +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/sources/admin_interview.feature +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/sources/any_filing_interview.feature +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/sources/example_upload.pdf +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/sources/unauthenticated_interview.feature +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/static/Ajax-loader.gif +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/static/README.md +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/data/templates/README.md +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/py.typed +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/test/__init__.py +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/test/test_conversions.py +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/test/test_interview_functions.py +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble/EFSPIntegration/test/test_proxy_conn.py +0 -0
- {docassemble_efspintegration-1.7.2 → docassemble_efspintegration-1.7.4}/docassemble.EFSPIntegration.egg-info/dependency_links.txt +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
graft docassemble/EFSPIntegration/data
|
|
3
|
+
recursive-exclude * *.egg-info
|
|
4
|
+
recursive-exclude .git *
|
|
5
|
+
recursive-exclude venv *
|
|
6
|
+
recursive-exclude .github *
|
|
7
|
+
recursive-exclude .pytest_cache *
|
|
8
|
+
recursive-exclude .vscode *
|
|
9
|
+
recursive-exclude build *
|
|
10
|
+
recursive-exclude dist *
|
|
11
|
+
recursive-exclude * __pycache__
|
|
12
|
+
recursive-exclude * *.pyc
|
|
13
|
+
recursive-exclude * *.pyo
|
|
14
|
+
recursive-exclude * *.orig
|
|
15
|
+
recursive-exclude * *~
|
|
16
|
+
recursive-exclude * *.bak
|
|
17
|
+
recursive-exclude * *.swp
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: docassemble.EFSPIntegration
|
|
3
|
-
Version: 1.7.
|
|
4
|
-
Home-page: https://github.com/SuffolkLITLab/docassemble-EFSPIntegration
|
|
5
|
-
Author: Bryce Willey
|
|
3
|
+
Version: 1.7.4
|
|
6
4
|
Author-email: Bryce Willey <bryce.willey@suffolk.edu>
|
|
7
5
|
License-Expression: MIT
|
|
8
6
|
Project-URL: GitHub, https://github.com/SuffolkLITLab/docassemble-EFSPIntegration
|
|
@@ -11,9 +9,7 @@ Description-Content-Type: text/markdown
|
|
|
11
9
|
License-File: LICENSE
|
|
12
10
|
Requires-Dist: docassemble.AssemblyLine>=3.5.0
|
|
13
11
|
Requires-Dist: docassemble.ALToolbox>=0.6.2
|
|
14
|
-
Requires-Dist: requests
|
|
15
|
-
Dynamic: author
|
|
16
|
-
Dynamic: home-page
|
|
12
|
+
Requires-Dist: requests>=2.25.1
|
|
17
13
|
Dynamic: license-file
|
|
18
14
|
|
|
19
15
|
# docassemble-EFSPIntegration
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.7.4'
|
|
@@ -57,13 +57,15 @@ code: |
|
|
|
57
57
|
need:
|
|
58
58
|
- proxy_conn
|
|
59
59
|
- da_store
|
|
60
|
+
- tyler_header_name
|
|
61
|
+
- tyler_id_name
|
|
62
|
+
- sql_header_name
|
|
63
|
+
- sql_id_name
|
|
60
64
|
code: |
|
|
61
|
-
tyler_header_name = f"TYLER-TOKEN-{jurisdiction_id.upper()}"
|
|
62
|
-
tyler_id_name = f"TYLER-ID-{jurisdiction_id}"
|
|
63
65
|
try:
|
|
64
|
-
if da_store.defined(
|
|
65
|
-
proxy_conn.proxy_client.headers[tyler_header_name] = da_store.get(
|
|
66
|
-
proxy_conn.proxy_client.headers[tyler_id_name] = da_store.get(
|
|
66
|
+
if da_store.defined(sql_header_name):
|
|
67
|
+
proxy_conn.proxy_client.headers[tyler_header_name] = da_store.get(sql_header_name)
|
|
68
|
+
proxy_conn.proxy_client.headers[tyler_id_name] = da_store.get(sql_id_name)
|
|
67
69
|
tyler_user = proxy_conn.get_user()
|
|
68
70
|
if tyler_user.is_ok():
|
|
69
71
|
my_username = tyler_user.data.get('email')
|
|
@@ -72,13 +74,16 @@ code: |
|
|
|
72
74
|
logged_in_user_is_admin, logged_in_user_is_global_admin = get_tyler_roles(proxy_conn, None, tyler_user)
|
|
73
75
|
tyler_login = True
|
|
74
76
|
else:
|
|
75
|
-
da_store.
|
|
76
|
-
da_store.
|
|
77
|
+
da_store.delete(sql_header_name)
|
|
78
|
+
da_store.delete(sql_id_name)
|
|
77
79
|
except NameError as err:
|
|
78
80
|
# Re-raise only name errors, so DA can work correctly
|
|
79
81
|
raise err
|
|
80
82
|
except Exception as ex:
|
|
81
83
|
log_error_and_notify(f"Error when trying to get da_store Tyler token: {ex}")
|
|
84
|
+
# Don't try it again
|
|
85
|
+
da_store.delete(sql_header_name)
|
|
86
|
+
da_store.delete(sql_id_name)
|
|
82
87
|
---
|
|
83
88
|
id: login with redis
|
|
84
89
|
continue button field: continue_stored_login
|
|
@@ -95,6 +100,13 @@ fields:
|
|
|
95
100
|
- No, I want to use a different login email.: False
|
|
96
101
|
---
|
|
97
102
|
code: |
|
|
103
|
+
tyler_header_name = f"TYLER-TOKEN-{jurisdiction_id.upper()}"
|
|
104
|
+
tyler_id_name = f"TYLER-ID-{jurisdiction_id.upper()}"
|
|
105
|
+
sql_header_name = "EFSP-" + tyler_header_name
|
|
106
|
+
sql_id_name = "EFSP-" + tyler_id_name
|
|
107
|
+
---
|
|
108
|
+
code: |
|
|
109
|
+
# Leaving in until MAPetitionToSealEviction is refactored
|
|
98
110
|
tyler_user_id_key = f"EFSP-TYLER-ID-{jurisdiction_id.lower()}"
|
|
99
111
|
---
|
|
100
112
|
only sets:
|
|
@@ -14,6 +14,7 @@ from docassemble.base.util import (
|
|
|
14
14
|
Person,
|
|
15
15
|
Individual,
|
|
16
16
|
DAStore,
|
|
17
|
+
DAEmpty,
|
|
17
18
|
DADateTime,
|
|
18
19
|
as_datetime,
|
|
19
20
|
reconsider,
|
|
@@ -93,6 +94,16 @@ def _give_data_url(bundle: ALDocumentBundle, key: str = "final") -> None:
|
|
|
93
94
|
doc.page_count = doc_pdf.num_pages()
|
|
94
95
|
|
|
95
96
|
|
|
97
|
+
def _remove_all_da_emptys(json_val):
|
|
98
|
+
if isinstance(json_val, DAEmpty):
|
|
99
|
+
return None
|
|
100
|
+
if isinstance(json_val, list):
|
|
101
|
+
return [_remove_all_da_emptys(v) for v in json_val]
|
|
102
|
+
if isinstance(json_val, dict):
|
|
103
|
+
return {k: _remove_all_da_emptys(v) for k, v in json_val.items()}
|
|
104
|
+
return json_val
|
|
105
|
+
|
|
106
|
+
|
|
96
107
|
def _get_all_vars(bundle: ALDocumentBundle, key: str = "final") -> Dict:
|
|
97
108
|
"""Strips out some extra big variables that we don't need to serialize and send across the network"""
|
|
98
109
|
_give_data_url(bundle, key=key)
|
|
@@ -132,6 +143,8 @@ def _get_all_vars(bundle: ALDocumentBundle, key: str = "final") -> Dict:
|
|
|
132
143
|
for var in vars_to_pop:
|
|
133
144
|
all_vars_dict.pop(var, None)
|
|
134
145
|
|
|
146
|
+
all_vars_dict = _remove_all_da_emptys(all_vars_dict)
|
|
147
|
+
|
|
135
148
|
for doc in all_vars_dict.get("al_court_bundle", {}).get("elements", []):
|
|
136
149
|
doc.pop("optional_service_options", None)
|
|
137
150
|
doc.pop("document_type_options", None)
|
|
@@ -206,7 +219,6 @@ class ProxyConnection(EfspConnection):
|
|
|
206
219
|
self,
|
|
207
220
|
tyler_email: str = None,
|
|
208
221
|
tyler_password: str = None,
|
|
209
|
-
jeffnet_key: str = None,
|
|
210
222
|
*,
|
|
211
223
|
jurisdiction: str = None,
|
|
212
224
|
) -> ApiResponse:
|
|
@@ -214,19 +226,15 @@ class ProxyConnection(EfspConnection):
|
|
|
214
226
|
Params:
|
|
215
227
|
tyler_email (str)
|
|
216
228
|
tyler_password (str)
|
|
217
|
-
jeffnet_key (str)
|
|
218
229
|
"""
|
|
219
230
|
temp_efile_config = get_config("efile proxy", {})
|
|
220
231
|
if tyler_email is None:
|
|
221
232
|
tyler_email = temp_efile_config.get("tyler email")
|
|
222
233
|
if tyler_password is None:
|
|
223
234
|
tyler_password = temp_efile_config.get("tyler password")
|
|
224
|
-
if jeffnet_key is None:
|
|
225
|
-
jeffnet_key = temp_efile_config.get("jeffnet api token")
|
|
226
235
|
resp = super().authenticate_user(
|
|
227
236
|
tyler_email=tyler_email,
|
|
228
237
|
tyler_password=tyler_password,
|
|
229
|
-
jeffnet_key=jeffnet_key,
|
|
230
238
|
jurisdiction=jurisdiction,
|
|
231
239
|
)
|
|
232
240
|
if resp.is_ok():
|
|
@@ -177,14 +177,12 @@ def contact_fields_with_defaults(
|
|
|
177
177
|
"field": person.attr_name("other_contact_method"),
|
|
178
178
|
"input type": "area",
|
|
179
179
|
"required": False,
|
|
180
|
-
"help": word(
|
|
181
|
-
"""
|
|
180
|
+
"help": word("""
|
|
182
181
|
If you do not have a phone number or email, provide
|
|
183
182
|
specific contact instructions. For example, use a friend's phone number.
|
|
184
183
|
But the friend must be someone you can rely on to give you a
|
|
185
184
|
message.
|
|
186
|
-
"""
|
|
187
|
-
),
|
|
185
|
+
"""),
|
|
188
186
|
},
|
|
189
187
|
]
|
|
190
188
|
if is_admin or not can_check_efile:
|
|
@@ -235,7 +235,6 @@ class EfspConnection:
|
|
|
235
235
|
*,
|
|
236
236
|
tyler_email: Optional[str] = None,
|
|
237
237
|
tyler_password: Optional[str] = None,
|
|
238
|
-
jeffnet_key: Optional[str] = None,
|
|
239
238
|
jurisdiction: str = None,
|
|
240
239
|
) -> ApiResponse:
|
|
241
240
|
"""
|
|
@@ -251,8 +250,6 @@ class EfspConnection:
|
|
|
251
250
|
)
|
|
252
251
|
auth_obj: Dict[str, Union[str, Dict[str, str]]] = {}
|
|
253
252
|
auth_obj["api_key"] = self.api_key
|
|
254
|
-
if jeffnet_key:
|
|
255
|
-
auth_obj["jeffnet"] = {"key": jeffnet_key}
|
|
256
253
|
if tyler_email and tyler_password:
|
|
257
254
|
auth_obj[f"tyler-{jurisdiction}"] = {
|
|
258
255
|
"username": tyler_email,
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: docassemble.EFSPIntegration
|
|
3
|
-
Version: 1.7.
|
|
4
|
-
Home-page: https://github.com/SuffolkLITLab/docassemble-EFSPIntegration
|
|
5
|
-
Author: Bryce Willey
|
|
3
|
+
Version: 1.7.4
|
|
6
4
|
Author-email: Bryce Willey <bryce.willey@suffolk.edu>
|
|
7
5
|
License-Expression: MIT
|
|
8
6
|
Project-URL: GitHub, https://github.com/SuffolkLITLab/docassemble-EFSPIntegration
|
|
@@ -11,9 +9,7 @@ Description-Content-Type: text/markdown
|
|
|
11
9
|
License-File: LICENSE
|
|
12
10
|
Requires-Dist: docassemble.AssemblyLine>=3.5.0
|
|
13
11
|
Requires-Dist: docassemble.ALToolbox>=0.6.2
|
|
14
|
-
Requires-Dist: requests
|
|
15
|
-
Dynamic: author
|
|
16
|
-
Dynamic: home-page
|
|
12
|
+
Requires-Dist: requests>=2.25.1
|
|
17
13
|
Dynamic: license-file
|
|
18
14
|
|
|
19
15
|
# docassemble-EFSPIntegration
|
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
.bumpversion.cfg
|
|
2
|
-
.gitignore
|
|
3
|
-
CHANGELOG.md
|
|
4
1
|
LICENSE
|
|
5
2
|
MANIFEST.in
|
|
6
3
|
README.md
|
|
7
4
|
pyproject.toml
|
|
8
5
|
setup.cfg
|
|
9
|
-
setup.py
|
|
10
|
-
.github/workflows/black-action.yml
|
|
11
|
-
.github/workflows/da_build.yml
|
|
12
|
-
.github/workflows/deploy.yml
|
|
13
|
-
.github/workflows/kiln_tests.txt
|
|
14
|
-
.github/workflows/publish.yml
|
|
15
|
-
.github/workflows/unittests.yml
|
|
16
|
-
.github/workflows/valid_jinja2.yml
|
|
17
|
-
.github/workflows/word_diff.yml
|
|
18
6
|
docassemble.EFSPIntegration.egg-info/PKG-INFO
|
|
19
7
|
docassemble.EFSPIntegration.egg-info/SOURCES.txt
|
|
20
8
|
docassemble.EFSPIntegration.egg-info/dependency_links.txt
|
|
21
|
-
docassemble.EFSPIntegration.egg-info/not-zip-safe
|
|
22
9
|
docassemble.EFSPIntegration.egg-info/requires.txt
|
|
23
10
|
docassemble.EFSPIntegration.egg-info/top_level.txt
|
|
24
11
|
docassemble/EFSPIntegration/__init__.py
|
|
@@ -27,7 +14,6 @@ docassemble/EFSPIntegration/efm_client.py
|
|
|
27
14
|
docassemble/EFSPIntegration/interview_logic.py
|
|
28
15
|
docassemble/EFSPIntegration/py.typed
|
|
29
16
|
docassemble/EFSPIntegration/py_efsp_client.py
|
|
30
|
-
docassemble/EFSPIntegration/requirements.txt
|
|
31
17
|
docassemble/EFSPIntegration/data/questions/admin_interview.yml
|
|
32
18
|
docassemble/EFSPIntegration/data/questions/any_filing_interview.yml
|
|
33
19
|
docassemble/EFSPIntegration/data/questions/case_search.yml
|
|
@@ -49,10 +35,6 @@ docassemble/EFSPIntegration/data/static/Ajax-loader.gif
|
|
|
49
35
|
docassemble/EFSPIntegration/data/static/README.md
|
|
50
36
|
docassemble/EFSPIntegration/data/templates/README.md
|
|
51
37
|
docassemble/EFSPIntegration/test/__init__.py
|
|
52
|
-
docassemble/EFSPIntegration/test/opening_affidavit_adams.json
|
|
53
|
-
docassemble/EFSPIntegration/test/peoria_to_cr.json
|
|
54
|
-
docassemble/EFSPIntegration/test/temp2.json
|
|
55
38
|
docassemble/EFSPIntegration/test/test_conversions.py
|
|
56
39
|
docassemble/EFSPIntegration/test/test_interview_functions.py
|
|
57
|
-
docassemble/EFSPIntegration/test/test_proxy_conn.py
|
|
58
|
-
docassemble/EFSPIntegration/test/vars.json
|
|
40
|
+
docassemble/EFSPIntegration/test/test_proxy_conn.py
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=60,<82.0.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
4
5
|
[project]
|
|
5
6
|
name = "docassemble.EFSPIntegration"
|
|
6
|
-
|
|
7
|
+
dynamic = ["version"]
|
|
7
8
|
readme = "README.md"
|
|
8
9
|
requires-python=">=3.10,>=3.12.3,<3.13"
|
|
9
10
|
dependencies = [
|
|
10
11
|
"docassemble.AssemblyLine>=3.5.0",
|
|
11
12
|
"docassemble.ALToolbox>=0.6.2",
|
|
12
|
-
"requests
|
|
13
|
+
"requests>=2.25.1"
|
|
13
14
|
]
|
|
14
15
|
license="MIT"
|
|
15
16
|
license-files = ["LICEN[CS]E*"]
|
|
@@ -20,19 +21,16 @@ authors = [
|
|
|
20
21
|
[project.urls]
|
|
21
22
|
GitHub = "https://github.com/SuffolkLITLab/docassemble-EFSPIntegration"
|
|
22
23
|
|
|
23
|
-
[
|
|
24
|
-
|
|
25
|
-
"setuptools>=60",
|
|
26
|
-
"setuptools-scm>=8.1"]
|
|
27
|
-
build-backend = "setuptools.build_meta"
|
|
24
|
+
[tool.setuptools.packages.find]
|
|
25
|
+
where = ["."]
|
|
28
26
|
|
|
29
|
-
[tool.setuptools]
|
|
30
|
-
|
|
27
|
+
[tool.setuptools.dynamic]
|
|
28
|
+
version = {attr = "docassemble.EFSPIntegration.__version__"}
|
|
31
29
|
|
|
32
30
|
[dependency-groups]
|
|
33
31
|
dev = [
|
|
34
|
-
"docassemble.base==1.
|
|
35
|
-
"docassemble.webapp==1.
|
|
32
|
+
"docassemble.base==1.9.2",
|
|
33
|
+
"docassemble.webapp==1.9.2",
|
|
36
34
|
"types-requests",
|
|
37
35
|
"types-python-dateutil",
|
|
38
36
|
"mypy",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
[bumpversion]
|
|
2
|
-
current_version = 0.2.0
|
|
3
|
-
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<test>\d+))?
|
|
4
|
-
serialize =
|
|
5
|
-
{major}.{minor}.{patch}.{test}
|
|
6
|
-
{major}.{minor}.{patch}
|
|
7
|
-
commit = True
|
|
8
|
-
tag = True
|
|
9
|
-
|
|
10
|
-
[bumpversion:file:setup.py]
|
|
11
|
-
search = '{current_version}'
|
|
12
|
-
replace = '{new_version}'
|
|
13
|
-
|
|
14
|
-
[bumpversion:file:docassemble/EFSPIntegration/__init__.py]
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: black-action
|
|
2
|
-
on:
|
|
3
|
-
# Trigger the workflow on push or pull request,
|
|
4
|
-
# but only for the main branch
|
|
5
|
-
push:
|
|
6
|
-
branches:
|
|
7
|
-
- main
|
|
8
|
-
pull_request:
|
|
9
|
-
branches:
|
|
10
|
-
- main
|
|
11
|
-
jobs:
|
|
12
|
-
linter_name:
|
|
13
|
-
name: runner / black
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
steps:
|
|
16
|
-
- uses: SuffolkLITLab/ALActions/black-formatting@main
|
|
17
|
-
with:
|
|
18
|
-
MAKE_PR: "true"
|
|
19
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: Deploy package to the Dev server
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: ["main"]
|
|
6
|
-
|
|
7
|
-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
8
|
-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
9
|
-
concurrency:
|
|
10
|
-
group: "dev-server"
|
|
11
|
-
cancel-in-progress: false
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
deploy-to-dev:
|
|
15
|
-
name: Deploy to the Development server
|
|
16
|
-
runs-on: ubuntu-latest
|
|
17
|
-
steps:
|
|
18
|
-
- uses: SuffolkLITLab/ALActions/da_package@main
|
|
19
|
-
with:
|
|
20
|
-
SERVER_URL: ${{ vars.DEV_SERVER_URL }}
|
|
21
|
-
DOCASSEMBLE_DEVELOPER_API_KEY: ${{ secrets.DOCASSEMBLE_DEV_SERVER_API_KEY }}
|
|
22
|
-
GITHUB_URL: ${{ github.server_url }}/${{ github.repository }}
|
|
23
|
-
GITHUB_BRANCH: main
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#name: Use ALKiln for integration tests
|
|
2
|
-
#
|
|
3
|
-
#on:
|
|
4
|
-
# push:
|
|
5
|
-
# workflow_dispatch:
|
|
6
|
-
# inputs:
|
|
7
|
-
# tags:
|
|
8
|
-
# required: False
|
|
9
|
-
# description: 'Optional. Use a "tag expression" to specify which tagged tests to run'
|
|
10
|
-
# default: ''
|
|
11
|
-
|
|
12
|
-
#env:
|
|
13
|
-
# TYLER_EMAIL: ${{ secrets.TYLER_EMAIL }}
|
|
14
|
-
# TYLER_PASSWORD: ${{ secrets.TYLER_PASSWORD }}
|
|
15
|
-
# PROSE_EMAIL: ${{ secrets.PROSE_EMAIL }}
|
|
16
|
-
# PROSE_PASSWORD: ${{ secrets.PROSE_PASSWORD }}
|
|
17
|
-
|
|
18
|
-
#jobs:
|
|
19
|
-
# interview-testing:
|
|
20
|
-
# runs-on: ubuntu-latest
|
|
21
|
-
# name: Run interview tests
|
|
22
|
-
# steps:
|
|
23
|
-
# - uses: actions/checkout@v3
|
|
24
|
-
# - name: Use ALKiln to run tests
|
|
25
|
-
# uses: SuffolkLITLab/ALKiln@v5
|
|
26
|
-
# with:
|
|
27
|
-
# SERVER_URL: "${{ secrets.SERVER_URL }}"
|
|
28
|
-
# DOCASSEMBLE_DEVELOPER_API_KEY: "${{ secrets.DOCASSEMBLE_DEVELOPER_API_KEY }}"
|
|
29
|
-
# - run: echo "Finished running ALKiln tests"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
|
|
2
|
-
|
|
3
|
-
on: push
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build-n-publish:
|
|
7
|
-
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: SuffolkLITLab/ALActions/publish@main
|
|
11
|
-
with:
|
|
12
|
-
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
13
|
-
VERSION_TO_PUBLISH: ${{ env.GITHUB_REF_NAME }}
|
|
14
|
-
TEAMS_BUMP_WEBHOOK: ${{ secrets.TEAMS_BUMP_WEBHOOK }}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
name: Run mypy and python-only unit and integration tests
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
workflow_dispatch:
|
|
6
|
-
|
|
7
|
-
env:
|
|
8
|
-
PROXY_URL: https://efile-test.suffolklitlab.org
|
|
9
|
-
PROXY_API_KEY: ${{ secrets.EFILE_PROXY_API_KEY }}
|
|
10
|
-
TYLER_USER_EMAIL: ${{ secrets.TYLER_EMAIL }}
|
|
11
|
-
TYLER_USER_PASSWORD: ${{ secrets.TYLER_PASSWORD }}
|
|
12
|
-
|
|
13
|
-
# Allow only one concurrent test-run, skipping runs queued between the run in-progress and latest queued.
|
|
14
|
-
# However, do NOT cancel in-progress runs as stopping integration tests mid-run could end up in a bad state
|
|
15
|
-
concurrency:
|
|
16
|
-
group: "tests"
|
|
17
|
-
cancel-in-progress: false
|
|
18
|
-
|
|
19
|
-
jobs:
|
|
20
|
-
test-efspintegration:
|
|
21
|
-
runs-on: ubuntu-latest
|
|
22
|
-
name: Run python-only unit and integration tests
|
|
23
|
-
steps:
|
|
24
|
-
- uses: SuffolkLITLab/ALActions/pythontests@main
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Includes password for x.509 and the URL to access the firm with
|
|
2
|
-
.env
|
|
3
|
-
.envrc
|
|
4
|
-
*.pyc
|
|
5
|
-
**/__pycache__/**
|
|
6
|
-
.vscode
|
|
7
|
-
.history
|
|
8
|
-
*.egg-info/**
|
|
9
|
-
rcfile
|
|
10
|
-
**/.mypy_cache/**
|
|
11
|
-
build/
|
|
12
|
-
.DS_Store
|
|
13
|
-
|
|
14
|
-
# Kiln stuff
|
|
15
|
-
alkiln_tests_*
|
|
16
|
-
alkiln-*
|
|
17
|
-
cucumber-report.txt
|
|
18
|
-
debug_log.txt
|
|
19
|
-
runtime_config.json
|
|
20
|
-
|
|
21
|
-
# Python Test stuff
|
|
22
|
-
.coverage
|
|
23
|
-
coverage_html
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
# CHANGELOG
|
|
2
|
-
|
|
3
|
-
## Version v1.2.0
|
|
4
|
-
|
|
5
|
-
### Added
|
|
6
|
-
|
|
7
|
-
* Payments improvements, including a better UI and clearer user-text in [#203](https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/pull/203)
|
|
8
|
-
* Logs API by @BryceStevenWilley in [#199](https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/pull/199/commits/acb4c946d227359633fe85b145b690a0ff83dd08)
|
|
9
|
-
|
|
10
|
-
### Fixed
|
|
11
|
-
|
|
12
|
-
* Will actually log you out of the admin interview when you click logout (broken by [v1.1.0](https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/blob/main/CHANGELOG.md#version-v110)) in [#203](https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/pull/203)
|
|
13
|
-
* Got integration tests working again, but only locally: [#199](https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/pull/199/commits/2283e46b71ba69c0e4bc6eefc8197942092c6c60)
|
|
14
|
-
* Slightly cleaner integration testing in [#202](https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/pull/202)
|
|
15
|
-
* Trying to make better doc strings: [#190](https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/pull/190)
|
|
16
|
-
|
|
17
|
-
## Version v1.1.0
|
|
18
|
-
|
|
19
|
-
### Added
|
|
20
|
-
|
|
21
|
-
* there is now a "show password" checkbox below each password the user needs to enter, that
|
|
22
|
-
will toggle the input type from "password" to "text", which allows the user to see the password
|
|
23
|
-
they have entered so far.
|
|
24
|
-
* https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/bc7796ebde0ee595dc30f56f6923d2073eb47bff
|
|
25
|
-
|
|
26
|
-
### Changed
|
|
27
|
-
|
|
28
|
-
* Use DAStore to save the user's login token across interviews. Now, if a user logs into Tyler's system
|
|
29
|
-
in one interview and then starts another separate interview, the second will automatically log them in
|
|
30
|
-
* https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/1b699881c8c234072547416efcf0b605e70d0323
|
|
31
|
-
* Shows Tyler's error message when trying to reset passwords, which do say if the email exists or not.
|
|
32
|
-
* https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/bc7796ebde0ee595dc30f56f6923d2073eb47bff
|
|
33
|
-
|
|
34
|
-
## Version v1.0.3
|
|
35
|
-
|
|
36
|
-
All changes are in https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/2dab0b3f0df55fba8442aa7ff6cfeee9b45f56fd.
|
|
37
|
-
|
|
38
|
-
### Fixed
|
|
39
|
-
|
|
40
|
-
* Avoid `None` errors when filters codes. Don't know why the name of a code would ever be null,
|
|
41
|
-
but it did happen in production.
|
|
42
|
-
|
|
43
|
-
### Non-production-ready features
|
|
44
|
-
|
|
45
|
-
* Added a short message and spinning gif when forwarding to Tyler's payments site.
|
|
46
|
-
|
|
47
|
-
## Version v1.0.2
|
|
48
|
-
|
|
49
|
-
All changes are in https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/c01b09848196af0bce4bd674375c0a2ab2dd207e.
|
|
50
|
-
|
|
51
|
-
### Fixed
|
|
52
|
-
|
|
53
|
-
* Fewer crashes in `chain_xml`
|
|
54
|
-
* Don't crash if you can't find the case title
|
|
55
|
-
|
|
56
|
-
### Changed
|
|
57
|
-
|
|
58
|
-
* Case search can sometimes find cases in subcourts; i.e. if you search for cases in the
|
|
59
|
-
`peoria` court, you can find cases from `peoriacr`. The ultimate court you need to file into
|
|
60
|
-
needs to be the court the case is from, not what you searched in. To fix this, we now get the
|
|
61
|
-
`court_id` from the case details, and use that for `found_cases[i].court_id`.
|
|
62
|
-
instead of the court you searched in. Added a note for this in `case_search.yml`
|
|
63
|
-
|
|
64
|
-
## Version v1.0.1
|
|
65
|
-
|
|
66
|
-
### Fixed
|
|
67
|
-
|
|
68
|
-
* Courts have a multitude of typos in their code names, including extra spaces.
|
|
69
|
-
We now strip out leading and trailing spaces from code names when trying to match
|
|
70
|
-
exact names.
|
|
71
|
-
* https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/0b3715b7764d8b017a0d521589cb9742560405fc
|
|
72
|
-
* Have better defaults for `.document_type`, `.filing_type`, and document and filing filters
|
|
73
|
-
* https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/a917531694f567d7a0e2c405a3a4d89b56fa0e2e
|
|
74
|
-
* https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/911bc7872203cf4c5a4c8461f1fccca0e4f84868
|
|
75
|
-
|
|
76
|
-
### Changed
|
|
77
|
-
|
|
78
|
-
* Tryng to start the resend activation action before the
|
|
79
|
-
registration action has technically fiinshed queues up the next
|
|
80
|
-
action, but stays on the current screen, making it seem like nothing
|
|
81
|
-
is happenning. Instead, we just note that users can resend their actiavation
|
|
82
|
-
email from the home screen (the next screen in the interview)
|
|
83
|
-
* https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/5e49107becbe89c4652cdbe4589da1f911024afa
|
|
84
|
-
* Removed the "restart" button from the in-interview password reset flow. Users can just go back.
|
|
85
|
-
* https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/3db90f74c536316a6f3204a6ee0dd57ddc4de2d0
|
|
86
|
-
|
|
87
|
-
### Not-pro-ready features
|
|
88
|
-
* stopped DA from showing "Input not processed" when we are adding
|
|
89
|
-
waiver and income types
|
|
90
|
-
* https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/232d60332e6c1e23eca9b66403f7b5f4644c7f25
|
|
91
|
-
* https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/751d42694cda4d0dcec5e473801801cd9cf8d339
|
|
92
|
-
|
|
93
|
-
### Internal
|
|
94
|
-
* Use SuffolkLITLab/ALActions for the GitHub actions that run tests
|
|
95
|
-
* https://github.com/SuffolkLITLab/docassemble-EFSPIntegration/commit/0fe84c836ea29b8b8f6bd4148c837eb09861a63e
|
|
96
|
-
|
|
97
|
-
## Version v1.0.0
|
|
98
|
-
|
|
99
|
-
First 1.0 release! Previous versions aren't considered to be
|
|
100
|
-
documented, so earlier versions won't be listed.
|
|
101
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
include README.md
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.7.2'
|