Skip to content

CCM-7942: Proof requested event#876

Open
bhansell1 wants to merge 15 commits intomainfrom
feature/CCM-7942-proofing-publish
Open

CCM-7942: Proof requested event#876
bhansell1 wants to merge 15 commits intomainfrom
feature/CCM-7942-proofing-publish

Conversation

@bhansell1
Copy link
Contributor

@bhansell1 bhansell1 commented Mar 12, 2026

Description

  • adds and publishes ProofRequestedV1 events
  • adds ProofRequests DynamoDB table, stream and pipe from CCM-7941

Context

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
  • If I have used the 'skip-trivy-package' label I have done so responsibly and in the knowledge that this is being fixed as part of a separate ticket/PR.

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.

@bhansell1 bhansell1 marked this pull request as ready for review March 16, 2026 11:10
@bhansell1 bhansell1 requested review from a team as code owners March 16, 2026 11:10
alexnuttall
alexnuttall previously approved these changes Mar 16, 2026
Comment on lines +8 to +13
id: z.string().regex(UUID_REGEX).meta({
description: 'Unique identifier of the proof request',
}),
templateId: z.string().regex(UUID_REGEX).meta({
description: 'Unique identifier for the template being proofed',
}),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
id: z.string().regex(UUID_REGEX).meta({
description: 'Unique identifier of the proof request',
}),
templateId: z.string().regex(UUID_REGEX).meta({
description: 'Unique identifier for the template being proofed',
}),
id: z.uuidv4().meta({
description: 'Unique identifier of the proof request',
}),
templateId: z.uuidv4().meta({
description: 'Unique identifier for the template being proofed',
}),

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah good shout - z.uuid actually uses the same regex we are using in code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually - it was the EventEnvelope.subject that used the same regex which uses z.uuid. I'm unsure why we're using a custom regex for UUID.

^[\\dA-Fa-f]{8}(?:-[\\dA-Fa-f]{4}){3}-[\\dA-Fa-f]{12}$ - seems to just "verify" that the string is a uuid shape whereas z.uuid is much stricter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've been using this custom uuid regex for all our event data fields.

@@ -0,0 +1,12 @@
module "sqs_proof_requests_table_events_pipe_dlq" {
source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.28/terraform-sqs.zip"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use latest version?

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.

4 participants