Skip to content
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

source-intercom-native: hydrate contacts with all attached tags #2465

Merged

Conversation

Alex-Bair
Copy link
Member

@Alex-Bair Alex-Bair commented Feb 28, 2025

Description:

A contact contain multiple sub-resources, like tags. There can be a large number of sub-resources attached to one contact, but only a subset are included when fetching a contact from Intercom's API. For example, only the first 10 tags are included in a contact. To get all sub-resources, the connector would need to make an additional request to fetch them then hydrate the contact with the full set of sub-resources.

This commit adds this hydration functionality for tags within a contact. There are other possible sub-resources that we could hydrate (notes, companies, opted_out_subscription_types, etc.), but users are only asking about tags right now. So I'm only adding functionality for tags for now. Hydrating other sub-resources should be fairly straightforward if we need to do so later.

Capture snapshot changes are expected. I added >10 tags to both contacts in our developer Intercom account to test for this new tag hydration functionality.

Addresses #2463.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

Tested on a local stack. Confirmed contacts that previously had only 10 tags included & have more than 10 attached tags now contain the full set of >10 tags.


This change is Reviewable

Contacts contain multiple sub-resources, like tags. There can be a large
number of sub-resources attached to one contact, but only a subset are
included when fetching a contact from Intercom's API. For example, only
the first 10 tags are included in a contact. To get all sub-resources,
the connector would need to make an additional request to fetch them
then hydrate the contact with the full set of sub-resources.

This commit adds this hydration functionality for tags within a contact.
There are other possible sub-resources that we could hydrate (notes,
companies, opted_out_subscription_types, etc.), but users are only
asking about tags right now. So I'm only adding functionality for tags.
Adding support for hydrating other sub-resources should be fairly
straightforward if we need to do so later.
@Alex-Bair Alex-Bair marked this pull request as ready for review February 28, 2025 17:09
Copy link
Member

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

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

LGTM

@Alex-Bair Alex-Bair merged commit d6cd897 into main Feb 28, 2025
84 of 89 checks passed
@Alex-Bair Alex-Bair deleted the bair/source-intercom-native-hydrate-contacts-with-all-tags branch February 28, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants