-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: mixpanel set once feature onboard (#2820)
* feat: initial commit * feat: making sure existing functionality is intact * fix: edits for exclusion keys * fix: edits for supporting property paths * fix: delete wrong test case * fix: test cases * fix: removed unnecessary code * fix: adding unit test cases for trimTraits * fix: changing the order of priority in property mapping * fix: edited distinct id logic * fix: small edit * fix: review comments addressed * fix: adding dedicated mappingJson for setOnce * fix: adding all the fields to the dedicated json * fix: addressing review comments * feat: review comments addressed
- Loading branch information
1 parent
5c63d2c
commit 9eda50e
Showing
8 changed files
with
665 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
[ | ||
{ | ||
"destKey": "$created", | ||
"sourceKeys": "createdAt", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$email", | ||
"sourceKeys": "email", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$first_name", | ||
"sourceKeys": ["firstName", "firstname", "first_name"], | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$last_name", | ||
"sourceKeys": ["lastName", "lastname", "last_name"], | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$name", | ||
"sourceKeys": "name", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$username", | ||
"sourceKeys": ["username", "userName"], | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$phone", | ||
"sourceKeys": "phone", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$avatar", | ||
"sourceKeys": "avatar", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$country_code", | ||
"sourceKeys": ["country", "address.country"], | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$city", | ||
"sourceKeys": ["city", "address.city"], | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$region", | ||
"sourceKeys": ["state", "address.state", "location.region"], | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$unsubscribed", | ||
"sourceKeys": "unsubscribed", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$geo_source", | ||
"sourceKeys": "location.geoSource", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$timezone", | ||
"sourceKeys": "location.timezone", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$latitude", | ||
"sourceKeys": "location.latitude", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$longitude", | ||
"sourceKeys": "location.longitude", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$carrier", | ||
"sourceKeys": "network.carrier", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$manufacturer", | ||
"sourceKeys": "device.manufacturer", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$model", | ||
"sourceKeys": "device.model", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$screen_height", | ||
"sourceKeys": "screen.height", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$screen_width", | ||
"sourceKeys": "screen.width", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$wifi", | ||
"sourceKeys": "network.wifi", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$initial_referrer", | ||
"sourceKeys": "page.initial_referrer", | ||
"required": false | ||
}, | ||
{ | ||
"destKey": "$initial_referring_domain", | ||
"sourceKeys": ["page.initial_referring_domain", "page.initialReferringDomain"], | ||
"required": false | ||
} | ||
] |
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
Oops, something went wrong.