Skip to content

fix: let a caller $process_person_profile override the personless option - #911

Merged
turnipdabeets merged 1 commit into
fix/v4-v1-rubric-followupsfrom
fix/v4-person-processing-caller-wins
Oct 29, 2026
Merged

turnipdabeets merged 1 commit into
fix/v4-v1-rubric-followupsfrom
fix/v4-person-processing-caller-wins

Conversation

@turnipdabeets

Copy link
Copy Markdown
Contributor

💡 Motivation and Context

#905 made the SDK add process_person_profile: false even when a passed or registered $process_person_profile property was set, following one sentence in the draft capture v1 spec (PostHog/sdk-specs#146: "an option set by any layer wins over a legacy property set by any layer"). That contradicts the client property precedence already on sdk-specs main (PostHog/sdk-specs#143), where a caller $process_person_profile: true with person profiles never keeps true — the case the review bot flagged on #903.

This reverts only the person-processing half of #905: a non-null legacy property, passed or registered, again stops the SDK from adding its personless option, and the send hoists the property into the option. The 2xx-without-results half of #905 stays. It also fixes JS fatal crashes from identified users arriving personless through the React Native plugin.

The spec sentence is being raised on PostHog/sdk-specs#146.

💚 How did you test it?

📝 Checklist

  • All commits are signed (see Commit signing)
  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

If releasing new changes

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

🤖 Generated with Claude Code

…ption

Reverts the person-processing half of #905. A passed or registered
`$process_person_profile` property again stops the SDK from adding
`process_person_profile: false` when person processing is off, so the
caller wins, as the client property precedence in sdk-specs `capture`
(#143) requires. The send still hoists the property into the option.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@turnipdabeets turnipdabeets self-assigned this Oct 29, 2026
@turnipdabeets
turnipdabeets requested a review from a team as a code owner October 29, 2026 19:18
@turnipdabeets

Copy link
Copy Markdown
Contributor Author

Moved onto #903 directly (e40f08b), since #905 was merged there.

@turnipdabeets
turnipdabeets merged commit e40f08b into fix/v4-v1-rubric-followups Oct 29, 2026
11 checks passed
@turnipdabeets
turnipdabeets deleted the fix/v4-person-processing-caller-wins branch October 29, 2026 19:18
@turnipdabeets

Copy link
Copy Markdown
Contributor Author

Pushed onto #903 directly (e40f08b), since #905 was merged there; GitHub then marked this merged.

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.

1 participant