Skip to content

Chore: [AEA-6258] - Set the defaultValue to default to undefined#645

Merged
wildjames merged 1 commit intomainfrom
aea-6258-fix
Mar 27, 2026
Merged

Chore: [AEA-6258] - Set the defaultValue to default to undefined#645
wildjames merged 1 commit intomainfrom
aea-6258-fix

Conversation

@wildjames
Copy link
Copy Markdown
Contributor

Summary

  • Routine Change

Copilot AI review requested due to automatic review settings March 27, 2026 17:07
@github-actions
Copy link
Copy Markdown
Contributor

This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:

AEA-6258

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

Updates CDK constructs config helpers so the defaultValue parameter is optional by explicitly defaulting it to undefined, aligning the API with existing call sites and the similar helpers in deploymentUtils.

Changes:

  • Set defaultValue parameter default to undefined in getConfigFromEnvVar.
  • Apply the same defaulting to getBooleanConfigFromEnvVar and getNumberConfigFromEnvVar.

@wildjames wildjames enabled auto-merge (squash) March 27, 2026 17:09
@sonarqubecloud
Copy link
Copy Markdown

@wildjames wildjames merged commit 979b7e7 into main Mar 27, 2026
20 checks passed
@wildjames wildjames deleted the aea-6258-fix branch March 27, 2026 17:16
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