Skip to content

CCM-16444 config seeding for dynamic envs#532

Open
nhsd-david-wass wants to merge 7 commits intomainfrom
feature/CCM-16444-Config-Seeding-For-Dynamic-Envs
Open

CCM-16444 config seeding for dynamic envs#532
nhsd-david-wass wants to merge 7 commits intomainfrom
feature/CCM-16444-Config-Seeding-For-Dynamic-Envs

Conversation

@nhsd-david-wass
Copy link
Copy Markdown
Contributor

Description

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

DT3-Specific Checklist

  • If I have added a new resource (SQS, Lambda, Gateway, DDB table, etc), I have created the appropriate alarms

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.

@nhsd-david-wass nhsd-david-wass requested review from a team as code owners April 13, 2026 13:20
@nhsd-david-wass nhsd-david-wass force-pushed the feature/CCM-16444-Config-Seeding-For-Dynamic-Envs branch 2 times, most recently from 9b04a23 to 3f66c94 Compare April 14, 2026 12:51
@nhsd-david-wass nhsd-david-wass force-pushed the feature/CCM-16444-Config-Seeding-For-Dynamic-Envs branch 2 times, most recently from 551f2e2 to 777b1e0 Compare April 23, 2026 07:41
Comment thread .github/workflows/stage-3-build.yaml Outdated
--overrideProjectName "nhs" \
--overrideRoleName "nhs-main-acct-supplier-api-github-deploy"
--overrideRoleName "nhs-main-acct-supplier-api-github-deploy" \
--internalRef "feature/CCM-12444-supplier-config-publishing-workflow"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I presume this needs taking out before this branch is merged, and after the internal branch is merged?

Comment thread .github/workflows/stage-3-build.yaml Outdated
--targetComponent "config" \
--targetAccountGroup "nhs-notify-suppliers-dev" \
--tableName "supplier-config" \
--internalRef "feature/CCM-12444-supplier-config-publishing-workflow" \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please remove references to internal campaign config

@nhsd-david-wass nhsd-david-wass force-pushed the feature/CCM-16444-Config-Seeding-For-Dynamic-Envs branch 3 times, most recently from 23aa898 to de7cb87 Compare April 23, 2026 10:59
Copy link
Copy Markdown
Contributor

@francisco-videira-nhs francisco-videira-nhs left a comment

Choose a reason for hiding this comment

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

Some comments / questions.

Also, we need a pack-specification for digitrials-dmapp. That's already in prod and being used. The pack spec for digitrials-dmapp was previously notify-admail

runId: "${{ github.run_id }}"
buildSandbox: true
releaseVersion: ${{ github.head_ref || github.ref_name }}
populate-config:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor, but populate-config could go before artefact-proxies, so we have the backend stuff done first?

{
"channelType": "LETTER",
"dailyCapacity": 500000,
"id": "supplier1",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Currently we use "TestSupplier1" for component tests https://github.com/NHSDigital/nhs-notify-supplier-api/blob/main/tests/config/global-setup.ts#L16 - so we might want to align this if this is to support testing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There's going to be another bit of work to migrate from the current suppliers table to thie new 'supplier-config' table when we'll do this

@@ -34,13 +34,13 @@ resource "aws_dynamodb_table" "supplier-configuration" {
global_secondary_index {
name = "EntityTypeIndex"
hash_key = "entityType"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Will this GSI be used? There seems to be no logic or tests for it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not yet - but it will be

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think you don't need a separate entity type index, as the PK already indexes on ENTITY#<entitytype>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You could in fact make the primary PK/SK 'entityType' and 'id' fields, I think the DDB loader script adds these pk/sk fields redundantly, and could probably be dropped if you want?

@nhsd-david-wass nhsd-david-wass force-pushed the feature/CCM-16444-Config-Seeding-For-Dynamic-Envs branch from dbe5f3e to ce28417 Compare April 24, 2026 12:31
@nhsd-david-wass nhsd-david-wass force-pushed the feature/CCM-16444-Config-Seeding-For-Dynamic-Envs branch from ee81c02 to 8f124b7 Compare April 24, 2026 13:36
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.

3 participants