0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
Commit Graph

7 Commits

Author SHA1 Message Date
Eric Duong
c40a0716ce
Insight session entities (#3582)
* Fix session tests

* fix sesisons test

* add postgres functionality

* clickhouse logic

* fix test

* fix pg test

* fix type

* add default condition

* change prompt

* make prompt better

* fix test

* add or tag

Co-authored-by: Tim Glaser <tim@glsr.nl>
2021-03-29 16:03:20 -04:00
Tim Glaser
268d9929dc
Fix session tests (#3580)
* Fix session tests

* fix sesisons test
2021-03-05 12:26:54 +01:00
Eric Duong
fcf7c98311
remove unnecessary group bys in query (#3562) 2021-03-03 10:14:09 -05:00
Karl-Aksel Puulmann
e3bf0cb31d
Session recording on clickhouse, separate tables and retention cronjob (#2051)
* Add scheduled task to wipe session recordings

* Create a new table for session recording

* Save snapshot events to different table

* Use SessionRecordingEvent over Events everywhere

We can remove a ton of cruft this way as well

* Add missing signature

* Extract util from models/event

* Attempt to update ingest side of clickhouse session recording events

Note that it's using main kafka topic - not sure if a good idea.

* Get separate table in ch working for session recording events

* WIP: query sessions

* Make both session recording queries work

* Make linter happy

* Rebase migration

* Make tests work

* Apply a TTL to session recordings and other configuration:

- toYYYYMMDD partitioning should be smoother with TTL setup
- TTL achieves not needing to archive the data ourselves
- index_granularity will enable smaller reads per session_id
- ORDER BY clause is to make single session as well as time range query
  reasonable

* Convert retention cronjob to new model

* Add tests to process_event changes

* Add test for ee_capture change

* Fixup migration

* Make clickhouse tests drop/create session recording tables

* Make TTL not be there in tests

Otherwise writes get eaten by it during tests when mocking time

* Fix retention task

Co-authored-by: Tim Glaser <tim@glsr.nl>
2020-10-28 21:22:16 +01:00
Eric Duong
0b5bb1ad74
add filter on noisy events (#1988) 2020-10-22 09:46:01 -04:00
Eric Duong
9057549ca3
remove unneeded properties on query (#1984) 2020-10-22 09:18:38 -04:00
Eric Duong
cecb7510b8
General Reorganization (#1981)
* small tweaks and reorganize session queries

* move all queries to query folder
2020-10-22 07:35:57 -04:00