docassemble.EFSPIntegration 1.7.0__tar.gz → 1.7.2__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.
Files changed (62) hide show
  1. docassemble_efspintegration-1.7.2/.bumpversion.cfg +14 -0
  2. docassemble_efspintegration-1.7.2/.github/workflows/black-action.yml +19 -0
  3. docassemble_efspintegration-1.7.2/.github/workflows/da_build.yml +12 -0
  4. docassemble_efspintegration-1.7.2/.github/workflows/deploy.yml +23 -0
  5. docassemble_efspintegration-1.7.2/.github/workflows/kiln_tests.txt +29 -0
  6. docassemble_efspintegration-1.7.2/.github/workflows/publish.yml +14 -0
  7. docassemble_efspintegration-1.7.2/.github/workflows/unittests.yml +24 -0
  8. docassemble_efspintegration-1.7.2/.github/workflows/valid_jinja2.yml +11 -0
  9. docassemble_efspintegration-1.7.2/.github/workflows/word_diff.yml +9 -0
  10. docassemble_efspintegration-1.7.2/.gitignore +23 -0
  11. docassemble_efspintegration-1.7.2/CHANGELOG.md +101 -0
  12. {docassemble_efspintegration-1.7.0/docassemble.EFSPIntegration.egg-info → docassemble_efspintegration-1.7.2}/PKG-INFO +24 -10
  13. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/README.md +16 -1
  14. docassemble_efspintegration-1.7.2/docassemble/EFSPIntegration/__init__.py +1 -0
  15. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/conversions.py +4 -7
  16. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/minimal_interview.yml +1 -1
  17. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/unauthenticated_actions.yml +1 -1
  18. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/efm_client.py +16 -1
  19. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/interview_logic.py +6 -0
  20. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/py_efsp_client.py +34 -11
  21. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/test/test_conversions.py +2 -0
  22. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/test/test_interview_functions.py +2 -0
  23. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/test/test_proxy_conn.py +1 -1
  24. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2/docassemble.EFSPIntegration.egg-info}/PKG-INFO +24 -10
  25. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble.EFSPIntegration.egg-info/SOURCES.txt +11 -1
  26. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble.EFSPIntegration.egg-info/requires.txt +1 -1
  27. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble.EFSPIntegration.egg-info/top_level.txt +0 -1
  28. docassemble_efspintegration-1.7.2/pyproject.toml +67 -0
  29. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/setup.py +1 -1
  30. docassemble_efspintegration-1.7.0/docassemble/EFSPIntegration/__init__.py +0 -1
  31. docassemble_efspintegration-1.7.0/docassemble/__init__.py +0 -5
  32. docassemble_efspintegration-1.7.0/pyproject.toml +0 -26
  33. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/LICENSE +0 -0
  34. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/MANIFEST.in +0 -0
  35. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/admin_interview.yml +0 -0
  36. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/any_filing_interview.yml +0 -0
  37. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/case_search.yml +0 -0
  38. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/codes_interview.yml +0 -0
  39. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/efiling_integration.yml +0 -0
  40. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/login_qs.yml +0 -0
  41. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/logs_interview.yml +0 -0
  42. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/toga_payments.yml +0 -0
  43. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/toga_payments_interview.yml +0 -0
  44. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/questions/unauthenticated_interview.yml +0 -0
  45. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/sources/README.md +0 -0
  46. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/sources/admin_interview.feature +0 -0
  47. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/sources/any_filing_interview.feature +0 -0
  48. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/sources/example_upload.pdf +0 -0
  49. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/sources/unauthenticated_interview.feature +0 -0
  50. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/static/Ajax-loader.gif +0 -0
  51. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/static/README.md +0 -0
  52. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/data/templates/README.md +0 -0
  53. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/py.typed +0 -0
  54. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/requirements.txt +0 -0
  55. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/test/__init__.py +0 -0
  56. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/test/opening_affidavit_adams.json +0 -0
  57. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/test/peoria_to_cr.json +0 -0
  58. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/test/temp2.json +0 -0
  59. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble/EFSPIntegration/test/vars.json +0 -0
  60. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble.EFSPIntegration.egg-info/dependency_links.txt +0 -0
  61. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/docassemble.EFSPIntegration.egg-info/not-zip-safe +0 -0
  62. {docassemble_efspintegration-1.7.0 → docassemble_efspintegration-1.7.2}/setup.cfg +0 -0
@@ -0,0 +1,14 @@
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]
@@ -0,0 +1,19 @@
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 }}
@@ -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
@@ -0,0 +1,23 @@
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
@@ -0,0 +1,29 @@
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"
@@ -0,0 +1,14 @@
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 }}
@@ -0,0 +1,24 @@
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
@@ -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
@@ -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
@@ -0,0 +1,23 @@
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
@@ -0,0 +1,101 @@
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,26 +1,25 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docassemble.EFSPIntegration
3
- Version: 1.7.0
3
+ Version: 1.7.2
4
4
  Home-page: https://github.com/SuffolkLITLab/docassemble-EFSPIntegration
5
5
  Author: Bryce Willey
6
- Author-email: bwilley@suffolk.edu
7
- License: The MIT License (MIT)
6
+ Author-email: Bryce Willey <bryce.willey@suffolk.edu>
7
+ License-Expression: MIT
8
+ Project-URL: GitHub, https://github.com/SuffolkLITLab/docassemble-EFSPIntegration
9
+ Requires-Python: <3.13,>=3.10,>=3.12.3
8
10
  Description-Content-Type: text/markdown
9
11
  License-File: LICENSE
10
12
  Requires-Dist: docassemble.AssemblyLine>=3.5.0
11
13
  Requires-Dist: docassemble.ALToolbox>=0.6.2
12
- Requires-Dist: requests>=2.25.1
14
+ Requires-Dist: requests>2.25.1
13
15
  Dynamic: author
14
- Dynamic: author-email
15
- Dynamic: description
16
- Dynamic: description-content-type
17
16
  Dynamic: home-page
18
- Dynamic: license
19
17
  Dynamic: license-file
20
- Dynamic: requires-dist
21
18
 
22
19
  # docassemble-EFSPIntegration
23
20
 
21
+ [![PyPI version](https://badge.fury.io/py/docassemble.EFSPIntegration.svg)](https://badge.fury.io/py/docassemble.EFSPIntegration)
22
+
24
23
  A docassemble extension that talks to [a proxy e-filing server](https://github.com/SuffolkLITLab/EfileProxyServer/) easily within a docassemble interview.
25
24
 
26
25
  Main interviews of import:
@@ -28,7 +27,22 @@ Main interviews of import:
28
27
  * any_filing_interview.yml: allows you to make any type of filing, initial or subsequent
29
28
  * admin_interview.yml: lets you handle admin / user functionality, outside of the context of cases and filings
30
29
 
31
- In progress!
30
+ ## Config
31
+
32
+ Different parts of this package expect the below to be present in Docassemble's
33
+ config.
34
+
35
+ ```yaml
36
+ efile proxy:
37
+ # The URL where the Efile Proxy Server is running
38
+ url: https:...
39
+ # The Proxy Server's API Key (should be provided to you by the sever admins)
40
+ api key: ...
41
+ # If you're given an EFSP global fee waiver ID for your jurisdiction, put it here
42
+ global waivers:
43
+ illinois: ...
44
+ massachusetts: ...
45
+ ```
32
46
 
33
47
  ## Authors
34
48
 
@@ -9,7 +9,22 @@ Main interviews of import:
9
9
  * any_filing_interview.yml: allows you to make any type of filing, initial or subsequent
10
10
  * admin_interview.yml: lets you handle admin / user functionality, outside of the context of cases and filings
11
11
 
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
+ ```
13
28
 
14
29
  ## Authors
15
30
 
@@ -0,0 +1 @@
1
+ __version__ = '1.7.2'
@@ -261,19 +261,19 @@ def pretty_display(data, tab_depth=0, skip_xml=True, item_name=None) -> str:
261
261
 
262
262
  elif isinstance(data, dict):
263
263
  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"]:
265
265
  out += (
266
266
  tab_str
267
267
  + f"* {data['name'].replace(':', '/')}: {data['value']['value']}\n"
268
268
  )
269
269
  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"]:
271
271
  out += (
272
272
  tab_str
273
273
  + f"* {data['name'].replace(':', '/')}: {data['value']['value']}\n"
274
274
  )
275
275
  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"]:
277
277
  out += (
278
278
  tab_str
279
279
  + f"* date: {datetime.fromtimestamp(float(data['value']['value'])/1000)}\n"
@@ -764,10 +764,7 @@ def fetch_case_info(
764
764
  if "AppellateCaseOriginalCase" in aug.get("declaredType"):
765
765
  new_case.lower_docket_number = aug.get("value", {}).get("caseDocketID")
766
766
  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":
771
768
  new_case.lower_judge = aug.get("value", {}).get("lowerCourtJudgeText")
772
769
  participant_xml = aug.get("value", {}).get("caseParticipant", [])
773
770
  for participant in participant_xml:
@@ -51,7 +51,7 @@ code: |
51
51
  tyler_login
52
52
  lead_contact = users[0]
53
53
  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]
55
55
  ready_to_efile
56
56
  efile
57
57
  ending_screen
@@ -72,7 +72,7 @@ data:
72
72
  texas: Texas
73
73
  california: California
74
74
  indiana: Indiana
75
-
75
+ vermont: Vermont
76
76
  ---
77
77
  code: |
78
78
  can_connect_to_proxy = proxy_conn.get_server_name().is_ok()
@@ -20,7 +20,12 @@ from docassemble.base.util import (
20
20
  )
21
21
  from docassemble.AssemblyLine.al_document import ALDocumentBundle
22
22
  from docassemble.AssemblyLine.al_general import ALIndividual
23
- from .py_efsp_client import ApiResponse, EfspConnection, _user_visible_resp
23
+ from .py_efsp_client import (
24
+ ApiResponse,
25
+ LoggerWithContext,
26
+ EfspConnection,
27
+ _user_visible_resp,
28
+ )
24
29
 
25
30
  __all__ = ["ApiResponse", "ProxyConnection", "state_name_to_code"]
26
31
 
@@ -187,6 +192,16 @@ class ProxyConnection(EfspConnection):
187
192
  return _user_visible_resp(f"Url {self.base_url} is not valid: {ex}")
188
193
  return _user_visible_resp(resp)
189
194
 
195
+ def get_logger(self):
196
+ if not hasattr(self, "logger"):
197
+ # Copying what we do in `EfspConnection.get_logger` because it needs to
198
+ # wrap the logger we're trying to make here.
199
+ self.logger = LoggerWithContext(
200
+ DALogger(logging.getLogger("docassemble")),
201
+ {"session_id": self.get_session_id()},
202
+ )
203
+ return self.logger
204
+
190
205
  def authenticate_user(
191
206
  self,
192
207
  tyler_email: str = None,
@@ -458,8 +458,14 @@ def filter_codes(
458
458
  if len(codes) == 1:
459
459
  return codes, codes[0][0]
460
460
  elif len(codes) == 0:
461
+ log_error_and_notify(
462
+ f"Warning! No existing codes matched filters ({filters})! Falling back to default, but this is unchecked and dangerous. It will be removed in the future. (all of the options: {options})"
463
+ )
461
464
  return list(options), default
462
465
  else:
466
+ log(
467
+ f"Warning! More than one code matched filters ({filters})! This can result in a worse UX for users. (the found options ({codes}))"
468
+ )
463
469
  return codes, None
464
470
 
465
471
 
@@ -64,10 +64,10 @@ class ApiResponse(object):
64
64
  else:
65
65
  err_str = ""
66
66
  msg = f"response_code: {self.response_code}, {err_str}data: {self.data}"
67
- if self.session_id:
68
- msg += f", session_id: {self.session_id}"
69
- if self.req_id:
70
- msg += f", req_id: {self.req_id}"
67
+ if self.get_session_id():
68
+ msg += f", session_id: {self.get_session_id()}"
69
+ if self.get_req_id():
70
+ msg += f", req_id: {self.get_req_id()}"
71
71
  return msg
72
72
 
73
73
  def __repr__(self):
@@ -76,6 +76,16 @@ class ApiResponse(object):
76
76
  def is_ok(self):
77
77
  return self.response_code in [200, 201, 202, 203, 204, 205]
78
78
 
79
+ def get_session_id(self):
80
+ if not hasattr(self, "session_id"):
81
+ self.session_id = None
82
+ return self.session_id
83
+
84
+ def get_req_id(self):
85
+ if not hasattr(self, "req_id"):
86
+ self.req_id = None
87
+ return self.req_id
88
+
79
89
 
80
90
  def _user_visible_resp(resp: Union[Response, str, None]) -> ApiResponse:
81
91
  """This function takes the essentials of a response and puts in into
@@ -159,12 +169,25 @@ class EfspConnection:
159
169
  if req_id is None:
160
170
  req_id = uuid4()
161
171
  to_send.headers["efsp-request-id"] = str(req_id)
162
- to_send.headers["efsp-session-id"] = self.session_id
163
- self.logger.info(
172
+ to_send.headers["efsp-session-id"] = self.get_session_id()
173
+ self.get_logger().info(
164
174
  f"Calling {to_send.method} on {to_send.url}", extra={"req-id": str(req_id)}
165
175
  )
166
176
  return self._call_proxy(self.proxy_client.prepare_request(to_send))
167
177
 
178
+ def get_session_id(self):
179
+ if not hasattr(self, "session_id"):
180
+ # Migration from older interviews, to start passing observability headers
181
+ self.session_id = str(uuid4())
182
+ return self.session_id
183
+
184
+ def get_logger(self):
185
+ if not hasattr(self, "logger"):
186
+ self.logger = LoggerWithContext(
187
+ logging.getLogger(), {"session_id": self.get_session_id()}
188
+ )
189
+ return self.logger
190
+
168
191
  @staticmethod
169
192
  def verbose_logging(turn_on: bool) -> None:
170
193
  if turn_on:
@@ -222,7 +245,7 @@ class EfspConnection:
222
245
 
223
246
  if jurisdiction is None:
224
247
  jurisdiction = self.default_jurisdiction
225
- self.logger.info(
248
+ self.get_logger().info(
226
249
  f"authenticating with jurisdiction: {jurisdiction}",
227
250
  extra={"req-id": str(req_id)},
228
251
  )
@@ -274,7 +297,7 @@ class EfspConnection:
274
297
  If it's FIRM_ADMINISTRATOR or FIRM_ADMIN_NEW_MEMBER, you need a firm_name_or_id
275
298
  """
276
299
  req_id = uuid4()
277
- self.logger.info("Attempting to register user", extra={"req-id": req_id})
300
+ self.get_logger().info("Attempting to register user", extra={"req-id": req_id})
278
301
  registration_type = registration_type.upper()
279
302
  if "phone_number" in person:
280
303
  phone_number = person["phone_number"]
@@ -319,7 +342,7 @@ class EfspConnection:
319
342
  if results.data:
320
343
  password_regex = results.data.get("regularexpression", ".*")
321
344
  else:
322
- self.logger.warning(f"No password rules found: {results}")
345
+ self.get_logger().warning(f"No password rules found: {results}")
323
346
  password_regex = ".*"
324
347
 
325
348
  try:
@@ -778,12 +801,12 @@ class EfspConnection:
778
801
  range_after_str = range_after.isoformat()
779
802
  else:
780
803
  range_after_str = range_after or ""
781
- self.logger.debug(f"after: {range_after}", extra={"req-id": req_id})
804
+ self.get_logger().debug(f"after: {range_after}", extra={"req-id": req_id})
782
805
  if range_before is not None and not isinstance(range_before, str):
783
806
  range_before_str = range_before.isoformat()
784
807
  else:
785
808
  range_before_str = range_before or ""
786
- self.logger.debug(f"before: {range_before}", extra={"req-id": req_id})
809
+ self.get_logger().debug(f"before: {range_before}", extra={"req-id": req_id})
787
810
  if estimated_duration is not None:
788
811
  estimated_duration = int(estimated_duration) * 60 * 60
789
812
  req = Request(
@@ -1,3 +1,5 @@
1
+ # do not pre-load
2
+
1
3
  import json
2
4
  import unittest
3
5
  from unittest.mock import MagicMock
@@ -1,3 +1,5 @@
1
+ # do not pre-load
2
+
1
3
  import unittest
2
4
  from ..interview_logic import (
3
5
  make_filters,
@@ -1,4 +1,4 @@
1
- #! /usr/bin/env python3
1
+ # do not pre-load
2
2
 
3
3
  """
4
4
  Env vars needed to run:
@@ -1,26 +1,25 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docassemble.EFSPIntegration
3
- Version: 1.7.0
3
+ Version: 1.7.2
4
4
  Home-page: https://github.com/SuffolkLITLab/docassemble-EFSPIntegration
5
5
  Author: Bryce Willey
6
- Author-email: bwilley@suffolk.edu
7
- License: The MIT License (MIT)
6
+ Author-email: Bryce Willey <bryce.willey@suffolk.edu>
7
+ License-Expression: MIT
8
+ Project-URL: GitHub, https://github.com/SuffolkLITLab/docassemble-EFSPIntegration
9
+ Requires-Python: <3.13,>=3.10,>=3.12.3
8
10
  Description-Content-Type: text/markdown
9
11
  License-File: LICENSE
10
12
  Requires-Dist: docassemble.AssemblyLine>=3.5.0
11
13
  Requires-Dist: docassemble.ALToolbox>=0.6.2
12
- Requires-Dist: requests>=2.25.1
14
+ Requires-Dist: requests>2.25.1
13
15
  Dynamic: author
14
- Dynamic: author-email
15
- Dynamic: description
16
- Dynamic: description-content-type
17
16
  Dynamic: home-page
18
- Dynamic: license
19
17
  Dynamic: license-file
20
- Dynamic: requires-dist
21
18
 
22
19
  # docassemble-EFSPIntegration
23
20
 
21
+ [![PyPI version](https://badge.fury.io/py/docassemble.EFSPIntegration.svg)](https://badge.fury.io/py/docassemble.EFSPIntegration)
22
+
24
23
  A docassemble extension that talks to [a proxy e-filing server](https://github.com/SuffolkLITLab/EfileProxyServer/) easily within a docassemble interview.
25
24
 
26
25
  Main interviews of import:
@@ -28,7 +27,22 @@ Main interviews of import:
28
27
  * any_filing_interview.yml: allows you to make any type of filing, initial or subsequent
29
28
  * admin_interview.yml: lets you handle admin / user functionality, outside of the context of cases and filings
30
29
 
31
- In progress!
30
+ ## Config
31
+
32
+ Different parts of this package expect the below to be present in Docassemble's
33
+ config.
34
+
35
+ ```yaml
36
+ efile proxy:
37
+ # The URL where the Efile Proxy Server is running
38
+ url: https:...
39
+ # The Proxy Server's API Key (should be provided to you by the sever admins)
40
+ api key: ...
41
+ # If you're given an EFSP global fee waiver ID for your jurisdiction, put it here
42
+ global waivers:
43
+ illinois: ...
44
+ massachusetts: ...
45
+ ```
32
46
 
33
47
  ## Authors
34
48
 
@@ -1,10 +1,20 @@
1
+ .bumpversion.cfg
2
+ .gitignore
3
+ CHANGELOG.md
1
4
  LICENSE
2
5
  MANIFEST.in
3
6
  README.md
4
7
  pyproject.toml
5
8
  setup.cfg
6
9
  setup.py
7
- docassemble/__init__.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
8
18
  docassemble.EFSPIntegration.egg-info/PKG-INFO
9
19
  docassemble.EFSPIntegration.egg-info/SOURCES.txt
10
20
  docassemble.EFSPIntegration.egg-info/dependency_links.txt
@@ -1,3 +1,3 @@
1
1
  docassemble.AssemblyLine>=3.5.0
2
2
  docassemble.ALToolbox>=0.6.2
3
- requests>=2.25.1
3
+ requests>2.25.1
@@ -0,0 +1,67 @@
1
+ # Just for local builds:
2
+ # for publishing / installing to docassemble < 1.8.0
3
+ # setup.py is still used.
4
+ [project]
5
+ name = "docassemble.EFSPIntegration"
6
+ version = "1.7.2"
7
+ readme = "README.md"
8
+ requires-python=">=3.10,>=3.12.3,<3.13"
9
+ dependencies = [
10
+ "docassemble.AssemblyLine>=3.5.0",
11
+ "docassemble.ALToolbox>=0.6.2",
12
+ "requests>2.25.1"
13
+ ]
14
+ license="MIT"
15
+ license-files = ["LICEN[CS]E*"]
16
+ authors = [
17
+ { name="Bryce Willey", email="bryce.willey@suffolk.edu" },
18
+ ]
19
+
20
+ [project.urls]
21
+ GitHub = "https://github.com/SuffolkLITLab/docassemble-EFSPIntegration"
22
+
23
+ [build-system]
24
+ requires = [
25
+ "setuptools>=60",
26
+ "setuptools-scm>=8.1"]
27
+ build-backend = "setuptools.build_meta"
28
+
29
+ [tool.setuptools]
30
+ packages = ["docassemble.EFSPIntegration"]
31
+
32
+ [dependency-groups]
33
+ dev = [
34
+ "docassemble.base==1.8.4",
35
+ "docassemble.webapp==1.8.4",
36
+ "types-requests",
37
+ "types-python-dateutil",
38
+ "mypy",
39
+ "black",
40
+ ]
41
+
42
+ [tool.black]
43
+ extend-exclude = '(__init__.py|setup.py)'
44
+
45
+ [tool.mypy]
46
+ # global options
47
+ no_implicit_optional = false
48
+ exclude = '''(?x)(
49
+ ^setup.py$
50
+ )'''
51
+
52
+ # per-module options:
53
+ [[tool.mypy.overrides]]
54
+ module = "docassemble.webapp.*"
55
+ ignore_missing_imports = true
56
+
57
+ [[tool.mypy.overrides]]
58
+ module = "docassemble.base.*"
59
+ ignore_missing_imports = true
60
+
61
+ [[tool.mypy.overrides]]
62
+ module = "pycountry"
63
+ ignore_missing_imports = true
64
+
65
+ [[tool.mypy.overrides]]
66
+ module = "isodate"
67
+ ignore_missing_imports = true
@@ -42,7 +42,7 @@ def find_package_data(where='.', package='', exclude=standard_exclude, exclude_d
42
42
  return out
43
43
 
44
44
  setup(name='docassemble.EFSPIntegration',
45
- version='1.7.0',
45
+ version='1.7.2',
46
46
  description=(''),
47
47
  long_description='# docassemble-EFSPIntegration\r\n\r\nA docassemble extension that talks to [a proxy e-filing server](https://github.com/SuffolkLITLab/EfileProxyServer/) easily within a docassemble interview.\r\n\r\nMain interviews of import:\r\n\r\n* any_filing_interview.yml: allows you to make any type of filing, initial or subsequent\r\n* admin_interview.yml: lets you handle admin / user functionality, outside of the context of cases and filings\r\n\r\nIn progress!\r\n\r\n## Authors\r\n\r\nQuinten Steenhuis (qsteenhuis@suffolk.edu)\r\nBryce Willey (bwilley@suffolk.edu)\r\n',
48
48
  long_description_content_type='text/markdown',
@@ -1 +0,0 @@
1
- __version__ = '1.7.0'
@@ -1,5 +0,0 @@
1
- try:
2
- __import__('pkg_resources').declare_namespace(__name__)
3
- except ImportError:
4
- __path__ = __import__('pkgutil').extend_path(__path__, __name__)
5
-
@@ -1,26 +0,0 @@
1
- [tool.black]
2
- extend-exclude = '(__init__.py|setup.py)'
3
-
4
- [tool.mypy]
5
- # global options
6
- no_implicit_optional = false
7
- exclude = '''(?x)(
8
- ^setup.py$
9
- )'''
10
-
11
- # per-module options:
12
- [[tool.mypy.overrides]]
13
- module = "docassemble.webapp.*"
14
- ignore_missing_imports = true
15
-
16
- [[tool.mypy.overrides]]
17
- module = "docassemble.base.*"
18
- ignore_missing_imports = true
19
-
20
- [[tool.mypy.overrides]]
21
- module = "pycountry"
22
- ignore_missing_imports = true
23
-
24
- [[tool.mypy.overrides]]
25
- module = "isodate"
26
- ignore_missing_imports = true