Skip to content

Commit e947cde

Browse files
authored
Merge pull request #422 from NHSDigital/release/2024-11-22
Release/2024-11-22
2 parents efd21a2 + 45a3de2 commit e947cde

File tree

196 files changed

+2433
-8154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+2433
-8154
lines changed

.github/workflows/deploy-nonprod-workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
options:
1212
- dev
1313
- qa
14-
- int
14+
# - int
1515
- ref
1616
sandbox:
1717
description: Do you want to deploy the sandbox version?

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2024-11-22
4+
- [PI-528] Collapse versioning to v1
5+
- [PI-581] MHS Device with Device Reference Data
6+
37
## 2024-11-19
48
- [PI-601] Workspace destroy, use main branch as fallback
59

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024.11.19
1+
2024.11.22

changelog/2024-11-22.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- [PI-528] Collapse versioning to v1
2+
- [PI-581] MHS Device with Device Reference Data

infrastructure/terraform/per_workspace/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ module "lambdas" {
8080
source = "./modules/api_worker/api_lambda"
8181
python_version = var.python_version
8282
name = each.key
83-
lambda_name = "${local.project}--${replace(terraform.workspace, "_", "-")}--${replace(replace(replace(each.key, "_", "-"), "DeviceReferenceData", "DeviceRefData"), "MessageHandlingSystem", "MHS")}"
83+
lambda_name = "${local.project}--${replace(terraform.workspace, "_", "-")}--${replace(replace(replace(replace(each.key, "_", "-"), "DeviceReferenceData", "DeviceRefData"), "MessageHandlingSystem", "MHS"), "MessageSet", "MsgSet")}"
84+
8485
//Compact will remove all nulls from the list and create a new one - this is because TF throws an error if there is a null item in the list.
8586
layers = concat(
8687
compact([for instance in module.layers : contains(var.api_lambda_layers, instance.name) ? instance.layer_arn : null]),

infrastructure/terraform/per_workspace/modules/api_entrypoint/api_gateway/locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ locals {
55
}
66
methods = [
77
for lambda_alias in setsubtract(var.lambdas, ["authoriser"]) :
8-
{ "method_${lambda_alias}" = "${local.apigateway_lambda_arn_prefix}:${var.assume_account}:function:${var.project}--${replace(terraform.workspace, "_", "-")}--${replace(replace(replace(lambda_alias, "_", "-"), "DeviceReferenceData", "DeviceRefData"), "MessageHandlingSystem", "MHS")}/invocations" }
8+
{ "method_${lambda_alias}" = "${local.apigateway_lambda_arn_prefix}:${var.assume_account}:function:${var.project}--${replace(terraform.workspace, "_", "-")}--${replace(replace(replace(replace(lambda_alias, "_", "-"), "DeviceReferenceData", "DeviceRefData"), "MessageHandlingSystem", "MHS"), "MessageSet", "MsgSet")}/invocations" }
99
]
1010
swagger_file = templatefile("${path.root}/../../swagger/dist/aws/swagger.yaml", merge({
1111
lambda_invoke_arn = var.authoriser_metadata.lambda_invoke_arn,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "connecting-party-manager"
3-
version = "2024.11.19"
3+
version = "2024.11.22"
44
description = "Repository for the Connecting Party Manager API and related services"
55
authors = ["NHS England"]
66
license = "LICENSE.md"

src/api/createCpmProduct/tests/test_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from unittest import mock
44

55
import pytest
6-
from domain.core.root.v3 import Root
7-
from domain.repository.product_team_repository.v2 import ProductTeamRepository
6+
from domain.core.root import Root
7+
from domain.repository.product_team_repository import ProductTeamRepository
88
from event.json import json_loads
99

1010
from test_helpers.dynamodb import mock_table

src/api/createCpmProductForEpr/src/v1/steps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
read_product_team,
88
)
99
from domain.core.cpm_product import CpmProduct
10-
from domain.core.cpm_system_id.v1 import PartyKeyId
11-
from domain.core.product_key.v1 import ProductKeyType
12-
from domain.core.product_team.v3 import ProductTeam
10+
from domain.core.cpm_system_id import PartyKeyId
11+
from domain.core.product_key import ProductKeyType
12+
from domain.core.product_team import ProductTeam
1313
from domain.repository.cpm_system_id_repository import CpmSystemIdRepository
1414

1515

src/api/createCpmProductForEpr/tests/test_index.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
from unittest import mock
55

66
import pytest
7-
from domain.core.cpm_system_id.v1 import PartyKeyId, ProductId
7+
from domain.core.cpm_system_id import PartyKeyId, ProductId
88
from domain.core.enum import Status
9-
from domain.core.root.v3 import Root
10-
from domain.repository.cpm_product_repository.v3 import CpmProductRepository
11-
from domain.repository.product_team_repository.v2 import ProductTeamRepository
9+
from domain.core.root import Root
10+
from domain.repository.cpm_product_repository import CpmProductRepository
11+
from domain.repository.product_team_repository import ProductTeamRepository
1212
from event.json import json_loads
1313

1414
from test_helpers.dynamodb import mock_table

0 commit comments

Comments
 (0)