Skip to content

Commit 939311e

Browse files
committed
Rename parameter since we're not gonna use product IDs
1 parent d23ea7a commit 939311e

6 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/scripts/release_code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ sam deploy \
6969
EnabledSiteODSCodesValue="${ENABLED_SITE_ODS_CODES:-' '}" \
7070
EnablePostDatedNotifications="$ENABLE_POST_DATED_NOTIFICATIONS" \
7171
EnabledSystemsValue="${ENABLED_SYSTEMS:-' '}" \
72-
EnabledSupplierProductIDsValue="${ENABLED_SUPPLIER_PRODUCT_IDS:-' '}" \
72+
EnabledSupplierApplicationIDsValue="${ENABLED_SUPPLIER_PRODUCT_IDS:-' '}" \
7373
BlockedSiteODSCodesValue="${BLOCKED_SITE_ODS_CODES:-' '}" \
7474
NotifyRoutingPlanIDValue="$NOTIFY_ROUTING_PLAN_ID" \
7575
NotifyAPIBaseURLValue="$NOTIFY_API_BASE_URL" \

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ sam-sync: guard-AWS_DEFAULT_PROFILE guard-stack_name compile
4848
"EnabledSystemsValue=$${ENABLED_SYSTEMS:-Internal Test System}" \
4949
"EnabledSiteODSCodesValue=$${ENABLED_SITE_ODS_CODES:-A83008,FA565}" \
5050
BlockedSiteODSCodesValue=$${BLOCKED_SITE_ODS_CODES:-XXXXX} \
51-
EnabledSupplierProductIDsValue=$${ENABLED_SUPPLIER_PRODUCT_IDS:-XXXXX} \
51+
EnabledSupplierApplicationIDsValue=$${ENABLED_SUPPLIER_PRODUCT_IDS:-XXXXX} \
5252
NotifyRoutingPlanIDValue=$${NOTIFY_ROUTING_PLAN_ID:-e57fe5cc-0567-4854-abe2-b7dd9014a50c} \
5353
NotifyAPIBaseURLValue=$${NOTIFY_API_BASE_URL:-https://int.api.service.nhs.uk} \
5454
EnableNotificationsInternal=$${ENABLE_NOTIFICATIONS_INTERNAL:-true} \
@@ -81,7 +81,7 @@ sam-deploy: guard-AWS_DEFAULT_PROFILE guard-stack_name
8181
"EnabledSystemsValue=$${ENABLED_SYSTEMS:-Internal Test System}" \
8282
"EnabledSiteODSCodesValue=$${ENABLED_SITE_ODS_CODES:-A83008,FA565}" \
8383
BlockedSiteODSCodesValue=$${BLOCKED_SITE_ODS_CODES:-XXXXX} \
84-
EnabledSupplierProductIDsValue=$${ENABLED_SUPPLIER_PRODUCT_IDS:-XXXXX} \
84+
EnabledSupplierApplicationIDsValue=$${ENABLED_SUPPLIER_PRODUCT_IDS:-XXXXX} \
8585
NotifyRoutingPlanIDValue=$${NOTIFY_ROUTING_PLAN_ID:-e57fe5cc-0567-4854-abe2-b7dd9014a50c} \
8686
NotifyAPIBaseURLValue=$${NOTIFY_API_BASE_URL:-https://int.api.service.nhs.uk} \
8787
EnableNotificationsInternal=$${ENABLE_NOTIFICATIONS_INTERNAL:-true} \

SAMtemplates/functions/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Parameters:
4646
EnabledSystemsParam:
4747
Type: AWS::SSM::Parameter::Name<String>
4848

49-
EnabledSupplierProductIDsParam:
49+
EnabledSupplierApplicationIDsParam:
5050
Type: AWS::SSM::Parameter::Name<String>
5151

5252
BlockedSiteODSCodesParam:
@@ -140,7 +140,7 @@ Resources:
140140
USE_PRODUCT_ID_FOR_NOTIFICATIONS_FILTERING: false
141141
ENABLED_SYSTEMS_PARAM: !Ref EnabledSystemsParam
142142
#
143-
ENABLED_PRODUCT_IDS_PARAM: !Ref EnabledSupplierProductIDsParam
143+
ENABLED_PRODUCT_IDS_PARAM: !Ref EnabledSupplierApplicationIDsParam
144144
ENABLED_SITE_ODS_CODES_PARAM: !Ref EnabledSiteODSCodesParam
145145
BLOCKED_SITE_ODS_CODES_PARAM: !Ref BlockedSiteODSCodesParam
146146
ENABLE_NOTIFICATIONS_PARAM: !Ref EnableNotificationsInternalParam

SAMtemplates/main_template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Parameters:
129129
Type: String
130130
Default: " "
131131

132-
EnabledSupplierProductIDsValue:
132+
EnabledSupplierApplicationIDsValue:
133133
Type: String
134134
Default: " "
135135

@@ -192,7 +192,7 @@ Resources:
192192
EnableNotificationsExternalValue: !Ref EnableNotificationsExternal
193193
EnabledSiteODSCodesValue: !Ref EnabledSiteODSCodesValue
194194
EnabledSystemsValue: !Ref EnabledSystemsValue
195-
EnabledSupplierProductIDsValue: !Ref EnabledSupplierProductIDsValue
195+
EnabledSupplierApplicationIDsValue: !Ref EnabledSupplierApplicationIDsValue
196196
BlockedSiteODSCodesValue: !Ref BlockedSiteODSCodesValue
197197
NotifyRoutingPlanIDValue: !Ref NotifyRoutingPlanIDValue
198198
NotifyAPIBaseURLValue: !Ref NotifyAPIBaseURLValue
@@ -259,7 +259,7 @@ Resources:
259259
SQSSaltSecret: !GetAtt Secrets.Outputs.SQSSaltSecret
260260
EnabledSiteODSCodesParam: !GetAtt Parameters.Outputs.EnabledSiteODSCodesParameterName
261261
EnabledSystemsParam: !GetAtt Parameters.Outputs.EnabledSystemsParameterName
262-
EnabledSupplierProductIDsParam: !GetAtt Parameters.Outputs.EnabledSupplierProductIDsParameterName
262+
EnabledSupplierApplicationIDsParam: !GetAtt Parameters.Outputs.EnabledSupplierApplicationIDsParameterName
263263
BlockedSiteODSCodesParam: !GetAtt Parameters.Outputs.BlockedSiteODSCodesParameterName
264264
NotifyRoutingPlanIDParam: !GetAtt Parameters.Outputs.NotifyRoutingPlanIDParameterName
265265
NotifyAPIBaseURLParam: !GetAtt Parameters.Outputs.NotifyAPIBaseURLParameterName

SAMtemplates/parameters/main.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Parameters:
2828
Type: String
2929
Default: " "
3030

31-
EnabledSupplierProductIDsValue:
31+
EnabledSupplierApplicationIDsValue:
3232
Type: String
3333
Default: " "
3434

@@ -73,13 +73,13 @@ Resources:
7373
Type: String
7474
Value: !Ref EnabledSystemsValue
7575

76-
EnabledSupplierProductIDsParameter:
76+
EnabledSupplierApplicationIDsParameter:
7777
Type: AWS::SSM::Parameter
7878
Properties:
79-
Name: !Sub ${StackName}-PSUNotifyEnabledSupplierProductIDs
79+
Name: !Sub ${StackName}-PSUNotifyEnabledSupplierApplicationIDs
8080
Description: "List of supplier product IDs for which notifications are enabled"
8181
Type: String
82-
Value: !Ref EnabledSupplierProductIDsValue
82+
Value: !Ref EnabledSupplierApplicationIDsValue
8383

8484
BlockedSiteODSCodesParameter:
8585
Type: AWS::SSM::Parameter
@@ -167,7 +167,7 @@ Resources:
167167
Resource:
168168
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${StackName}-PSUNotifyEnabledSiteODSCodes
169169
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${StackName}-PSUNotifyEnabledSystems
170-
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${StackName}-PSUNotifyEnabledSupplierProductIDs
170+
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${StackName}-PSUNotifyEnabledSupplierApplicationIDs
171171
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${StackName}-PSUNotifyBlockedSiteODSCodes
172172
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${StackName}-PSUNotifyRoutingPlanID
173173
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${StackName}-PSUNotifyApiBaseUrl
@@ -192,11 +192,11 @@ Outputs:
192192
Export:
193193
Name: !Sub ${StackName}-PSUNotifyEnabledSystemsParam
194194

195-
EnabledSupplierProductIDsParameterName:
195+
EnabledSupplierApplicationIDsParameterName:
196196
Description: "Name of the SSM parameter holding enabled supplier product IDs"
197-
Value: !Ref EnabledSupplierProductIDsParameter
197+
Value: !Ref EnabledSupplierApplicationIDsParameter
198198
Export:
199-
Name: !Sub ${StackName}-PSUNotifyEnabledSupplierProductIDsParam
199+
Name: !Sub ${StackName}-PSUNotifyEnabledSupplierApplicationIDsParam
200200

201201
BlockedSiteODSCodesParameterName:
202202
Description: "Name of the SSM parameter holding blocked site ODS codes"

packages/updatePrescriptionStatus/src/validation/notificationSiteAndSystemFilters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export async function checkSiteOrSystemIsNotifyEnabled(
6666

6767
logger?.info(
6868
"Product ID, application name, and ODS code",
69-
{productId: appId, applicationName: appName, odsCode, enabledSystemAppIds}
69+
{ApplicationID: appId, applicationName: appName, odsCode, enabledSystemAppIds}
7070
)
7171

7272
// Is this item supplier enabled?

0 commit comments

Comments
 (0)