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

Don't raise error on invalid dates in CSV uploads #574

Merged
merged 2 commits into from
Feb 9, 2025
Merged

Conversation

mbarton
Copy link
Member

@mbarton mbarton commented Feb 9, 2025

Follow on from #569 where I made it throw errors if the dates were invalid. Unfortunately the same live file I'm testing has a totally invalid date in one of the cells, not just the short year format.

So this PR changes us back to errors=coerce and adds unit tests that bad date input crashes writing that patient to the database but doesn't tank the CSV upload.

@mbarton mbarton self-assigned this Feb 9, 2025
@mbarton mbarton merged commit a246851 into live Feb 9, 2025
1 check passed
@mbarton mbarton deleted the mbarton/dates-again branch February 9, 2025 20:28
@mbarton
Copy link
Member Author

mbarton commented Feb 9, 2025

Seen on STAGING, LIVE (merged by @mbarton 6 minutes and 36 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant