Skip to content

Ortto audiences (Engage) #2927

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

xitonix
Copy link

@xitonix xitonix commented May 21, 2025

Hey @joe-ayoub-segment,

This PR is the second part of our work to support syncing Segment Audiences with Ortto. As discussed, we decided to separate it from the main analytics integration and implement it as its own integration.

When you get a chance, I'd really appreciate it if you could take a look.

Thanks,
Alex

Testing

  • Added unit tests for new functionality
  • Tested end-to-end using the local server
  • [If destination is already live] Tested for backward compatibility of destination. Note: New required fields are a breaking change.
  • [Segmenters] Tested in the staging environment
  • [Segmenters] [If applicable for this change] Tested for regression with Hadron.

Copy link
Contributor

@joe-ayoub-segment joe-ayoub-segment left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @xitonix this looks really good!
Very few minor changes needed.

placeholder: '180.1.12.125',
type: 'string',
format: 'ipv4',
default: { '@path': '$.context.ip' },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default: { '@path': '$.context.ip' },
default: '@if': {
exists: { '@path': '$.traits.ip' },
then: { '@path': '$.traits.ip' },
else: { '@path': '$.properties.ip' }
},

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default mappings are a little different for an Engage Audience Destination.

Comment on lines +145 to +147
exists: { '@path': '$.traits.address.country' },
then: { '@path': '$.traits.address.country' },
else: { '@path': '$.context.traits.address.country' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
exists: { '@path': '$.traits.address.country' },
then: { '@path': '$.traits.address.country' },
else: { '@path': '$.context.traits.address.country' }
exists: { '@path': '$.traits.country' },
then: { '@path': '$.traits.country' },
else: { '@path': '$.properties.country' }

Comment on lines +152 to +154
exists: { '@path': '$.traits.address.state' },
then: { '@path': '$.traits.address.state' },
else: { '@path': '$.context.traits.address.state' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
exists: { '@path': '$.traits.address.state' },
then: { '@path': '$.traits.address.state' },
else: { '@path': '$.context.traits.address.state' }
exists: { '@path': '$.traits.state' },
then: { '@path': '$.traits.state' },
else: { '@path': '$.properties.state' }

Comment on lines +159 to +161
exists: { '@path': '$.traits.address.city' },
then: { '@path': '$.traits.address.city' },
else: { '@path': '$.context.traits.address.city' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
exists: { '@path': '$.traits.address.city' },
then: { '@path': '$.traits.address.city' },
else: { '@path': '$.context.traits.address.city' }
exists: { '@path': '$.traits.city' },
then: { '@path': '$.traits.city' },
else: { '@path': '$.properties.city' }

Comment on lines +166 to +168
exists: { '@path': '$.traits.address.postal_code' },
then: { '@path': '$.traits.address.postal_code' },
else: { '@path': '$.context.traits.address.postal_code' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
exists: { '@path': '$.traits.address.postal_code' },
then: { '@path': '$.traits.address.postal_code' },
else: { '@path': '$.context.traits.address.postal_code' }
exists: { '@path': '$.traits.postal_code' },
then: { '@path': '$.traits.postal_code' },
else: { '@path': '$.properties.postal_code' }

@joe-ayoub-segment
Copy link
Contributor

hi @xitonix just checking in to see if you are still interested in getting this PR over the line? If not I'll have to close it.
I'd be happy to connect on a call to get the work completed if that will help?
Here's my Calendly: https://calendly.com/joe_ayoub

Best regards,
Joe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants