-
Notifications
You must be signed in to change notification settings - Fork 1
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
2116: improve resilience of posthog integration #152
2116: improve resilience of posthog integration #152
Conversation
@rhysyngsun I don't understand why
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks OK and the automated tests pass. Have a couple small things that need looking at (just docs) but should be OK after that - these are just doc things so no don't think it requires a re-review.
src/mitol/olposthog/README.md
Outdated
#### Retrieve all feature flags from Posthog | ||
You can retrieve all the feature flags from Posthog using: | ||
``` | ||
from mitol.olposthog.features import is_enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small thing - import needs to be updated
@@ -0,0 +1,34 @@ | |||
.. A new scriv changelog fragment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small thing - should this have a log entry?
What are the relevant tickets?
mitodl/mitxonline#2116
Description
Defines the generic Posthog functionality found in MITx Online and MIT Open to ol-django. This ol-django functionality will later be imported into MIT Open and MITx Online in order to reduce redundant code across our applications.
How can this be tested?
You can use this MITx Online branch to test the functionality provided by this PR: https://github.com/mitodl/mitxonline/tree/ol-django-posthog
Test setup
You will need to perform the following steps in order to test this PR using the MITx Online branch above.
pants package "src/mitol/olposthog:"
docker-compose run -u root --rm web poetry add ./mitol-django-olposthog-2024.4.16.tar.gz
.docker-compose run -u root --rm web poetry install
.docker-compose build
.docker-compose up
.POSTHOG_ENABLED=True
is defined in your .env file.POSTHOG_ENABLED=False
is defined in your .env file.