Skip to content

[JourneysVs] - add presets for new journey event emitter#3750

Draft
hema-segment wants to merge 9 commits into
mainfrom
PT-2876
Draft

[JourneysVs] - add presets for new journey event emitter#3750
hema-segment wants to merge 9 commits into
mainfrom
PT-2876

Conversation

@hema-segment
Copy link
Copy Markdown

A summary of your pull request, including the what change you're making and why.

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.

  • 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.

Security Review

Please ensure sensitive data is properly protected in your integration.

  • Reviewed all field definitions for sensitive data (API keys, tokens, passwords, client secrets) and confirmed they use type: 'password'

New Destination Checklist

  • Extracted all action API versions to verioning-info.ts file. example

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds new Journey “all triggers” event presets to select audience destinations, and updates @segment/actions-core to a newer @segment/action-emitters build that presumably introduces/supports the new event emitter.

Changes:

  • Bumps @segment/action-emitters in @segment/actions-core to 1.3.9-canary.0 (and updates yarn.lock accordingly).
  • Adds a new preset for journeys_step_all_triggers_track to TikTok Audiences, DV360, Facebook Custom Audiences, and Google Enhanced Conversions.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
yarn.lock Updates lockfile to include @segment/action-emitters@1.3.9-canary.0.
packages/core/package.json Pins @segment/action-emitters to a canary pre-release.
packages/destination-actions/src/destinations/tiktok-audiences/index.ts Adds a new “Journeys Step All Trigger” preset for the new Journey event slug.
packages/destination-actions/src/destinations/google-enhanced-conversions/index.ts Adds a new “Journeys Step All Trigger” preset (only for uploadCallConversion2).
packages/destination-actions/src/destinations/facebook-custom-audiences/presets.ts Adds a new “Journeys Step All Trigger” preset for the new Journey event slug.
packages/destination-actions/src/destinations/display-video-360/index.ts Adds a new “Journeys Step All Trigger” preset for the new Journey event slug.

Comment on lines +301 to 307
{
name: 'Journeys Step All Trigger',
partnerAction: 'uploadCallConversion2',
mapping: defaultValues(uploadCallConversion2.fields),
type: 'specificEvent',
eventSlug: 'journeys_step_all_triggers_track'
}
Comment thread packages/core/package.json Outdated
Comment thread packages/destination-actions/src/destinations/display-video-360/index.ts Outdated
Comment thread packages/destination-actions/src/destinations/tiktok-audiences/index.ts Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.11%. Comparing base (b93a98c) to head (e2ed5af).
⚠️ Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3750      +/-   ##
==========================================
+ Coverage   81.08%   81.11%   +0.03%     
==========================================
  Files        1655     1656       +1     
  Lines       32079    32120      +41     
  Branches     7070     7116      +46     
==========================================
+ Hits        26011    26055      +44     
+ Misses       5096     5092       -4     
- Partials      972      973       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@joe-ayoub-segment joe-ayoub-segment self-assigned this Apr 24, 2026
@joe-ayoub-segment joe-ayoub-segment changed the title add presets for new journey event emitter [JourneysVs] - add presets for new journey event emitter Apr 24, 2026
Copilot AI review requested due to automatic review settings April 26, 2026 14:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds presets to support the new Journeys event emitter (journeys_step_all_triggers_track) across select audience destinations, and updates the core @segment/action-emitters dependency to a newer version.

Changes:

  • Bumped @segment/action-emitters to 1.3.9 (and updated lockfile accordingly).
  • Added a new “Journeys Step All Triggers” preset for Facebook Custom Audiences and Google Enhanced Conversions.
  • Added TODO/commented-out presets for the same event in TikTok Audiences and Display & Video 360 (not yet enabled).

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
yarn.lock Updates resolved @segment/action-emitters version to 1.3.9.
packages/core/package.json Bumps @segment/action-emitters dependency to 1.3.9 (currently pinned).
packages/destination-actions/src/destinations/tiktok-audiences/index.ts Adds TODO/commented-out preset for journeys_step_all_triggers_track.
packages/destination-actions/src/destinations/google-enhanced-conversions/index.ts Adds an enabled preset for journeys_step_all_triggers_track.
packages/destination-actions/src/destinations/facebook-custom-audiences/presets.ts Adds an enabled preset for journeys_step_all_triggers_track.
packages/destination-actions/src/destinations/display-video-360/index.ts Adds TODO/commented-out preset for journeys_step_all_triggers_track.

Comment on lines +206 to +214
//TODO: uncomment this once the sync action is deployed
// https://github.com/segmentio/action-destinations/pull/3696/changes#diff-08e8fc99bc5b1d623022a7d1126485c0d0caf09a086c22e69a408cf8e9a4339e
// {
// name: 'Journeys Step All Triggers',
// partnerAction: 'syncAudience',
// mapping: defaultValues(syncAudience.fields),
// type: 'specificEvent',
// eventSlug: 'journeys_step_all_triggers_track'
// }
type: 'specificEvent',
eventSlug: 'journeys_step_entered_track'
}
//TODO: uncomment this once the sync action is deployed
Comment thread packages/core/package.json Outdated
"dependencies": {
"@lukeed/uuid": "^2.0.0",
"@segment/action-emitters": "^1.3.6",
"@segment/action-emitters": "1.3.9",
Comment on lines +205 to +213
//TODO: uncomment this once the tik tok changes are applied as part of
// https://github.com/segmentio/action-destinations/pull/3732/changes#diff-820724a64b4d01bee37a38690220879172da2720386b7c98cd1c06d86275792a
// {
// name: 'Journeys Step All Triggers',
// partnerAction: 'syncAudience',
// mapping: defaultValues(sync.fields),
// type: 'specificEvent',
// eventSlug: 'journeys_step_all_triggers_track'
// }
type: 'specificEvent',
eventSlug: 'journeys_step_entered_track'
}
//TODO: uncomment this once the tik tok changes are applied as part of
type: 'specificEvent',
eventSlug: 'journeys_step_entered_track'
}
//TODO: uncomment this once the tik tok changes are applied as part of
@joe-ayoub-segment
Copy link
Copy Markdown
Contributor

Still in draft - @hema-segment will let me know when this is to be reviewed.

Raghul Mukundan added 2 commits April 30, 2026 11:57
…dCallConversion2

The journeys_step_all_triggers_track preset should use the userList action
(audience membership sync) not uploadCallConversion2 (call conversions).
Copilot AI review requested due to automatic review settings April 30, 2026 19:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for a new Journeys event slug by updating the action emitter dependency and introducing new presets that subscribe to the new Journeys “all triggers” event in supported destinations.

Changes:

  • Bumps @segment/action-emitters to 1.3.12 (and updates yarn.lock accordingly).
  • Adds a new Journeys Step All Triggers preset for Google Enhanced Conversions and Facebook Custom Audiences.
  • Adds commented-out (TODO) preset stubs for TikTok Audiences and Display & Video 360.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
yarn.lock Updates lockfile to the newer @segment/action-emitters version.
packages/core/package.json Updates @segment/action-emitters dependency version.
packages/destination-actions/src/destinations/google-enhanced-conversions/index.ts Adds a Journeys Step All Triggers preset using journeys_step_all_triggers_track.
packages/destination-actions/src/destinations/facebook-custom-audiences/presets.ts Adds a Journeys Step All Triggers preset using journeys_step_all_triggers_track.
packages/destination-actions/src/destinations/tiktok-audiences/index.ts Adds a TODO/commented-out preset block for the new event.
packages/destination-actions/src/destinations/display-video-360/index.ts Adds a TODO/commented-out preset block for the new event.

"dependencies": {
"@lukeed/uuid": "^2.0.0",
"@segment/action-emitters": "^1.3.6",
"@segment/action-emitters": "1.3.12",
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

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

@segment/action-emitters is pinned to an exact version while the rest of this package’s dependencies use semver ranges. Unless there’s a specific reason to lock to exactly 1.3.12, consider switching back to a range (e.g., ^1.3.12) to receive patch/minor fixes and avoid unnecessary lockfile churn.

Suggested change
"@segment/action-emitters": "1.3.12",
"@segment/action-emitters": "^1.3.12",

Copilot uses AI. Check for mistakes.
Comment on lines +205 to +213
//TODO: uncomment this once the tik tok changes are applied as part of
// https://github.com/segmentio/action-destinations/pull/3732/changes#diff-820724a64b4d01bee37a38690220879172da2720386b7c98cd1c06d86275792a
// {
// name: 'Journeys Step All Triggers',
// partnerAction: 'syncAudience',
// mapping: defaultValues(sync.fields),
// type: 'specificEvent',
// eventSlug: 'journeys_step_all_triggers_track'
// }
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

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

This adds a commented-out preset with a TODO to “uncomment later”, but uncommenting it won’t work as-is: it references sync/syncAudience that aren’t defined/imported in this file, and the array would also need a comma separator before the new element. Prefer removing the commented-out block and landing the preset in the PR that introduces the required action (or at least track it via an issue without leaving dead code in the presets array).

Suggested change
//TODO: uncomment this once the tik tok changes are applied as part of
// https://github.com/segmentio/action-destinations/pull/3732/changes#diff-820724a64b4d01bee37a38690220879172da2720386b7c98cd1c06d86275792a
// {
// name: 'Journeys Step All Triggers',
// partnerAction: 'syncAudience',
// mapping: defaultValues(sync.fields),
// type: 'specificEvent',
// eventSlug: 'journeys_step_all_triggers_track'
// }

Copilot uses AI. Check for mistakes.
Comment on lines +206 to +214
//TODO: uncomment this once the sync action is deployed
// https://github.com/segmentio/action-destinations/pull/3696/changes#diff-08e8fc99bc5b1d623022a7d1126485c0d0caf09a086c22e69a408cf8e9a4339e
// {
// name: 'Journeys Step All Triggers',
// partnerAction: 'syncAudience',
// mapping: defaultValues(syncAudience.fields),
// type: 'specificEvent',
// eventSlug: 'journeys_step_all_triggers_track'
// }
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

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

This adds a commented-out preset with a TODO to “uncomment later”, but uncommenting it won’t work as-is: it references syncAudience that isn’t defined/imported or registered in this destination’s actions, and the presets array would need a comma separator before the new element. Prefer removing the commented-out block and landing the preset alongside the PR that adds the new action.

Suggested change
//TODO: uncomment this once the sync action is deployed
// https://github.com/segmentio/action-destinations/pull/3696/changes#diff-08e8fc99bc5b1d623022a7d1126485c0d0caf09a086c22e69a408cf8e9a4339e
// {
// name: 'Journeys Step All Triggers',
// partnerAction: 'syncAudience',
// mapping: defaultValues(syncAudience.fields),
// type: 'specificEvent',
// eventSlug: 'journeys_step_all_triggers_track'
// }

Copilot uses AI. Check for mistakes.
type: 'specificEvent',
eventSlug: 'journeys_step_entered_track'
}
//TODO: uncomment this once the tik tok changes are applied as part of
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

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

Nit: the comment says “tik tok”; please capitalize the brand consistently ("TikTok").

Suggested change
//TODO: uncomment this once the tik tok changes are applied as part of
//TODO: uncomment this once the TikTok changes are applied as part of

Copilot uses AI. Check for mistakes.
@joe-ayoub-segment
Copy link
Copy Markdown
Contributor

Hi @hema-segment
There's a few Copilot review comments to respond to.
I think it would make sense to actually upgrade the emitter version in this PR too - then you can uncomment your presets.

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.

3 participants