@suffolklitlab/alkiln 5.17.0 → 5.17.1
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.
- package/.github/workflows/{da_image_v_sha_7d13853.yml → al_da_image_latest.yml} +8 -3
- package/.github/workflows/github_server.yml +5 -3
- package/.github/workflows/playground.yml +2 -2
- package/CHANGELOG.md +22 -1
- package/lib/docassemble/docassemble_api_interface.js +3 -0
- package/lib/scope.js +627 -152
- package/lib/steps.js +40 -34
- package/lib/utils/Log.js +10 -8
- package/lib/utils/session_vars.js +25 -8
- package/package.json +1 -1
- package/tests/log_codes/log_code_expected_instances.txt +12 -2
- package/tests/unit_tests/constrained_random_answers/valid.fixtures.js +3 -1
- package/tests/unit_tests/fields.fixtures.js +19 -8
- package/tests/unit_tests/getAllFields.test.js +1 -1
- package/tests/unit_tests/html.fixtures.js +3 -1
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: Sandbox with AL da image version
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
pull_request:
|
|
6
6
|
workflow_dispatch:
|
|
7
7
|
inputs:
|
|
8
|
+
tags:
|
|
9
|
+
required: False
|
|
10
|
+
description: 'Optional. Use a "tag expression" specify which tagged tests to run (https://cucumber.io/docs/cucumber/api/#tag-expressions)'
|
|
8
11
|
show_docker_output:
|
|
9
12
|
required: false
|
|
10
13
|
default: false
|
|
@@ -16,10 +19,12 @@ on:
|
|
|
16
19
|
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
|
|
17
20
|
required: false
|
|
18
21
|
default: false
|
|
22
|
+
schedule:
|
|
23
|
+
- cron: "0 1 * * SUN"
|
|
19
24
|
|
|
20
25
|
jobs:
|
|
21
26
|
|
|
22
|
-
|
|
27
|
+
sandbox-al-tests:
|
|
23
28
|
# Avoids running double tests when someone on the team makes a pull request
|
|
24
29
|
# 1: Trigger job on push or dispatch from this repository
|
|
25
30
|
# 2: Trigger job on pull request from a fork
|
|
@@ -42,7 +47,7 @@ jobs:
|
|
|
42
47
|
uses: ./action_for_github_server
|
|
43
48
|
with:
|
|
44
49
|
SHOW_DOCKER_OUTPUT: "${{ github.event.inputs.show_docker_output }}"
|
|
45
|
-
DOCASSEMBLE_IMAGE: "ghcr.io/suffolklitlab/docassemble:
|
|
50
|
+
DOCASSEMBLE_IMAGE: "ghcr.io/suffolklitlab/docassemble:latest"
|
|
46
51
|
- run: echo "ALKiln finished starting the isolated GitHub docassemble server"
|
|
47
52
|
shell: bash
|
|
48
53
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: Sandbox with latest da image
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
@@ -19,10 +19,12 @@ on:
|
|
|
19
19
|
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
|
|
20
20
|
required: false
|
|
21
21
|
default: false
|
|
22
|
+
schedule:
|
|
23
|
+
- cron: "0 1 * * SUN"
|
|
22
24
|
|
|
23
25
|
jobs:
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
sandbox-da-tests:
|
|
26
28
|
#### Developer note: If you have both `push` and `pull_request` in the
|
|
27
29
|
#### `on` section (above), this avoids running double tests when someone
|
|
28
30
|
#### on the team makes a pull request
|
|
@@ -157,7 +159,7 @@ jobs:
|
|
|
157
159
|
#### Developer note: You can probably leave the rest out
|
|
158
160
|
#### To learn more, see https://assemblyline.suffolklitlab.org/docs/alkiln/writing/#optional-inputs
|
|
159
161
|
ALKILN_TAG_EXPRESSION: "${{ env.ALKILN_TAG_EXPRESSION }}"
|
|
160
|
-
# ALKILN_VERSION:
|
|
162
|
+
# ALKILN_VERSION:
|
|
161
163
|
|
|
162
164
|
#### Developer note: Example of making an issue when tests fail
|
|
163
165
|
#### that includes the text of the failure output file
|
|
@@ -13,7 +13,7 @@ on:
|
|
|
13
13
|
|
|
14
14
|
jobs:
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
alkiln-tests:
|
|
17
17
|
#### Developer note: If you have both `push` and `pull_request` in the
|
|
18
18
|
#### `on` section (above), this avoids running double tests when someone
|
|
19
19
|
#### editing the repository makes a pull request
|
|
@@ -80,4 +80,4 @@ jobs:
|
|
|
80
80
|
# want to check up on this.
|
|
81
81
|
ALKILN_TAG_EXPRESSION: "${{ env.ALKILN_TAG_EXPRESSION }}"
|
|
82
82
|
#### Developer note: You can probably leave this out
|
|
83
|
-
# ALKILN_VERSION:
|
|
83
|
+
# ALKILN_VERSION:
|
package/CHANGELOG.md
CHANGED
|
@@ -43,7 +43,28 @@ Format:
|
|
|
43
43
|
-
|
|
44
44
|
-->
|
|
45
45
|
|
|
46
|
-
## [Unreleased]
|
|
46
|
+
<!-- ## [Unreleased] -->
|
|
47
|
+
|
|
48
|
+
## [5.17.1] - 2026-10-13
|
|
49
|
+
|
|
50
|
+
### Changed
|
|
51
|
+
|
|
52
|
+
- Updated to work with docassemble v1.10.n while being backwards compatible. See [issue #1117](https://github.com/SuffolkLITLab/ALKiln/issues/1117)
|
|
53
|
+
- Unable to find some continue buttons
|
|
54
|
+
- Single-line fields like `yesno: likes_good_things`
|
|
55
|
+
- Buttons created with `buttons:`
|
|
56
|
+
- Continue buttons on signature pages
|
|
57
|
+
- Unable to sign with a name
|
|
58
|
+
- Unable to upload files
|
|
59
|
+
- Created infinite loop with 'Restart' button
|
|
60
|
+
- Changed the internal behavior of the experimental Step "I can't continue" from testing for errors after the previous Step (whatever it happened to be) to attempting to continue. Failure to continue causes success of the Step.
|
|
61
|
+
|
|
62
|
+
### Internal
|
|
63
|
+
|
|
64
|
+
- Added a workflow to test using an Assembly Line docker image
|
|
65
|
+
- Test using a cron job to catch failures more regularly
|
|
66
|
+
- Remove unsupported Step "Then I arrive at the next page" and moved responsibility to Steps that imply they navigate
|
|
67
|
+
- Fixed typo in fixture
|
|
47
68
|
|
|
48
69
|
## [5.17.0] - 2026-09-10
|
|
49
70
|
|
|
@@ -377,6 +377,9 @@ da_i.get_interview = async function ({ interview = {}, api_keys = [], options =
|
|
|
377
377
|
log.debug({ code: `ALK0193`, context, },
|
|
378
378
|
`Status ${ response.status }. Got ${ response.data.items[0].session }.`
|
|
379
379
|
);
|
|
380
|
+
// Discuss: Do we need to handle pagination? Think most recent
|
|
381
|
+
// sessions are listed first, so perhaps not a problem.
|
|
382
|
+
// https://docassemble.org/docs/api.html#user_interviews
|
|
380
383
|
return response.data.items[0];
|
|
381
384
|
} else {
|
|
382
385
|
log.debug({ code: `ALK0194`, context, },
|