Skip to content

Conversation

@igormq
Copy link
Contributor

@igormq igormq commented Jan 22, 2026

Summary

  • The server module's PostHogConfig was missing the evaluationContexts property that exists in the core PostHogConfig
  • This meant that even when users set evaluationContexts in their server config, it wasn't being propagated to the core config and therefore wasn't sent in /flags API requests
  • Adds evaluationContexts property to server PostHogConfig constructor
  • Propagates evaluationContexts to core config in asCoreConfig()
  • Adds evaluationContexts() method to the Builder class

Split from original PR addressing contributor feedback to keep changes focused.

The server module's PostHogConfig was missing the evaluationContexts
property that exists in the core PostHogConfig. This meant that even
when users set evaluationContexts in their server config, it wasn't
being propagated to the core config and therefore wasn't sent in
/flags API requests.

This change:
- Adds evaluationContexts property to server PostHogConfig constructor
- Propagates evaluationContexts to core config in asCoreConfig()
- Adds evaluationContexts() method to the Builder class
dustinbyrne
dustinbyrne previously approved these changes Jan 22, 2026
Copy link
Contributor

@dustinbyrne dustinbyrne left a comment

Choose a reason for hiding this comment

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

Looks good

@dustinbyrne dustinbyrne dismissed their stale review January 22, 2026 20:40

Missed this initially - but can you add a CHANGELOG entry for this?

@igormq igormq requested a review from dustinbyrne January 23, 2026 01:07
@igormq
Copy link
Contributor Author

igormq commented Jan 23, 2026

done @dustinbyrne

Copy link
Contributor

@dustinbyrne dustinbyrne left a comment

Choose a reason for hiding this comment

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

Thanks again @igormq!

@dustinbyrne dustinbyrne merged commit 20e529a into PostHog:main Jan 23, 2026
12 checks passed
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