pythonprobr / pythonpro-website

GNU Affero General Public License v3.0
61 stars 63 forks source link

Update posthog to 2.0.1 #4714

Closed pyup-bot closed 2 years ago

pyup-bot commented 2 years ago

This PR updates posthog from 1.4.8 to 2.0.1.

Changelog ### 2.0.1 ``` - Make poll_interval configurable - Add `send_feature_flag_events` parameter to feature flag calls, which determine whether the `$feature_flag_called` event should be sent or not. - Add `only_evaluate_locally` parameter to feature flag calls, which determines whether the feature flag should only be evaluated locally or not. ``` ### 2.0.0 ``` Breaking changes: 1. The minimum version requirement for PostHog servers is now 1.38. If you're using PostHog Cloud, you satisfy this requirement automatically. 2. Feature flag defaults apply only when there's an error fetching feature flag results. Earlier, if the default was set to `True`, even if a flag resolved to `False`, the default would override this. 3. Feature flag remote evaluation doesn't require a personal API key. New Changes: 1. You can now evaluate feature flags locally (i.e. without sending a request to your PostHog servers) by setting a personal API key, and passing in groups and person properties to `is_feature_enabled` and `get_feature_flag` calls. 2. Introduces a `get_all_flags` method that returns all feature flags. This is useful for when you want to seed your frontend with some initial flags, given a user ID. ``` ### 1.4.9 ``` - Support for sending feature flags with capture calls ```
Links - PyPI: https://pypi.org/project/posthog - Changelog: https://pyup.io/changelogs/posthog/ - Repo: https://github.com/posthog/posthog-python
codecov[bot] commented 2 years ago

Codecov Report

Merging #4714 (0496622) into master (31546df) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4714   +/-   ##
=======================================
  Coverage   92.35%   92.35%           
=======================================
  Files         238      238           
  Lines        6739     6739           
=======================================
  Hits         6224     6224           
  Misses        515      515           

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

pyup-bot commented 2 years ago

Closing this in favor of #4735