Skip to content

Conversation

@mohamedzair
Copy link

Description:
This PR adds a DeprecationWarning to get_feature_flag_payload.

Reasoning:
As discussed in issue PostHog/posthog#43520, this method retrieves data without emitting a usage event, confusing users.

Fixes: PostHog/posthog#43520

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Additional Comments (1)

  1. posthog/client.py, line 1831-1836 (link)

    logic: Missing test coverage for the deprecation warning. Add a test using assertWarns to verify the warning is raised when get_feature_flag_payload is called.

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

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.

chore(sdks): Normalize handling of feature flag payloads.

1 participant