-
Notifications
You must be signed in to change notification settings - Fork 2
CCM-16444: Config seeding for dynamic envs #532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nhsd-david-wass
wants to merge
9
commits into
main
Choose a base branch
from
feature/CCM-16444-Config-Seeding-For-Dynamic-Envs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e04d6e1
CCM-16444 Populate config table
nhsd-david-wass 313d3bc
Fix existing database access
nhsd-david-wass 0e6ee97
Initial config dev test data
nhsd-david-wass a3b5472
add force
nhsd-david-wass 8b20fb8
remove PROD supplier config
nhsd-david-wass c3e6977
review changes
nhsd-david-wass a4579a3
point at internal main
nhsd-david-wass 1fda0c9
minimal anaonymised data set
nhsd-david-wass 89c29a9
review changes
nhsd-david-wass File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
m-houston marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| "campaignIds": [ | ||
| "client1-campaign" | ||
| ], | ||
| "clientId": "client1", | ||
| "constraints": { | ||
| "blackCoveragePercentage": { | ||
| "operator": "LESS_THAN", | ||
| "value": 20 | ||
| }, | ||
| "colourCoveragePercentage": { | ||
| "operator": "LESS_THAN", | ||
| "value": 10 | ||
| }, | ||
| "deliveryDays": { | ||
| "operator": "LESS_THAN", | ||
| "value": 3 | ||
| }, | ||
| "sheets": { | ||
| "operator": "LESS_THAN", | ||
| "value": 3 | ||
| }, | ||
| "sides": { | ||
| "operator": "LESS_THAN", | ||
| "value": 6 | ||
| } | ||
| }, | ||
| "description": "Colour printing, campaign envelope, Attachment", | ||
| "id": "client1-campaign", | ||
| "name": "Client1 - campaign", | ||
| "packSpecificationIds": [ | ||
| "client1-campaign" | ||
| ], | ||
| "status": "INT", | ||
| "type": "STANDARD", | ||
| "volumeGroupId": "volumeGroup-test3" | ||
| } |
30 changes: 30 additions & 0 deletions
30
config/suppliers/letter-variant/notify-standard-test1.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { | ||
| "constraints": { | ||
| "blackCoveragePercentage": { | ||
| "operator": "LESS_THAN", | ||
| "value": 20 | ||
| }, | ||
| "deliveryDays": { | ||
| "operator": "LESS_THAN", | ||
| "value": 3 | ||
| }, | ||
| "sheets": { | ||
| "operator": "LESS_THAN", | ||
| "value": 5 | ||
| }, | ||
| "sides": { | ||
| "operator": "LESS_THAN", | ||
| "value": 10 | ||
| } | ||
| }, | ||
| "description": "Dev test variant for happy path testing", | ||
| "id": "notify-standard-test1", | ||
| "name": "Dev Happy Path", | ||
| "packSpecificationIds": [ | ||
| "notify-c5", | ||
| "notify-c4" | ||
| ], | ||
| "status": "PROD", | ||
| "type": "STANDARD", | ||
| "volumeGroupId": "volumeGroup-test1" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| { | ||
| "constraints": { | ||
| "blackCoveragePercentage": { | ||
| "operator": "LESS_THAN", | ||
| "value": 20 | ||
| }, | ||
| "deliveryDays": { | ||
| "operator": "LESS_THAN", | ||
| "value": 3 | ||
| }, | ||
| "sheets": { | ||
| "operator": "LESS_THAN", | ||
| "value": 5 | ||
| }, | ||
| "sides": { | ||
| "operator": "LESS_THAN", | ||
| "value": 10 | ||
| } | ||
| }, | ||
| "description": "Black printing, economy postage tariff", | ||
| "id": "notify-standard", | ||
| "name": "Standard Letter", | ||
| "packSpecificationIds": [ | ||
| "notify-c5" | ||
| ], | ||
| "status": "PROD", | ||
| "type": "STANDARD", | ||
| "volumeGroupId": "volumeGroup-test2" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| { | ||
| "assembly": { | ||
| "duplex": true, | ||
| "envelopeId": "client1-campaign", | ||
| "features": [ | ||
| "ADMAIL" | ||
| ], | ||
| "insertIds": [ | ||
| "client1-campaign-fast-facts-attachment" | ||
| ], | ||
| "paper": { | ||
| "colour": "WHITE", | ||
| "id": "paper-std-white-100", | ||
| "name": "Standard White 80gsm", | ||
| "recycled": true, | ||
| "size": "A4", | ||
| "weightGSM": 80 | ||
| }, | ||
| "printColour": "COLOUR" | ||
| }, | ||
| "billingId": "client1-campaign-billing", | ||
| "constraints": { | ||
| "blackCoveragePercentage": { | ||
| "operator": "LESS_THAN", | ||
| "value": 20 | ||
| }, | ||
| "colourCoveragePercentage": { | ||
| "operator": "LESS_THAN", | ||
| "value": 20 | ||
| }, | ||
| "deliveryDays": { | ||
| "operator": "LESS_THAN", | ||
| "value": 3 | ||
| }, | ||
| "sheets": { | ||
| "operator": "LESS_THAN", | ||
| "value": 4 | ||
| }, | ||
| "sides": { | ||
| "operator": "LESS_THAN", | ||
| "value": 8 | ||
| } | ||
| }, | ||
| "createdAt": "2026-01-12T00:00:00.000Z", | ||
| "description": "Envelope and attachment for campaign", | ||
| "id": "client1-campaign", | ||
| "name": "Client1 - campaign", | ||
| "postage": { | ||
| "deliveryDays": 3, | ||
| "id": "economy", | ||
| "maxThicknessMm": 5, | ||
| "maxWeightGrams": 100, | ||
| "size": "STANDARD" | ||
| }, | ||
| "status": "PROD", | ||
| "updatedAt": "2026-02-16T17:00:00.000Z", | ||
| "version": 2 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| { | ||
| "assembly": { | ||
| "duplex": true, | ||
| "envelopeId": "economy-c5", | ||
| "paper": { | ||
| "colour": "WHITE", | ||
| "id": "paper-std-white-80", | ||
| "name": "Standard White 80gsm", | ||
| "recycled": true, | ||
| "size": "A4", | ||
| "weightGSM": 80 | ||
| }, | ||
| "printColour": "BLACK" | ||
| }, | ||
| "billingId": "notify-c4", | ||
| "constraints": { | ||
| "blackCoveragePercentage": { | ||
| "operator": "LESS_THAN", | ||
| "value": 20 | ||
| }, | ||
| "deliveryDays": { | ||
| "operator": "LESS_THAN", | ||
| "value": 3 | ||
| }, | ||
| "sheets": { | ||
| "operator": "LESS_THAN", | ||
| "value": 20 | ||
| }, | ||
| "sides": { | ||
| "operator": "LESS_THAN", | ||
| "value": 40 | ||
| } | ||
| }, | ||
| "createdAt": "2026-01-12T00:00:00.000Z", | ||
| "description": "C4 pack (large letter)", | ||
| "id": "notify-c4", | ||
| "name": "Notify standard (C4)", | ||
| "postage": { | ||
| "deliveryDays": 3, | ||
| "id": "economy", | ||
| "maxThicknessMm": 25, | ||
| "maxWeightGrams": 500, | ||
| "size": "LARGE" | ||
| }, | ||
| "status": "DRAFT", | ||
| "updatedAt": "2026-01-12T00:00:00.000Z", | ||
| "version": 1 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| { | ||
| "assembly": { | ||
| "duplex": true, | ||
| "envelopeId": "economy-c4", | ||
| "paper": { | ||
| "colour": "WHITE", | ||
| "id": "paper-std-white-80", | ||
| "name": "Standard White 80gsm", | ||
| "recycled": true, | ||
| "size": "A4", | ||
| "weightGSM": 80 | ||
| }, | ||
| "printColour": "BLACK" | ||
| }, | ||
| "billingId": "notify-c5-billing", | ||
| "constraints": { | ||
| "blackCoveragePercentage": { | ||
| "operator": "LESS_THAN", | ||
| "value": 20 | ||
| }, | ||
| "deliveryDays": { | ||
| "operator": "LESS_THAN", | ||
| "value": 3 | ||
| }, | ||
| "sheets": { | ||
| "operator": "LESS_THAN", | ||
| "value": 5 | ||
| }, | ||
| "sides": { | ||
| "operator": "LESS_THAN", | ||
| "value": 10 | ||
| } | ||
| }, | ||
| "createdAt": "2026-01-12T00:00:00.000Z", | ||
| "description": "C5 pack", | ||
| "id": "notify-c5", | ||
| "name": "Notify standard", | ||
| "postage": { | ||
| "deliveryDays": 3, | ||
| "id": "economy", | ||
| "maxThicknessMm": 5, | ||
| "maxWeightGrams": 100, | ||
| "size": "STANDARD" | ||
| }, | ||
| "status": "PROD", | ||
| "updatedAt": "2026-01-12T00:00:00.000Z", | ||
| "version": 1 | ||
| } |
7 changes: 7 additions & 0 deletions
7
config/suppliers/supplier-allocation/supplier1-volumeGroup-test1.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "allocationPercentage": 30, | ||
| "id": "supplier1-volumeGroup-test1", | ||
| "status": "PROD", | ||
| "supplier": "supplier1", | ||
| "volumeGroup": "volumeGroup-test1" | ||
| } |
7 changes: 7 additions & 0 deletions
7
config/suppliers/supplier-allocation/supplier1-volumeGroup-test2.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "allocationPercentage": 100, | ||
| "id": "supplier1-volumeGroup-test2", | ||
| "status": "PROD", | ||
| "supplier": "supplier1", | ||
| "volumeGroup": "volumeGroup-test2" | ||
| } |
7 changes: 7 additions & 0 deletions
7
config/suppliers/supplier-allocation/supplier1-volumeGroup-test3.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "allocationPercentage": 100, | ||
| "id": "supplier1-volumeGroup-test3", | ||
| "status": "PROD", | ||
| "supplier": "supplier1", | ||
| "volumeGroup": "volumeGroup-test3" | ||
| } |
7 changes: 7 additions & 0 deletions
7
config/suppliers/supplier-allocation/supplier2-volumeGroup-test1.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "allocationPercentage": 70, | ||
| "id": "supplier2-volumeGroup-test1", | ||
| "status": "PROD", | ||
| "supplier": "supplier2", | ||
| "volumeGroup": "volumeGroup-test1" | ||
| } |
7 changes: 7 additions & 0 deletions
7
config/suppliers/supplier-pack/supplier1-client1-campaign.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "approval": "APPROVED", | ||
| "id": "supplier1-client1-campaign", | ||
| "packSpecificationId": "client1-campaign", | ||
| "status": "PROD", | ||
| "supplierId": "supplier1" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "approval": "DRAFT", | ||
| "id": "supplier1-notify-c4", | ||
| "packSpecificationId": "notify-c4", | ||
| "status": "DRAFT", | ||
| "supplierId": "supplier1" | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?