Skip to content

Conversation

@masl2
Copy link
Contributor

@masl2 masl2 commented Dec 24, 2025

Description

Change the Letter store to use letter ID as it's primary partition key
Source, Subject and (new) BillingRef are stored and placed in outbound events

Branched from #280 as an enhancement

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@masl2 masl2 requested review from a team as code owners December 24, 2025 10:30
@masl2 masl2 merged commit e42d26c into feature/CCM-12997 Dec 24, 2025
30 checks passed
@masl2 masl2 deleted the feature/CCM-13697_datastore-changes branch December 24, 2025 11:03
francisco-videira-nhs added a commit that referenced this pull request Jan 13, 2026
* Add upsert lambda

* Fix names

* Fix unit test

* Fix unit test dates

* Fix lambda handler name export

* Add event-schemas-letter-rendering

* Add GitHub NPM registry configuration to .npmrc

* Add version check and Node.js setup to CI workflow

* TO REVERT AFTER TEST: conditional check for event schema version update

* Refactor event schema version checks in CI workflow

* Add GitHub NPM registry URL to Node.js setup in workflows

* Log npm response

* Add NODE_AUTH_TOKEN to GitHub Actions environment for NPM access

* Revert "Add GitHub NPM registry URL to Node.js setup in workflows"

This reverts commit f1444fd.

* Move NODE_AUTH_TOKEN to npm view step in CI workflow

* Reapply "Add GitHub NPM registry URL to Node.js setup in workflows"

This reverts commit 5741a86.

* Add NODE_AUTH_TOKEN to NPM install steps in workflows

* Re-enable conditional check on published package check

* Add NODE_AUTH_TOKEN input for GitHub package registry access in workflows

* Add packages:read to permissions

* delete old test

* fix trivy scan step

* Fix gh pkg registry test stage

* fix local npmrc

* Fix unit test timestamps, add source

* Add notification parsing logic

* fix tf var

* Fix ddb permissions

* Add latest version event schema letter rendering

* Add trying v1 parse if v2 fails

* Add subject

* Split upsert operations

* Letter variant map to vars

* Revert supplierStatusSk

* Fix dependencies

* CCM-13697: Letters Key and Source Data Item (#323)

* swap partition and sort for letters

* store changes and source, subject, billingref

* unsafe marker

* rename correctly

* missing close brace

* minor refactor upsert unit tests

* remove dup line

* gitleaksignore

* bump package version

* Fix get API for component tests

---------

Co-authored-by: Mike Houston <[email protected]>
Co-authored-by: Mike Houston <[email protected]>
Co-authored-by: Mark Slowey <[email protected]>
Co-authored-by: Mark Slowey <[email protected]>
Co-authored-by: Steve Buxton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant