-
Notifications
You must be signed in to change notification settings - Fork 257
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
fest(Segment): add all new endpoints to segment #1459
fest(Segment): add all new endpoints to segment #1459
Conversation
…s-to-work-with-customer feat(Segment) add destination endpoints to work with customer profiles
Hi @rubyjohn93 thanks for raising this PR. I'll schedule for review. |
Thanks for raising this PR @rubyjohn93 , I'd like to have a little more context about these changes so I can be more informed when reviewing the PR. Would you be OK scheduling a call with me via this Calendly link please? Best regads, |
hi @rubyjohn93 , Alex and Kristina, Thanks for taking the time to catch up just now.
Thanks again for your time, |
Hi @rubyjohn93 , Alex and Krishna, Please let me know once you've updated the PR based on our discussion, and that you are happy for me to rereview. Best regards, |
Hi @joe-ayoub-segment |
packages/destination-actions/src/destinations/talon-one/updateCustomerSession/index.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor tweaks to the phrasing....
packages/destination-actions/src/destinations/talon-one/trackEvent/index.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/talon-one/updateCustomerProfile/index.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/talon-one/updateCustomerProfileV2/index.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/talon-one/updateCustomerSession/index.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/talon-one/updateCustomerSessionV2/index.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/talon-one/updateCustomerProfileV2/index.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/talon-one/updateCustomerProfile/index.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/talon-one/trackEvent/index.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/talon-one/trackEventV2/index.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/talon-one/updateCustomerSession/index.ts
Outdated
Show resolved
Hide resolved
Hi @vignesh-giridharan and @rubyjohn93 , I can see that you're still working on this so I'll hold off on approving it. Please message me directly here to let me know when you are done :) |
@joe-ayoub-segment Yes, @vignesh-giridharan is from our docs team and we are working on making the mappings name in segment and our docs the same, so that the customers can easily relate both. I'll make the proposed changes and once everything is finalised I'll ping you here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the changes, @rubyjohn93! Also, hi, Joe! 👋🏽
@joe-ayoub-segment I have completed the changes you proposed, in the scope of this repo. I incorporated a few suggestion from our docs team as well.
This change will be picked up by our docs team later in their pipeline and hopefully they will raise a PR by next week. I would like to request you to wait till then so that we can make avail both PRs ready for your review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rubyjohn93 , few more minor changes.
description: `This records a custom event in Talon.One. | ||
|
||
**Important:** This endpoint is deprecated. Use the current **Track event** endpoint instead.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: `This records a custom event in Talon.One. | |
**Important:** This endpoint is deprecated. Use the current **Track event** endpoint instead.`, | |
description: `This records a custom event in Talon.One. **Important:** This Action is deprecated. Use the **Track event** Action instead.`, |
description: `This updates attributes and audiences for a single customer profile. | ||
|
||
**Important:** This endpoint is deprecated. Use the current **Update customer profile** endpoint instead.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: `This updates attributes and audiences for a single customer profile. | |
**Important:** This endpoint is deprecated. Use the current **Update customer profile** endpoint instead.`, | |
description: `This updates attributes and audiences for a single customer profile. **Important:** This Action is deprecated. Use the **Update customer profile** Action instead.`, |
description: `You do not have to create attributes or audiences before using this endpoint. | ||
|
||
**Important:** This endpoint is deprecated. Use the current **Update customer profile** endpoint instead.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: `You do not have to create attributes or audiences before using this endpoint. | |
**Important:** This endpoint is deprecated. Use the current **Update customer profile** endpoint instead.`, | |
description: `You do not have to create attributes or audiences before using this Action. **Important:** This Action is deprecated. Use the **Update customer profile** Action instead.`, |
description: `This updates a customer session. | ||
|
||
**Important:** This endpoint is deprecated. Use the current **Update customer session** endpoint instead.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: `This updates a customer session. | |
**Important:** This endpoint is deprecated. Use the current **Update customer session** endpoint instead.`, | |
description: `This updates a customer session. **Important:** This Action is deprecated. Use the **Update customer session** Action instead.`, |
const action: ActionDefinition<Settings, Payload> = { | ||
title: 'Update customer profile', | ||
description: | ||
'This updates attributes and audiences for a single customer profile. Create all the required attributes and audiences before using this endpoint.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'This updates attributes and audiences for a single customer profile. Create all the required attributes and audiences before using this endpoint.', | |
'This updates attributes and audiences for a single customer profile. Create all the required attributes and audiences before using this Action.', |
|
||
const action: ActionDefinition<Settings, Payload> = { | ||
title: 'Update customer session', | ||
description: 'This updates a customer session. Create all the required attributes before using this endpoint.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: 'This updates a customer session. Create all the required attributes before using this endpoint.', | |
description: 'This updates a customer session. Create all the required attributes before using this Action.', |
Thank you for the review. Made these changes. |
hi @rubyjohn93 thanks for making the changes. I've approved the PR. Waiting on CI checks to pass. If they do, we plan to deploy Thursday 24th August. |
Hi @joe-ayoub-segment |
hi @rubyjohn93 , nope we're good. The Synk test fails unless it's an internal PR. We're good to deploy Thursday. |
Thank you 👍 |
Hi @rubyjohn93 this PR has been deployed. |
* add create audience action * try enable CI * try fix * return ci how it was * add updateAudience, deleteAudience, trackEvent * check workflow * fix tests * fix tests * fix description * improve test * fix labels and descriptions * generate types * return workflows how it was before * change destination name Talon One -> Talon.One * review * new files * added 3 endpoints * added generated files * implemented 3 endppoints * tests * fixed tests, added right json tags * updated models * updated test models * update models * updated models * tests generated * updated models * tests generated * Revert "Merge pull request #2 from talon-one/sc-7503-add-destination-endpoints-to-work-with-customer" This reverts commit d391a8e, reversing changes made to 6871863. * Revert "Revert "Merge pull request #2 from talon-one/sc-7503-add-destination-endpoints-to-work-with-customer"" This reverts commit b7e7d31. * added more endpoints and fixed some minor things * deleted an unnecessarily added file * updated snapshots, thank you @jinapark202 * add updateCustomerProfileV2 action * add default mapping * integrationId -> integration ID * new update customer session destination for talon.one * fixed tests, review * added choices for attributesInfo * reused attributesInfo constant from t1-properties.ts * updated test by cardItems array * updated test by cardItems array * generated types * fixed unit tests * fixed a typo * review * deleted destination to update multiple attributes fro multiple customer profiles * Add new talon-integration endpoints to segment * Mark old endpoints as deprecated in title and description * Fix PR comments from docs team * Fix casing * Fix PR comments --------- Co-authored-by: kkupreeva <kupreeva@talon.one> Co-authored-by: Mikhail Gunkov <painter@3lines.club> Co-authored-by: Michael Gunkoff <54396113+kaatinga@users.noreply.github.com> Co-authored-by: Kristina Kupreeva <86834674+kkupreeva@users.noreply.github.com> Co-authored-by: Kristina Kupreeva <kristine.kupreeva@gmail.com>
We have added 3 new endpoints to talon-integration. This PR aims at adding these 3 endpoints to segment.
The new endpoints mainly support a new query param
skipNonExistingAttributes
compared to their previous versions.This flag indicates whether to skip non-existing attributes.
If
true
, the non-existing attributes are skipped and a 400 error is not returned.If
false
, a 400 error is returned in case of non-existing attributes.Testing
Include any additional information about the testing you have completed to
ensure your changes behave as expected. For a speedy review, please check
any of the tasks you completed below during your testing.
Please find the attached screenshots for the same. I have added screenshots of Action Tester with and without the
skipNonExistingAttributes
query param and the talon-ui after the API succeeds.