Skip to content

Support timestamp and decimal types in sanitize_for_serialization#24

Merged
einsteinx2 merged 3 commits into
mParticle:masterfrom
enewnham:feature/sanitize-timestamp-decimal
May 3, 2023
Merged

Support timestamp and decimal types in sanitize_for_serialization#24
einsteinx2 merged 3 commits into
mParticle:masterfrom
enewnham:feature/sanitize-timestamp-decimal

Conversation

@enewnham
Copy link
Copy Markdown
Contributor

@enewnham enewnham commented May 3, 2023

Summary

Added support for timestamps (as isoformat) and decimals (as strings) in sanitize_for_serialization

Testing Plan

  • Was this tested locally? If not, explain why.
  • I tested using unit tests, by building a json object and checking the resulting output
  • I ran a data pipeline using the altered code and verified the output

Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)

@samdozor samdozor requested a review from einsteinx2 May 3, 2023 15:34
Copy link
Copy Markdown
Contributor

@einsteinx2 einsteinx2 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, thanks for adding tests!

@einsteinx2 einsteinx2 merged commit ca4cbfc into mParticle:master May 3, 2023
@enewnham enewnham deleted the feature/sanitize-timestamp-decimal branch May 3, 2023 22:09
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