Repository navigation
made changes for heap - #229
Conversation
| rudderPropertiesObj = message.properties; | ||
| rawPayload.identity = message.context.traits.email; | ||
| email = | ||
| (message.context.traits ? email : null) || message.properties.email; |
There was a problem hiding this comment.
(message.context.traits ? email : null) ==> email is undefined here right?
so rawPayload.identity = null is valid but rawPayload.identity = undefined (previous version) is not?
There was a problem hiding this comment.
changed the logic
| : null; | ||
| email = | ||
| message.context.traits.email || | ||
| (message.properties ? message.properties.email : null); |
There was a problem hiding this comment.
will identify have message.properties?
There was a problem hiding this comment.
properties can be sent through identify calls right?
Thus checking once and then assigning.
There was a problem hiding this comment.
do we have that provision in our sdks?
| } = require("../util"); | ||
|
|
||
| function responseBuilder(payload, message, heapConfig) { | ||
| function flatten(target, opts) { |
There was a problem hiding this comment.
heap needs flattened properties?
we are not using opts, can this be removed? Also, move this method to utils?
can we have a description and an example of what it does with javascript object, object array and array types
There was a problem hiding this comment.
this function is also used in another destination Kissmetrics. there opts is used so making it generic and keeping it in utils also adding comments.
There was a problem hiding this comment.
Yes heap was not accepting nested properties.
|
👍 |
No description provided.