@suffolklitlab/alkiln 5.12.0-delete5 → 5.12.0-delete6
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.
|
@@ -75,12 +75,14 @@ jobs:
|
|
|
75
75
|
shell: bash
|
|
76
76
|
|
|
77
77
|
#### Developer note: You can probably leave this out
|
|
78
|
-
- name: "
|
|
78
|
+
- name: "Add a low-level user and their API key (in an env var)"
|
|
79
79
|
env:
|
|
80
80
|
SERVER_URL: "${{ steps.github_server.outputs.SERVER_URL }}"
|
|
81
81
|
KEY: ${{ steps.github_server.outputs.DOCASSEMBLE_DEVELOPER_API_KEY }}
|
|
82
82
|
run: |
|
|
83
83
|
# Create user and their API key
|
|
84
|
+
|
|
85
|
+
# Install json processor
|
|
84
86
|
sudo apt-get install jq
|
|
85
87
|
|
|
86
88
|
# https://docassemble.org/docs/api.html#user_new
|
|
@@ -98,7 +100,7 @@ jobs:
|
|
|
98
100
|
user_id=$(echo "$user_data" | jq '.user_id' -r)
|
|
99
101
|
|
|
100
102
|
# https://docassemble.org/docs/api.html#api_user_user_id_api_post
|
|
101
|
-
|
|
103
|
+
new_key_with_quotes=$(curl -X POST \
|
|
102
104
|
${{ env.SERVER_URL }}/api/user/"$user_id"/api \
|
|
103
105
|
-H 'Content-Type: application/json' \
|
|
104
106
|
-d '{
|
|
@@ -106,16 +108,18 @@ jobs:
|
|
|
106
108
|
"name": "alkiln_key",
|
|
107
109
|
"method": "none"
|
|
108
110
|
}')
|
|
109
|
-
echo "
|
|
110
|
-
|
|
111
|
+
echo "new key (watch out, this contains actual quotation marks): $new_key_with_quotes"
|
|
112
|
+
no_end_quote="${new_key_with_quotes%\"}"
|
|
113
|
+
unquoted="${no_end_quote#\"}"
|
|
114
|
+
echo "unquoted: $unquoted"
|
|
111
115
|
|
|
112
|
-
echo "USER_NO_PERMISSIONS_API_KEY=$
|
|
116
|
+
echo "USER_NO_PERMISSIONS_API_KEY=$unquoted" >> "$GITHUB_ENV"
|
|
113
117
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
#### Developer note: You can probably leave this out
|
|
119
|
+
## Optional debugging to explore things like docker issues
|
|
120
|
+
#- name: Docker debug tmate session
|
|
121
|
+
# #if: ${{ failure() && github.event.inputs.enable_tmate == 'true' }}
|
|
122
|
+
# uses: mxschmitt/action-tmate@v3
|
|
119
123
|
|
|
120
124
|
#### Developer note: You can probably leave this out
|
|
121
125
|
- name: "Create other env vars for our own tests from server output"
|
|
@@ -77,6 +77,6 @@ jobs:
|
|
|
77
77
|
# Internal: docassemble changes sometimes break @a11y tests. That is
|
|
78
78
|
# a da problem, not ours. We will trigger these tests manually when we
|
|
79
79
|
# want to check up on this.
|
|
80
|
-
ALKILN_TAG_EXPRESSION: "
|
|
80
|
+
ALKILN_TAG_EXPRESSION: "@del3"
|
|
81
81
|
#### Developer note: You can probably leave this out
|
|
82
82
|
ALKILN_VERSION: delete
|
package/CHANGELOG.md
CHANGED
|
@@ -58,6 +58,7 @@ Format:
|
|
|
58
58
|
- Test deleting interviews upon interview completion for signed in users.
|
|
59
59
|
- Switch to mostly using a lowest-access-level user account for actually running interviews.
|
|
60
60
|
- Added @temp_error to neutralize tests that are getting undesired errors right now, but which we anticipate being fixed soon. We want to ignore them for a short while. For example, an upstream change temporarily breaking some tests.
|
|
61
|
+
- Excluded docassemble/ALKiln files from log code checks.
|
|
61
62
|
|
|
62
63
|
## [5.12.0] - 2024-06-06
|
|
63
64
|
|
package/lib/scope.js
CHANGED
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ fi
|
|
|
16
16
|
# The grepped files will include the list of all the codes that have been
|
|
17
17
|
# removed and are no longer used. Syntax used works with GitHub cli ([[:digit:]])
|
|
18
18
|
# https://stackoverflow.com/a/6901221
|
|
19
|
-
lines=$(grep -roh --exclude="tests/log_codes/check_codes.sh" --exclude="debug_log.txt" --exclude="cucumber-report.txt" --exclude-dir="
|
|
19
|
+
lines=$(grep -roh --exclude="tests/log_codes/check_codes.sh" --exclude="debug_log.txt" --exclude="cucumber-report.txt" --exclude-dir="ALKilnTests" --exclude-dir="node_modules" --exclude-dir='alkiln-*' --exclude-dir='_alkiln*' 'ALK[[:digit:]][[:digit:]][[:digit:]][[:digit:]]' "$directory")
|
|
20
20
|
sorted=$(echo "$lines" | sort -n)
|
|
21
21
|
|
|
22
22
|
|