Skip to content

refactor(cdp): rename emailAssets to messageAssets - #75801

Merged
dmarchuk merged 1 commit into
dmarchuk/push-test-sends-skip-metricsfrom
dmarchuk/rename-email-assets-to-message-assets
Jul 31, 2026
Merged

refactor(cdp): rename emailAssets to messageAssets#75801
dmarchuk merged 1 commit into
dmarchuk/push-test-sends-skip-metricsfrom
dmarchuk/rename-email-assets-to-message-assets

Conversation

@dmarchuk

Copy link
Copy Markdown
Contributor

Problem

CyclotronJobInvocationResult.emailAssets now carries push rows as well as email ones. #74555 called this out as the one place the reuse leaks and left the rename out to keep that diff reviewable:

The one place reuse leaks is the field still called emailAssets on the invocation result, which now carries push rows too; renaming it to messageAssets is a mechanical follow-up left out to keep this diff reviewable.

This is that follow-up. The underlying table, service and row type are already channel-agnostic (message_assets, MessageAssetsService, MessageAssetRow), so the field name was the last thing still claiming email.

Changes

Pure rename, emailAssets to messageAssets, across 17 files. No behavior change: the field is renamed at its declaration, at every producer and consumer, and in the tests.

messageAssetsService (the service handle on PushNotificationService and EmailService) is a different identifier and is untouched.

How did you test this code?

Mechanical, so the check is that nothing else moved:

  • 0 occurrences of emailAssets remain in nodejs/src; 56 of messageAssets.
  • tsc --noEmit adds no new errors versus the base branch. Both report the same 7 pre-existing @posthog/replay-anonymizer module-resolution errors from an unbuilt local package.
  • jest src/cdp/services/messaging src/cdp/services/hogflows src/cdp/utils - 658 passing. The 2 failures are the maildev-backed email tests, which fail identically on the base branch without a maildev container and pass in CI.

No test was added: a rename with no behavior change has no regression to catch that the type checker doesn't already catch.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Docs update

None needed. The field is internal to the invocation result and not part of any documented surface.

🤖 Agent context

Autonomy: Human-driven (agent-assisted). Directed by @dmarchuk, assigned as DRI.

Stacked on #75800, which is stacked on #74555. Kept last in the stack deliberately: a mechanical sweep should come after the semantic changes so it picks them up, rather than forcing them to rebase across a rename.

@dmarchuk
dmarchuk force-pushed the dmarchuk/push-test-sends-skip-metrics branch from 96d5bd2 to ffffc62 Compare July 31, 2026 08:17
@dmarchuk
dmarchuk force-pushed the dmarchuk/rename-email-assets-to-message-assets branch 2 times, most recently from 33c6a3f to dacb1d7 Compare July 31, 2026 08:53
@dmarchuk
dmarchuk force-pushed the dmarchuk/push-test-sends-skip-metrics branch from 7835edf to 3f667e1 Compare July 31, 2026 09:45
@dmarchuk
dmarchuk force-pushed the dmarchuk/rename-email-assets-to-message-assets branch from dacb1d7 to e64da88 Compare July 31, 2026 09:47
@dmarchuk
dmarchuk marked this pull request as ready for review July 31, 2026 09:49
@pr-assigner-resolver-posthog
pr-assigner-resolver-posthog Bot requested a review from a team July 31, 2026 09:50
@greptile-apps

greptile-apps Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "refactor(cdp): rename emailAssets to mes..." | Re-trigger Greptile

@dmarchuk
dmarchuk merged commit 4c15a55 into dmarchuk/push-test-sends-skip-metrics Jul 31, 2026
274 checks passed
@dmarchuk
dmarchuk deleted the dmarchuk/rename-email-assets-to-message-assets branch July 31, 2026 10:53
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