Skip to content

fix: feature flag request use geoip_disable #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2025
Merged

Conversation

orian
Copy link
Contributor

@orian orian commented May 22, 2025

it incorrectly used disable_geoip

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.

PR Summary

Fixed parameter name mismatch in feature flag requests from disable_geoip to geoip_disable to align with server expectations for controlling GeoIP lookups.

  • Changed parameter name in get_flags_decision method's request_data dictionary in posthog/client.py
  • Parameter controls whether GeoIP lookups are disabled when making feature flag decisions
  • No functional changes, only aligns parameter naming with server API expectations

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@orian orian requested a review from a team May 26, 2025 18:40
Copy link
Contributor

@dmarticus dmarticus left a comment

Choose a reason for hiding this comment

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

ouch, thanks for fixing!

We should probably just rename that field everywhere so it's consistent but not a blocker for this change IMO.

it incorrectly used disable_geoip
@orian
Copy link
Contributor Author

orian commented May 27, 2025

Changing it (102 places) everywhere breaks API backward compatibility and would require some more hacking around, not worth to break it.

@orian orian force-pushed the pawel/fix/geoip-disable branch from 797d050 to 95b9993 Compare May 27, 2025 08:15
@orian orian merged commit da69b68 into master May 27, 2025
6 checks passed
@orian orian deleted the pawel/fix/geoip-disable branch May 27, 2025 08:18
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