Skip to content

Conversation

@perryr16
Copy link
Contributor

Any background context you want to provide?

Import files with a "Postal Code" or "Owner Postal Code" header and blank values were converted to '00000' on import. The original intent was to convert incoming values of '0' to '00000', however the way it was written allowed all falsey values to be zero padded.

What's this PR do?

  • Narrows the conditional to ensure the value is truthy or is 0 before zero padding.
  • Adds a few tests

How should this be manually tested?

Import a file that has a mix of truthy and falsey ("", 0) zip codes

What are the relevant tickets?

#5130

Screenshots (if appropriate)

before
Screenshot 2025-11-17 at 2 38 59 PM

after
Screenshot 2025-11-17 at 2 39 13 PM

@perryr16 perryr16 added the Bug label Nov 17, 2025
@perryr16 perryr16 changed the title Do not pad blank postal codes Fix blank postal code bug Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants