0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/ee/clickhouse/models/test
Eric Duong bb9b6b42f2
Engagement cohorts (#4510)
* add migration

* add fields

* remove comment

* change to is_deleted

* Update migration to work

* Update tests

* initial functions

* fix params

* add migration

* add named param

* working test

* update person prop and cohort tests

* use var

* move sql and fstring

* remove get inside django signal

* just create the table

* add replication logic

* add param

* change replacing name

* refactor and add event based cohorts

* add type

* add to model

* add test for event_id

* move sql

* add sql

* make sure actions work too and add test

* add ability to create cohort by event count

* glob match cypress cache

* fix type

* fix type

* refactor and add datetime support

* fix ordering issue in test

* add timestamp test

* fix type

* fix more types

* use var resolution

* add operators

* add necessary filter and test

* add call for calculating cohort on create

* add triggers to oncreate and onupdate

* breakup test and remove repeated subquery

Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-11 13:59:57 -04:00
..
__init__.py
test_action.py
test_cohort.py Engagement cohorts (#4510) 2021-06-11 13:59:57 -04:00
test_element.py
test_filters.py
test_plugin_log_entry.py
test_property.py