-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle data that have JSON-friendly representation
When converting event data into the JSON payload to send to BQ, have special handling for Hash objects. However, some data will come in as on object that isn't immediately convertable to something JSON-friendly, such as models (e.g. StoreModel or ActiveModel objects). This change converts everything to a more standard JSON-friendly representation before processing for sending to BQ, meaning that models are converted to a Hash object which we can then to_json as needed.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters