docs: Update server SDK feature flag examples#16702
Draft
dustinbyrne wants to merge 1 commit intodocs/python-evaluate-flags-canonicalfrom
Draft
docs: Update server SDK feature flag examples#16702dustinbyrne wants to merge 1 commit intodocs/python-evaluate-flags-canonicalfrom
dustinbyrne wants to merge 1 commit intodocs/python-evaluate-flags-canonicalfrom
Conversation
Contributor
Deploy preview
Push a fix or re-run the workflow to try again. Common culprits
|
Contributor
|
Vale prose linter → found 7 errors, 225 warnings, 27 suggestions in your markdown Full report → · Copy the Job Summary code block into an LLM to batch-fix issues.
|
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.
Changes
evaluate_flagsAPI #16684 and updates server SDK feature flag docs to use the new snapshot-style APIs as the canonical path:evaluateFlags()EvaluateFlags()evaluate_flags()withenabled?/get_flagevaluateFlags()EvaluateFlagsAsync()PostHog.FeatureFlags.evaluate_flags/2evaluate_flags()evaluateFlags()sendFeatureFlags,send_feature_flags,SendFeatureFlags,appendFeatureFlags) with passing evaluated snapshots to captures/events.Validation: ran
git diff --check.Notes for review:
enabled?()rather thanis_enabled().PostHog.FeatureFlags.set_in_context(snapshot)rather than acapture(flags: ...)argument.OnlyAccessed()falls back to all flags if called before any access; the docs avoid the empty-snapshot warning language used by other SDKs.Checklist
vercel.json