Skip to content

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.

3 participants