* Publish events to Kafka for consumption
* Commit avro idl's for event schemas
* convert client to use github.com/dpkp/kafka-python
* events loaded into clickhouse from Kafka
* remove cruft
* Publish events to Kafka for consumption
* convert client to use github.com/dpkp/kafka-python
* remove cruft
* include kafka migrations
* bugfixes for migrations
* use constants for consistency
* wrap up local migrations
* small fixes
* tune ups
* generate clickhouse uuid script
* set CLICKHOUSE_SECURE=False by default if running in TEST or DEBUG
* convert person_id to UUID, make adding `person_id` optional, add distinct_ids already in the `create_person` function
* Fix test_process_event_ee.py, remove all calls to Person.objects.*
* add back util
* fix broken imports
* improve process_event test clickhouse queries
* change property parsing
* indentation wrong missing calls
* uuid4 instead of call to CH
Co-authored-by: Eric <eeoneric@gmail.com>
Co-authored-by: James Greenhill <fuziontech@gmail.com>
* Add tests for FOSS
* Ignore ee specific tests
* Exclude more ee only tests
* conditional tests, nice
* Add ee_available to settings
* fix test
* Fix test
* Test commit
* Fix test again
* Remove EE_MISSING in favor of EE_AVAILABLE completely
* Rename bottom-notice.html to overlays.html, to better reflect purpose
* Add greeting
* Fix ee import
Co-authored-by: Michael Matloka <dev@twixes.com>
* Make trailing slash optional in DRF endpoints
* Update tests
* Make authenticate_secondarily a util
* Use @authenticate_secondarily in /decide
* Add API-specific 404 error and improve URLs
* Update tests
* Don't use @authenticate_secondarily in /decide
* Update urlpatterns
* Update test_user.py
* fixed formatting
* minor changes to tests and _ endpoints
Co-authored-by: Yakko Majuri <yakko.majuri@gmail.com>
* Final ClickHouse module before wiring up to Posthog
* convert private functions to public for ee access
* Fix mypy error
* fix up a few typos breaking tests
* Add statsd to celery tasks and add task to monitor queue size
* no type checking for statsd lib
* Don't complain about statsd not being around if it's not there
* fix: handle the case of invalid json gracefully
This changes the behaviour how invalid json is handled in the `/decide`-endpoint instead of failing hard by throwing a 500 internal server error it instead will throw a 400 Bad Request error instead to make the Developer Experience better
fixes #1576
* set JSON error to POST req only
* improved json error handling
* removed unused Tuple import
Co-authored-by: Weyert de Boer <weyert.deboer@tapico.io>
Co-authored-by: Yakko Majuri <yakko.majuri@gmail.com>