Skip to content
Closed
Show file tree
Hide file tree
Changes from 145 commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
e5cfae1
script
Namitha-Prabhu Nov 3, 2025
0d7458d
CCM-12180: acceptance stage internal invoke
masl2 Nov 3, 2025
4999505
CCM-12180: correct infraRepo name param
masl2 Nov 7, 2025
c021822
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
masl2 Nov 7, 2025
104851e
CCM-12180: add override project and role
masl2 Nov 7, 2025
d6c1239
CCM-12180: override project
masl2 Nov 10, 2025
a424ceb
CCM-12180: remove callerId param
masl2 Nov 10, 2025
29fdc70
fix tests
Namitha-Prabhu Nov 12, 2025
038076e
remove generate-output
Namitha-Prabhu Nov 12, 2025
223d427
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu Nov 12, 2025
d18d495
tests
Namitha-Prabhu Nov 19, 2025
d161b85
merge
Namitha-Prabhu Nov 19, 2025
787face
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu Nov 22, 2025
b154794
merge
Namitha-Prabhu Nov 22, 2025
1d53900
Add upsert lambda
francisco-videira-nhs Dec 1, 2025
4334697
Fix names
francisco-videira-nhs Dec 2, 2025
132326d
Fix unit test
francisco-videira-nhs Dec 2, 2025
036c319
Fix unit test dates
francisco-videira-nhs Dec 2, 2025
d6602c3
Fix lambda handler name export
francisco-videira-nhs Dec 2, 2025
10326e9
merge
Namitha-Prabhu Dec 3, 2025
d78a8c7
merge
Namitha-Prabhu Dec 3, 2025
92d4d26
Add event-schemas-letter-rendering
francisco-videira-nhs Dec 4, 2025
b040535
Add GitHub NPM registry configuration to .npmrc
m-houston Dec 5, 2025
ffb8d5c
Add version check and Node.js setup to CI workflow
m-houston Dec 5, 2025
c307fc9
TO REVERT AFTER TEST: conditional check for event schema version update
m-houston Dec 5, 2025
46c8402
Refactor event schema version checks in CI workflow
m-houston Dec 5, 2025
f1444fd
Add GitHub NPM registry URL to Node.js setup in workflows
m-houston Dec 5, 2025
59d8846
Log npm response
m-houston Dec 5, 2025
d7a665c
Add NODE_AUTH_TOKEN to GitHub Actions environment for NPM access
m-houston Dec 5, 2025
5741a86
Revert "Add GitHub NPM registry URL to Node.js setup in workflows"
m-houston Dec 5, 2025
c427d03
Move NODE_AUTH_TOKEN to npm view step in CI workflow
m-houston Dec 5, 2025
8981a44
Reapply "Add GitHub NPM registry URL to Node.js setup in workflows"
m-houston Dec 5, 2025
fbf2e9d
Add NODE_AUTH_TOKEN to NPM install steps in workflows
m-houston Dec 5, 2025
113bbe5
Re-enable conditional check on published package check
m-houston Dec 5, 2025
032e48f
Add NODE_AUTH_TOKEN input for GitHub package registry access in workf…
m-houston Dec 5, 2025
f24f37a
Add packages:read to permissions
m-houston Dec 5, 2025
333f352
Merge branch 'main' into feature/fix-github-npm-registry-access
m-houston Dec 5, 2025
0d41d64
Merge remote-tracking branch 'origin/main' into feature/CCM-12997
francisco-videira-nhs Dec 5, 2025
6400400
delete old test
francisco-videira-nhs Dec 5, 2025
dcead20
tests
Namitha-Prabhu Dec 5, 2025
6a7efa3
Merge remote-tracking branch 'origin/feature/fix-github-npm-registry-…
francisco-videira-nhs Dec 5, 2025
116c323
fix unit tests
Namitha-Prabhu Dec 5, 2025
1d35f02
fix unit tests
Namitha-Prabhu Dec 5, 2025
4001e32
fix trivy scan step
francisco-videira-nhs Dec 5, 2025
ffdf716
fix unit tests
Namitha-Prabhu Dec 5, 2025
7e8533f
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
masl2 Dec 8, 2025
c5d9b9e
dependencies
masl2 Dec 8, 2025
20c5fd0
fix jest configurations
masl2 Dec 8, 2025
66eb971
Fix gh pkg registry test stage
francisco-videira-nhs Dec 8, 2025
b8b45ac
Merge remote-tracking branch 'origin/main' into feature/CCM-12997
francisco-videira-nhs Dec 8, 2025
1fbbb52
event package version
masl2 Dec 8, 2025
64d0fe2
fix local npmrc
francisco-videira-nhs Dec 8, 2025
7c57d35
lint fixes
Namitha-Prabhu Dec 8, 2025
fb0ebd9
lint fixes
Namitha-Prabhu Dec 8, 2025
9aaab4c
Merge branch 'feature/CCM-12180-TestsOnPipeline' of https://github.co…
Namitha-Prabhu Dec 8, 2025
52bf92b
remove duplicate variable defs
masl2 Dec 8, 2025
c8c3fd8
Merge branch 'feature/CCM-12180-TestsOnPipeline' of https://github.co…
Namitha-Prabhu Dec 8, 2025
4750470
remove test archive
Namitha-Prabhu Dec 9, 2025
d3aba34
suppress test data false positive
masl2 Dec 9, 2025
1adba99
imports
Namitha-Prabhu Dec 10, 2025
df1261c
checks for supplier data
Namitha-Prabhu Dec 10, 2025
7f06b68
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu Dec 10, 2025
49fd69b
tests
Namitha-Prabhu Dec 10, 2025
d0c63e1
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
masl2 Dec 11, 2025
5685221
merge
Namitha-Prabhu Dec 11, 2025
7f920cc
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu Dec 11, 2025
7636dda
Merge branch 'feature/CCM-12180-TestsOnPipeline' of https://github.co…
Namitha-Prabhu Dec 11, 2025
3e38147
version
Namitha-Prabhu Dec 11, 2025
0843041
lock file
Namitha-Prabhu Dec 11, 2025
93f72a7
lock file
Namitha-Prabhu Dec 11, 2025
f531aaf
fix
Namitha-Prabhu Dec 11, 2025
ecb88e8
fix
Namitha-Prabhu Dec 11, 2025
6bed21e
fix
Namitha-Prabhu Dec 11, 2025
5f30fa4
update test to reflect version
masl2 Dec 12, 2025
85233bf
package lock
masl2 Dec 12, 2025
ca58f3b
Fix unit test timestamps, add source
francisco-videira-nhs Dec 12, 2025
7b36de2
replace js-yaml with yaml
masl2 Dec 12, 2025
48b242b
downgrade yargs due to y18n dep
masl2 Dec 12, 2025
4513c92
missing deps
masl2 Dec 12, 2025
65481fd
Merge remote-tracking branch 'origin/main' into feature/CCM-12997
francisco-videira-nhs Dec 12, 2025
8a74c03
Add notification parsing logic
francisco-videira-nhs Dec 12, 2025
cb29729
fix tf var
francisco-videira-nhs Dec 12, 2025
2715285
Fix ddb permissions
francisco-videira-nhs Dec 12, 2025
5e1c732
update versions
Namitha-Prabhu Dec 15, 2025
3b5a35b
update versions
Namitha-Prabhu Dec 15, 2025
b1a5d66
fetch env variable
Namitha-Prabhu Dec 15, 2025
415d07a
fetch env variable
Namitha-Prabhu Dec 15, 2025
d9a5a14
PR number
Namitha-Prabhu Dec 15, 2025
a5ef09e
PR number
Namitha-Prabhu Dec 15, 2025
d6e80aa
Add latest version event schema letter rendering
francisco-videira-nhs Dec 15, 2025
595d4b6
Add trying v1 parse if v2 fails
francisco-videira-nhs Dec 15, 2025
d470154
add flag for execute endpoint
masl2 Dec 15, 2025
78ece30
Add subject
francisco-videira-nhs Dec 16, 2025
52513c2
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu Dec 18, 2025
a8fa07e
Split upsert operations
francisco-videira-nhs Dec 18, 2025
6040c12
Merge remote-tracking branch 'origin/main' into feature/CCM-12997
francisco-videira-nhs Dec 18, 2025
b1e1195
Letter variant map to vars
francisco-videira-nhs Dec 18, 2025
fdd73fc
Revert supplierStatusSk
francisco-videira-nhs Dec 18, 2025
05a6b2b
Merge remote-tracking branch 'origin/main' into feature/CCM-12997
francisco-videira-nhs Dec 18, 2025
10ec08f
Fix dependencies
francisco-videira-nhs Dec 18, 2025
9158018
merge
Namitha-Prabhu Dec 19, 2025
b7b91d2
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu Dec 19, 2025
b9d364e
trivy job setup of node for nhs packages
masl2 Dec 19, 2025
52b3af0
lock
masl2 Dec 19, 2025
f62a004
lock
masl2 Dec 19, 2025
7196cba
verbose log level
masl2 Dec 19, 2025
832f20e
try node setup and token env
masl2 Dec 19, 2025
1947273
node setup
masl2 Dec 22, 2025
6f6cd33
acceptance deps
masl2 Dec 22, 2025
4e060b6
acceptance deps
masl2 Dec 22, 2025
7efebb6
another go
masl2 Dec 22, 2025
c232df7
another go
masl2 Dec 22, 2025
547f6b1
Merge branch 'main' into feature/CCM-12997
masl2 Dec 24, 2025
e42d26c
CCM-13697: Letters Key and Source Data Item (#323)
masl2 Dec 24, 2025
448702b
missing close brace
masl2 Dec 24, 2025
c68acc2
merge feature/CCM-12997 into my branch
Vlasis-Perdikidis Dec 24, 2025
6e13097
minor refactor upsert unit tests
francisco-videira-nhs Dec 30, 2025
1eecf9b
remove dup line
francisco-videira-nhs Dec 30, 2025
6e86b9d
Merge remote-tracking branch 'origin/main' into feature/CCM-12180-Tes…
francisco-videira-nhs Dec 30, 2025
4693211
fix workspace for supplier test data
francisco-videira-nhs Dec 31, 2025
25d2d8f
merge latest from feature/CCM-12180-TestsOnPipeline into my branch
Vlasis-Perdikidis Jan 2, 2026
018febb
merge latest from feature/CCM-12997
Vlasis-Perdikidis Jan 2, 2026
ccea30d
Merge branch 'main' into feature/CCM-13610-letterRequestEventPerforma…
Vlasis-Perdikidis Jan 5, 2026
d8db90f
add logs to upsert lambda
Vlasis-Perdikidis Jan 5, 2026
82f6be3
trigger another build
Vlasis-Perdikidis Jan 5, 2026
6a5bd82
add fingerprints to gitleaksignore
Vlasis-Perdikidis Jan 5, 2026
f6c2d06
add more logging in upsert lambda
Vlasis-Perdikidis Jan 6, 2026
2162ff5
merge with main
Vlasis-Perdikidis Jan 9, 2026
777eb40
working prepared letter performance test
Vlasis-Perdikidis Jan 9, 2026
0d298ee
correct test description. Remove unnecessary changes. Remove unused i…
Vlasis-Perdikidis Jan 12, 2026
38a655b
Merge remote-tracking branch 'origin/main' into feature/CCM-12997
francisco-videira-nhs Jan 12, 2026
ce95fab
gitleaksignore
stevebux Jan 12, 2026
ab8ec27
ignore gitLeak
Vlasis-Perdikidis Jan 12, 2026
a6e99c2
bump package version
francisco-videira-nhs Jan 12, 2026
63bd2f7
Merge remote-tracking branch 'refs/remotes/origin/main' into feature/…
francisco-videira-nhs Jan 12, 2026
5d80dd3
resolve npm audit vulnerabilities
Vlasis-Perdikidis Jan 12, 2026
a76a0fe
increase version of internal/events/package.json
Vlasis-Perdikidis Jan 12, 2026
f935c9b
merge feature/CCM-12997 into my branch
Vlasis-Perdikidis Jan 13, 2026
2122890
add npm.pkg.github.com in .npmrc
Vlasis-Perdikidis Jan 13, 2026
59acd7c
populate NODE_AUTH_TOKEN for unit-test
Vlasis-Perdikidis Jan 13, 2026
3e468c0
rebase with main again
Vlasis-Perdikidis Jan 14, 2026
9b09f57
merge with main to get lint changes
Vlasis-Perdikidis Jan 14, 2026
6893aef
remove files irrelevant to my PR
Vlasis-Perdikidis Jan 14, 2026
06b42e5
fix linting errors
Vlasis-Perdikidis Jan 14, 2026
a880056
set NODE_AUTH_TOKEN in test-unit stage
Vlasis-Perdikidis Jan 14, 2026
55e3bd8
set NODE_AUTH_TOKEN in linting and typecheck stages
Vlasis-Perdikidis Jan 14, 2026
a7ed892
revert incorrect changes
Vlasis-Perdikidis Jan 15, 2026
d804997
remove entry from .npmrc
Vlasis-Perdikidis Jan 15, 2026
ab6ded4
add clean scripts in root package.json
Vlasis-Perdikidis Jan 15, 2026
289c3c2
fix failing upsert-handler test
Vlasis-Perdikidis Jan 15, 2026
a75180b
Merge branch 'main' into feature/CCM-13610-letterRequestEventPerforma…
Vlasis-Perdikidis Jan 15, 2026
70a0d02
address PR comments
Vlasis-Perdikidis Jan 15, 2026
b2e7c6f
add back gitLeakIgnore line
Vlasis-Perdikidis Jan 15, 2026
a6ad5c2
fix linting errors
Vlasis-Perdikidis Jan 15, 2026
9afd9f1
rebase with main
Vlasis-Perdikidis Jan 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ API_KEY=
HEADERAUTH=
PR_NUMBER=prxx # remove if needs to run against main
NHSD_APIM_TOKEN=
GITHUB_TOKEN=
2 changes: 2 additions & 0 deletions .github/workflows/stage-2-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ jobs:
name: "Unit tests"
runs-on: ubuntu-latest
timeout-minutes: 5
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: "Checkout code"
uses: actions/checkout@v5
Expand Down
4 changes: 4 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@ e12407e09151898bfd8d049d57eee9db9977d56b:.github/copilot-instructions.md:generic
82cf3b2e89ea24b97c4ffc09e618700fb1b0aff3:pact-contracts/pacts/letter-rendering/supplier-api-letter-request-prepared.json:generic-api-key:10
82f6be3e657b46d8447e77cdc1894fba0b855c26:tests/component-tests/testCases/create-letter-request.spec.ts:generic-api-key:10
debc75a97cfe551a69fd1e8694be483213322a9d:pact-contracts/pacts/letter-rendering/supplier-api-letter-request-prepared.json:generic-api-key:10
793b2ab7a3e698f5848fbe24d2718f88664ec0fc:.npmrc:npm-access-token:8
793b2ab7a3e698f5848fbe24d2718f88664ec0fc:.npmrc:github-pat:6
777eb4047ad06b9e939a292ee18664a0ffee4f29:tests/resources/prepared-letter.json:generic-api-key:4
d005112adcfd286c3bef076214836dbb2fe8d0b5:.npmrc:github-pat:7
d005112adcfd286c3bef076214836dbb2fe8d0b5:.npmrc:npm-access-token:9
4fa1923947bbff2387218d698d766cbb7c121a0f:pact-contracts/pacts/letter-rendering/supplier-api-letter-request-prepared.json:generic-api-key:10
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Package is scoped under @org, set registry for that scope
@nhsdigital:registry=https://npm.pkg.github.com
@org:registry=https://npm.pkg.github.com
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ config:: _install-dependencies version # Configure development environment (main
test-component:
(cd tests && npm install && npm run test:component)

test-performance:
(cd tests && npm install && npm run test:performance)

version:
rm -f .version
make version-create-effective-file dir=.
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"debug": "JEKYLL_ENV=development BUNDLE_GEMFILE=Gemfile bundle exec jekyll serve --config _config.yml,_config.dev.yml,_config.version.yml --limit_posts 100 --trace",
"generate-includes": "./generate-includes.sh",
"lint": "echo \"Documentation module has no code to lint\"",
"lint:fix": "echo \"Documentation module has no code to lint\"",
"test:unit": "echo \"Documentation module has no unit tests\"",
"typecheck": "echo \"Documentation module has no typescript to typecheck\""
},
Expand Down
4 changes: 2 additions & 2 deletions lambdas/letter-updates-transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"@internal/datastore": "^0.1.0",
"@internal/helpers": "^0.1.0",
"@nhsdigital/nhs-notify-event-schemas-supplier-api": "*",
"aws-lambda": "^1.0.7",
"esbuild": "^0.24.0",
"aws-lambda": "^1.0.6",
"esbuild": "^0.27.2",
"pino": "^10.1.0",
"zod": "^4.1.13"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("letter-mapper", () => {
expect(event.dataschema).toBe(
`https://notify.nhs.uk/cloudevents/schemas/supplier-api/letter.PRINTED.${event.dataschemaversion}.schema.json`,
);
expect(event.dataschemaversion).toBe("1.0.8");
expect(event.dataschemaversion).toMatch(/1\.\d+\.\d+/);
expect(event.subject).toBe("letter-origin/supplier-api/letter/id1");
expect(event.time).toBe("2025-11-24T15:55:18.000Z");
expect(event.recordedtime).toBe("2025-11-24T15:55:18.000Z");
Expand Down
2 changes: 1 addition & 1 deletion lambdas/upsert-letter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@nhsdigital/nhs-notify-event-schemas-supplier-api": "^1.0.5",
"@types/aws-lambda": "^8.10.148",
"aws-lambda": "^1.0.7",
"esbuild": "^0.24.0",
"esbuild": "^0.27.2",
"pino": "^9.7.0",
"zod": "^4.1.11"
},
Expand Down
Loading
Loading