Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tests, fix bug #576

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Conversation

fontanka16
Copy link
Contributor

No description provided.

@fontanka16 fontanka16 linked an issue Mar 29, 2023 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Mar 29, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@fontanka16
Copy link
Contributor Author

The only question I have is what should happen when the parsing fails

@branchedelac
Copy link
Contributor

We should report that it failed (record id, field, and problem string), and return an empty string.

Any date we "make up" is likely to be an incorrect guess, but could later be mistaken for an actual date coming from the source data.

Leaving the field empty will clearly signal to the library that they need to -- now or some time post migration -- figure out the correct value and add it in.

Copy link
Collaborator

@bltravis bltravis left a comment

Choose a reason for hiding this comment

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

Looks good

@bltravis
Copy link
Collaborator

I'm going to go ahead and merge this so the fix is included in the release I'm planning to do tonight.

@bltravis bltravis merged commit 79d9c1a into main Mar 30, 2023
@bltravis bltravis deleted the 575-empty-user-dates-are-returned-as-todays-date branch March 30, 2023 02:26
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.

Empty user dates are returned as today's date
3 participants