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

Allow items to have both time ranges point in time datetimes #405

Merged
merged 7 commits into from
Sep 21, 2021

Conversation

jisantuc
Copy link
Contributor

@jisantuc jisantuc commented Sep 21, 2021

Overview

This PR switches from a sum type to cats's Ior type for encoding item datetimes.

Checklist

  • New tests have been added or existing tests have been modified
  • Changelog updated (please use chan)

Helps with azavea/franklin#960

@jisantuc jisantuc changed the title Allow items to have both time ranges _and_ point in time datetimes Allow items to have both time ranges point in time datetimes Sep 21, 2021
@jisantuc jisantuc requested a review from pomadchin September 21, 2021 17:26
Comment on lines +22 to +23
// order is important here! the time range encoder also writes a `null` value to the
// datetime field, which overwrites what the point-in-time encoder wants to write.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would not have figured this out if it hadn't been for the round trip tests. ♥ CodecTests so much

@jisantuc jisantuc merged commit 30a3f11 into master Sep 21, 2021
@jisantuc jisantuc deleted the bugfix/js/time-range-or-point-in-time-or-both branch September 21, 2021 21:24
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.

1 participant