Skip to content

Chore: [AEA-0000] - Default to using the app ID. Populate the parameter with the enabled suppliers#2970

Merged
wildjames merged 2 commits intomainfrom
aea-0000-define-allowed-supplier-ids-in-code
Apr 16, 2026
Merged

Chore: [AEA-0000] - Default to using the app ID. Populate the parameter with the enabled suppliers#2970
wildjames merged 2 commits intomainfrom
aea-0000-define-allowed-supplier-ids-in-code

Conversation

@wildjames
Copy link
Copy Markdown
Contributor

Summary

  • ⚠️ Potential issues that might be caused by this change

Details

This PR updates the environment variable flag so that all environments use application ID by default. It also populates the application IDs for PROD, but does not do so for any other environment.

When this is deployed, we MUST check that the number of notifications being sent per minute is unaffected. Use this splunk query to do that: TODO

Copilot AI review requested due to automatic review settings April 16, 2026 15:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR switches notification filtering to default to using supplier application IDs across all environments, and populates the PROD enabled supplier application IDs configuration used during releases.

Changes:

  • Set USE_APP_ID_FOR_NOTIFICATIONS_FILTERING to true in the SAM functions template so app-ID filtering is the default.
  • Update the PROD release workflow to pass a populated ENABLED_SUPPLIER_APPLICATION_IDS CSV instead of the placeholder value.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
SAMtemplates/functions/main.yaml Flips the Lambda env flag so filtering uses application IDs by default.
.github/workflows/release.yml Provides the PROD application ID allow-list used to populate the SSM parameter at deploy time.

Comment on lines 138 to 139
# Remove this once we've confirmed that product ID based filtering is working as expected and we
# no longer need the ability to switch back to the old filtering method
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

The comment above this flag refers to confirming “product ID based filtering” and switching back to the “old filtering method”, but the flag is specifically about using application IDs for filtering. Please update/remove the comment so it accurately describes the current behaviour and what the rollback path actually is.

Suggested change
# Remove this once we've confirmed that product ID based filtering is working as expected and we
# no longer need the ability to switch back to the old filtering method
# Keep this flag while application ID based filtering remains behind a rollback switch.
# Set to false to revert to the legacy notifications filtering behaviour.

Copilot uses AI. Check for mistakes.
# Remove this once we've confirmed that product ID based filtering is working as expected and we
# no longer need the ability to switch back to the old filtering method
USE_APP_ID_FOR_NOTIFICATIONS_FILTERING: false
USE_APP_ID_FOR_NOTIFICATIONS_FILTERING: true
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

USE_APP_ID_FOR_NOTIFICATIONS_FILTERING is being set as a YAML boolean. Lambda environment variable values are strings, and the TypeScript code reads this from process.env as a string; relying on implicit coercion here is fragile and can fail schema/type validation in CloudFormation/SAM. Set the value explicitly as a string (e.g., "true").

Suggested change
USE_APP_ID_FOR_NOTIFICATIONS_FILTERING: true
USE_APP_ID_FOR_NOTIFICATIONS_FILTERING: "true"

Copilot uses AI. Check for mistakes.
@wildjames
Copy link
Copy Markdown
Contributor Author

image

Dev

Splunk query for prod

@wildjames wildjames enabled auto-merge (squash) April 16, 2026 16:01
@wildjames
Copy link
Copy Markdown
Contributor Author

Broken down by app ID:

Dev

Prod

@sonarqubecloud
Copy link
Copy Markdown

@wildjames wildjames merged commit 8b4d984 into main Apr 16, 2026
18 checks passed
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