mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 12:21:02 +01:00
a860da9e90
* Add migration marking existing columns as materialized with a comment * Add method to allow looking up materialized columns * Add test for fetching and creating materialized columns * Disable caching in tests * Remove some callsites to CLICKHOUSE_DENORMALIZED_PROPERTIES * Fixup caching logic * Add (currently broken) test for denormalizing person properties * Update funnel event query to work with new functionality * Update other tests/queries * Remove now-unused setting
30 lines
1.0 KiB
Python
30 lines
1.0 KiB
Python
"""
|
|
Django settings for PostHog Enterprise Edition.
|
|
"""
|
|
import os
|
|
from typing import Dict, List
|
|
|
|
from posthog.constants import RDBMS
|
|
from posthog.settings import PRIMARY_DB, TEST
|
|
|
|
# Zapier REST hooks
|
|
HOOK_EVENTS: Dict[str, str] = {
|
|
# "event_name": "App.Model.Action" (created/updated/deleted)
|
|
"action_defined": "posthog.Action.created_custom",
|
|
"action_performed": "posthog.Action.performed",
|
|
"annotation_created": "posthog.Annotation.created_custom",
|
|
}
|
|
HOOK_FINDER = "ee.models.hook.find_and_fire_hook"
|
|
HOOK_DELIVERER = "ee.models.hook.deliver_hook_wrapper"
|
|
|
|
# Social auth
|
|
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = os.getenv("SOCIAL_AUTH_GOOGLE_OAUTH2_KEY")
|
|
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = os.getenv("SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET")
|
|
if "SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS" in os.environ:
|
|
SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS: List[str] = os.environ[
|
|
"SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS"
|
|
].split(",")
|
|
|
|
# ClickHouse and Kafka
|
|
KAFKA_ENABLED = PRIMARY_DB == RDBMS.CLICKHOUSE and not TEST
|