Skip to content

Commit 68ba2ed

Browse files
Merge branch 'main' into feature/CCM-12963-E2ETests
2 parents 8d19566 + ab13894 commit 68ba2ed

84 files changed

Lines changed: 1702 additions & 683 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
},
8484
"mounts": [
8585
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached",
86-
"source=${localEnv:HOME}/.aws,target=/home/vscode/.aws,type=bind,consistency=cached"
86+
"source=${localEnv:HOME}/.aws,target=/home/vscode/.aws,type=bind,consistency=cached",
87+
"source=${localEnv:HOME}/.npmrc,target=/home/vscode/.npmrc,type=bind,consistency=cached"
8788
],
8889
"name": "Devcontainer",
8990
"postCreateCommand": "scripts/devcontainer/postcreatecommand.sh"

.github/workflows/stage-1-commit.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: "Commit stage"
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_call:
58
inputs:
@@ -76,7 +79,7 @@ jobs:
7679
needs: detect-terraform-changes
7780
if: needs.detect-terraform-changes.outputs.terraform_changed == 'true'
7881
permissions:
79-
contents: write
82+
contents: write
8083
steps:
8184
- name: "Checkout code"
8285
uses: actions/checkout@v5
@@ -317,7 +320,7 @@ jobs:
317320
uses: actions/setup-node@v4
318321
with:
319322
node-version: ${{ inputs.nodejs_version }}
320-
registry-url: 'https://npm.pkg.github.com'
323+
registry-url: "https://npm.pkg.github.com"
321324

322325
- name: check if local version differs from latest published version
323326
id: check-version

.github/workflows/stage-2-test.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ env:
3838

3939
permissions:
4040
id-token: write # This is required for requesting the JWT
41-
contents: read # This is required for actions/checkout
41+
contents: read # This is required for actions/checkout
4242
packages: read # This is required for downloading from GitHub Package Registry
4343

4444
jobs:
@@ -49,6 +49,11 @@ jobs:
4949
steps:
5050
- name: "Checkout code"
5151
uses: actions/checkout@v5
52+
- name: Setup NodeJS
53+
uses: actions/setup-node@v4
54+
with:
55+
node-version: ${{ inputs.nodejs_version }}
56+
registry-url: "https://npm.pkg.github.com"
5257
- name: "Cache node_modules"
5358
uses: actions/cache@v4
5459
with:
@@ -73,6 +78,11 @@ jobs:
7378
steps:
7479
- name: "Checkout code"
7580
uses: actions/checkout@v5
81+
- name: Setup NodeJS
82+
uses: actions/setup-node@v4
83+
with:
84+
node-version: ${{ inputs.nodejs_version }}
85+
registry-url: "https://npm.pkg.github.com"
7686
- name: "Cache node_modules"
7787
uses: actions/cache@v4
7888
with:
@@ -142,6 +152,11 @@ jobs:
142152
steps:
143153
- name: "Checkout code"
144154
uses: actions/checkout@v5
155+
- name: Setup NodeJS
156+
uses: actions/setup-node@v4
157+
with:
158+
node-version: ${{ inputs.nodejs_version }}
159+
registry-url: "https://npm.pkg.github.com"
145160
- name: "Cache node_modules"
146161
uses: actions/cache@v4
147162
with:
@@ -168,6 +183,11 @@ jobs:
168183
steps:
169184
- name: "Checkout code"
170185
uses: actions/checkout@v5
186+
- name: Setup NodeJS
187+
uses: actions/setup-node@v4
188+
with:
189+
node-version: ${{ inputs.nodejs_version }}
190+
registry-url: "https://npm.pkg.github.com"
171191
- name: "Cache node_modules"
172192
uses: actions/cache@v4
173193
with:

.gitleaksignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ e12407e09151898bfd8d049d57eee9db9977d56b:.github/copilot-instructions.md:generic
2222
82f6be3e657b46d8447e77cdc1894fba0b855c26:tests/component-tests/testCases/create-letter-request.spec.ts:generic-api-key:10
2323
debc75a97cfe551a69fd1e8694be483213322a9d:pact-contracts/pacts/letter-rendering/supplier-api-letter-request-prepared.json:generic-api-key:10
2424
777eb4047ad06b9e939a292ee18664a0ffee4f29:tests/resources/prepared-letter.json:generic-api-key:4
25+
4fa1923947bbff2387218d698d766cbb7c121a0f:pact-contracts/pacts/letter-rendering/supplier-api-letter-request-prepared.json:generic-api-key:10

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}
1+
1.1.0-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"build": "JEKYLL_ENV=production bundle exec jekyll build --trace --config _config.yml,_config.version.yml",
1515
"debug": "JEKYLL_ENV=development BUNDLE_GEMFILE=Gemfile bundle exec jekyll serve --config _config.yml,_config.dev.yml,_config.version.yml --limit_posts 100 --trace",
1616
"generate-includes": "./generate-includes.sh",
17+
"lint": "echo \"Documentation module has no code to lint\"",
1718
"test:unit": "echo \"Documentation module has no unit tests\"",
1819
"typecheck": "echo \"Documentation module has no typescript to typecheck\""
1920
},

infrastructure/terraform/components/api/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ No requirements.
2626
| <a name="input_group"></a> [group](#input\_group) | The group variables are being inherited from (often synonmous with account short-name) | `string` | n/a | yes |
2727
| <a name="input_kms_deletion_window"></a> [kms\_deletion\_window](#input\_kms\_deletion\_window) | When a kms key is deleted, how long should it wait in the pending deletion state? | `string` | `"30"` | no |
2828
| <a name="input_letter_table_ttl_hours"></a> [letter\_table\_ttl\_hours](#input\_letter\_table\_ttl\_hours) | Number of hours to set as TTL on letters table | `number` | `24` | no |
29+
| <a name="input_letter_variant_map"></a> [letter\_variant\_map](#input\_letter\_variant\_map) | n/a | `map(object({ supplierId = string, specId = string }))` | <pre>{<br/> "lv1": {<br/> "specId": "spec1",<br/> "supplierId": "supplier1"<br/> },<br/> "lv2": {<br/> "specId": "spec2",<br/> "supplierId": "supplier1"<br/> },<br/> "lv3": {<br/> "specId": "spec3",<br/> "supplierId": "supplier2"<br/> }<br/>}</pre> | no |
2930
| <a name="input_log_level"></a> [log\_level](#input\_log\_level) | The log level to be used in lambda functions within the component. Any log with a lower severity than the configured value will not be logged: https://docs.python.org/3/library/logging.html#levels | `string` | `"INFO"` | no |
3031
| <a name="input_log_retention_in_days"></a> [log\_retention\_in\_days](#input\_log\_retention\_in\_days) | The retention period in days for the Cloudwatch Logs events to be retained, default of 0 is indefinite | `number` | `0` | no |
3132
| <a name="input_manually_configure_mtls_truststore"></a> [manually\_configure\_mtls\_truststore](#input\_manually\_configure\_mtls\_truststore) | Manually manage the truststore used for API Gateway mTLS (e.g. for prod environment) | `bool` | `false` | no |

infrastructure/terraform/components/api/ddb_table_letters.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ resource "aws_dynamodb_table" "letters" {
22
name = "${local.csi}-letters"
33
billing_mode = "PAY_PER_REQUEST"
44

5-
hash_key = "supplierId"
6-
range_key = "id"
5+
hash_key = "id"
6+
range_key = "supplierId"
77

88
ttl {
99
attribute_name = "ttl"

infrastructure/terraform/components/api/module_lambda_get_letter_data.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module "get_letter_data" {
2424
function_include_common = true
2525
handler_function_name = "getLetterData"
2626
runtime = "nodejs22.x"
27-
memory = 128
27+
memory = 512
2828
timeout = 29
2929
log_level = var.log_level
3030

infrastructure/terraform/components/api/module_lambda_letter_updates_transformer.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module "letter_updates_transformer" {
2424
function_include_common = true
2525
handler_function_name = "handler"
2626
runtime = "nodejs22.x"
27-
memory = 128
27+
memory = 512
2828
timeout = 29
2929
log_level = var.log_level
3030

0 commit comments

Comments
 (0)