Repository navigation
fix(intercom): revert keeping mapped external_id with email in rETL v2 (#5735) - #5738
Conversation
#5735) This reverts commit 0cf9dd7 from the v1.166.0 release. #5735 sends the mapped traits.external_id alongside email in the Intercom v2 rETL identify payload, but searchContact still ignores traits.external_id when email is present. A contact that already owns that external_id can then be missed and a new contact POSTed instead of updating it. Restore the #5730 behaviour (email present: external_id is not sent, so search and payload stay email-based). The INT-7442 fix for records without email is kept. #5735 will be re-landed together with the searchContact change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
There was a problem hiding this comment.
🟢 Approval recommended
The narrow rollback matches the release scope, preserves mapped external IDs without email, and has no identified blocking issues.
No open issues 🎉
What changed in this PR
Reverts #5735 for the v1.166.0 release, restoring Intercom v2 rETL identify payloads to match the existing contact lookup behavior while preserving the no-email fix from #5730.
Changes:
- Omit mapped
external_idwhen email is present; retain it otherwise, withuser_idas fallback. - Restore the email-present test expectation and remove the three tests introduced by #5735.
| File | Description |
|---|---|
test/integrations/destinations/intercom/processor/validationTestData.ts |
Removes the validation case added by #5735. |
test/integrations/destinations/intercom/processor/identifyTestData.ts |
Restores the email-only payload expectation and removes two added cases. |
src/cdk/v2/destinations/intercom/procWorkflow.yaml |
Restores the external ID assignment from #5730. |
Review effort: Balanced
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/v1.166.0 #5738 +/- ##
=================================================
Coverage 92.40% 92.40%
=================================================
Files 737 737
Lines 40859 40859
Branches 9591 9587 -4
=================================================
Hits 37754 37754
Misses 2844 2844
Partials 261 261 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
#5735 was reverted from the release in #5738 after the changelog was generated, so it does not ship in v1.166.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
#5735 was reverted from the release in #5738 after the changelog was generated, so it does not ship in v1.166.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
## What are the changes introduced in this PR? Removes the #5735 entry from the v1.166.0 section of `CHANGELOG.md`. The changelog was generated in `chore(release): v1.166.0` before #5735 was reverted from the release in #5738, so it still listed #5735 as shipping. With the revert, nothing from #5735 ships in v1.166.0. Replaces #5740, whose commit message failed commitlint (`footer-max-line-length`: a body line starting with `#5735` is parsed as a footer). Same change, reworded commit message. ## What is the related Linear task? Related to INT-7442 ## Please explain the objectives of your changes below Keep the v1.166.0 changelog accurate. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? N/A — changelog only. ### Any new dependencies introduced with this change? N/A ### Any new generic utility introduced or modified. Please explain the changes. N/A ### Any technical or performance related pointers to consider with the change? N/A <hr> ### Developer checklist - [x] My code follows the style guidelines of this project - [x] **No breaking changes are being introduced.** - [x] All related docs linked with the PR? - [x] All changes manually tested? - [ ] Any documentation changes needed with this change? - [x] Is the PR limited to 10 file changes? - [x] Is the PR limited to one linear task? - [ ] Are relevant unit and component test-cases added in **new readability format**? ### Reviewer checklist - [ ] Is the type of change in the PR title appropriate as per the changes? - [ ] Verified that there are no credentials or confidential data exposed with the changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)



What are the changes introduced in this PR?
Reverts #5735 from the v1.166.0 release (into
release/v1.166.0).#5735 made the Intercom v2 rETL identify payload keep a mapped
traits.external_ideven when email is present.searchContact, however, still only searches bytraits.external_idwhen email is absent; with email it searches by email (plus rootuserId). So the payload now carries anexternal_idthe search never looked for.Reproduced with failing component tests on
develop: for a rETL event withtraits.external_id+ email (withintegrations.INTERCOM.lookup: 'external_id'and without), the transformer POSTs a new contact instead of updating the contact that already owns thatexternal_id. Flagged by Copilot on #5736.This restores
procWorkflow.yamlexactly to the #5730 state:What is the related Linear task?
Related to INT-7442
Please explain the objectives of your changes below
Unblock the v1.166.0 release without shipping the search/payload mismatch. #5735 will be re-landed on
developtogether with asearchContactchange that searches by the mappedexternal_idwhen email is present.Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
Intercom v2 rETL identify with email present: the mapped
external_idis not sent again (as before #5735), so search and payload are both email-based. The INT-7442 fix from #5730 (no email: keep the mappedexternal_id) is unaffected. The three tests #5735 added are removed with it and come back with the re-land.Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
N/A
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.
Testing
5e56bbe233b).🤖 Generated with Claude Code