Repository navigation
fix(analytics): emit signup email and timestamp together (OSS-14856) - #1042
Merged
Merged
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
malhotra5
marked this pull request as ready for review
October 27, 2026 19:58
malhotra5
requested review from
a team and
hieptl
and removed request for
a team
October 27, 2026 19:58
neubig
approved these changes
Oct 28, 2026
Contributor
|
🚀 Released in 1.81.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HUMAN:
AGENT:
Why
The PostHog-to-HubSpot signup upsert currently subscribes to all
$setevents because the signup timestamp and email are emitted separately. An earlier attempt to filter by person properties at the destination suppressed all runs. The destination is now disabled while this change prepares an event-local signup payload.Summary
signed_up_atin the same consent-gatedset_person_propertiescall at TOS acceptance.Issue Number
OSS-14856
How to Test
uv run pytest -q tests/unit/server/routes/test_auth_onboarding.py tests/unit/test_analytics_service.py tests/unit/server/routes/test_idp.py(240 passed locally).$setevent should contain both$set.emailand$set.signed_up_at. When the user has no email, only the signup timestamp should be sent.Video/Screenshots
Not applicable: backend-only event payload change; covered by route and analytics tests.
Type
Notes
The production HubSpot upsert destination remains disabled. Do not re-enable it on merge: first validate the emitted event in production, configure and test an event-local signup filter, and verify a test contact reaches HubSpot without restoring high run volume. This PR does not change PostHog configuration.
This PR was created by an AI agent (OpenHands) on behalf of the user.
Enterprise server image for this PR: