mitodl / mitxonline

BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Add ol-django olposthog app #2211

Closed collinpreston closed 3 months ago

collinpreston commented 3 months ago

What are the relevant tickets?

https://github.com/mitodl/mitxonline/issues/2116

Description (What does it do?)

Adds the ol-django olposthog app to MITx Online in order to centralize Posthog functionality between Open Learning applications.

Adds two new environment variables for controlling Posthog API requests: POSTHOG_FEATURE_FLAG_REQUEST_TIMEOUT_MS POSTHOG_MAX_RETRIES

Renamed POSTHOG_API_TOKEN to POSTHOG_PROJECT_API_KEY. Renamed IN_TEST_SUITE to POSTHOG_ENABLED. https://docs.google.com/document/d/1W7jYty8HjkaYxSFXoUMF9ZYTOp8eJ4ssmINfgLhQ61Q/edit#heading=h.33ix6lloihnq

How can this be tested?

  1. Posthog feature flags and associated functionality should still perform as they previously did.