Repository navigation
feat(facebook_lead_ads_native): include custom disclaimer responses in hydrated leads - #5790
Conversation
|
👋 I'm rudder-devbox. I opened this PR from task Mention |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
…d form field - Request Graph's default lead fields (created_time, id, ad_id, form_id) alongside field_data and custom_disclaimer_responses, since an explicit fields param replaces the defaults. - Override a same-named form field with Meta's disclaimer responses only when Meta actually returns them. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
|
I traced the failure to Intercom’s live search: This is intermittent Intercom indexing, unrelated to the Facebook Lead Ads changes. I could not fix the external search delay from this workspace, so I made no code change or push. The failed live job needs a rerun. |
## What are the changes introduced in this PR? The Intercom live test's setup steps wait until the transform's compound contact search can find a newly created contact. The wait was 45 × 4s (~3 min), and Intercom occasionally takes longer to index, failing `intercom-v2-identify-update` on unrelated PRs (e.g. run 43918191050 on #5790). - Poll attempts: 45 → 75 (~5 min) - Setup step timeout: 240000 → 360000 ms via `SEARCH_WAIT_TIMEOUT_MS`, applied to both setup steps that use `waitForTransformSearch` ## What is the related Linear task? N/A ## Please explain the objectives of your changes below Reduce flakiness in `live (intercom)` caused by Intercom search-index lag. Test-only change. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? N/A ### 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? A slow run takes up to ~2 min longer; the live job's 30-min timeout still has room. <hr> ### Developer checklist - [x] My code follows the style guidelines of this project - [x] **No breaking changes are being introduced.** - [ ] All related docs linked with the PR? - [ ] All changes manually tested? 🤖 Generated with [Claude Code](https://claude.com/claude-code)



What are the changes introduced in this PR?
Request
field_data,custom_disclaimer_responsesfrom Meta and copy a nonempty disclaimer array unchanged into hydrated identify traits. Omit absent, null, empty, or malformed disclaimer values; warn on malformed shapes while preserving other lead traits.What is the related Linear task?
Resolves RUD-3481
Please explain the objectives of your changes below
Preserve existing lead contact data while making Meta’s checkbox consent record available to downstream destinations. The companion event-structure documentation change is required in
rudder-hugoand is not included in this repository.Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
Graph requests now name both fields explicitly because
fieldsreplaces Meta’s defaults. Only Meta’s nonempty dedicated disclaimer array can populate the disclaimer trait, including when incoming traits or a form field share its name.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?
Before rollout, compare one real lead’s Graph response with and without
fields=field_data,custom_disclaimer_responsesto confirm identicalfield_dataand the disclaimer shape. No lead ID or page token was available for that check. Destination Live Events verification is also pending.Validation
npm run lint— passed.npm test -- --testPathPattern="facebook_lead_ads_native/hydrate.test.ts" --no-coverage --runInBand— passed, 26 tests.npm run test:ts -- component --source=facebook_lead_ads_native --runInBand— passed, 12 tests.npm run build:testandnpm run build:ci— passed.git diff --check— passed.Developer checklist
rudder-hugoedit is prepared; its PR link is pending.rudder-hugo.Reviewer checklist
fields=field_data,custom_disclaimer_responsesremains a prerequisite before rollout; no lead ID or page token was available.rudder-hugo; coordinate publication with the transformer change.Adversarial self-review surfaced findings that were not auto-fixed. Each carries its disposition — please evaluate before merging.
src/sources/facebook_lead_ads_native/hydrate.ts:84— not auto-fixed (iteration budget exhausted)