Skip to content

fix: now allows for dummy postcode ZZZSECUR in transform#1477

Merged
SamRobinson75684 merged 10 commits intomainfrom
Fix/DTOSS-10107-postcode-validation-bypass
Aug 13, 2025
Merged

fix: now allows for dummy postcode ZZZSECUR in transform#1477
SamRobinson75684 merged 10 commits intomainfrom
Fix/DTOSS-10107-postcode-validation-bypass

Conversation

@SamRobinson75684
Copy link
Copy Markdown
Contributor

@SamRobinson75684 SamRobinson75684 commented Aug 13, 2025

Description

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-10107
https://nhsd-jira.digital.nhs.uk/browse/DTOSS-10617

Context

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 13, 2025

Unit Test Results

✔️ Tests 747 / 747 - passed in 13s
📝 Coverage 56.96%
📏 4166 / 7200 lines covered 🌿 988 / 1848 branches covered
🔍 click here for more details

✏️ updated for commit b49f411

Copy link
Copy Markdown
Contributor

@will-larkin-nhs will-larkin-nhs left a comment

Choose a reason for hiding this comment

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

I would prefer that we handle this in validate outcode as a guard clause if the postcode starts with ZZ we just return false. I understand wanting to keep it all in one place but now with the ZZZSECUR postcodes I don't think it makes sense to call the parse outcode method because there is no outcode to parse. So I think if the postcode starts with ZZ we should just skip the DB call and the parse outcode method

Comment thread application/CohortManager/src/Functions/Shared/Common/ValidationHelper.cs Outdated
@sonarqubecloud
Copy link
Copy Markdown

@SamRobinson75684 SamRobinson75684 added this pull request to the merge queue Aug 13, 2025
Merged via the queue into main with commit 3be6d09 Aug 13, 2025
64 checks passed
@SamRobinson75684 SamRobinson75684 deleted the Fix/DTOSS-10107-postcode-validation-bypass branch August 13, 2025 15:13
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