0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/frontend/src
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
..
layout Put organization switcher under user (#2005) 2020-10-28 15:21:10 +01:00
lib Session recording on clickhouse, separate tables and retention cronjob (#2051) 2020-10-28 21:22:16 +01:00
models Dashboard templates & first default dashboard (#1942) 2020-10-28 11:41:24 +00:00
scenes Improved settings for session recording (#2066) 2020-10-28 18:25:28 +01:00
style Fix events overlay (#1922) 2020-10-19 10:52:49 +01:00
toolbar Fix typescript errors #1 (#2027) 2020-10-27 09:57:06 +01:00
globals.d.ts Add types to window.posthog (#2012) 2020-10-23 17:09:36 +03:00
index.html Session recording: persistent URLs, session_id, UI changes (#1953) 2020-10-23 16:53:59 +03:00
index.tsx Fix typescript errors #1 (#2027) 2020-10-27 09:57:06 +01:00
initKea.tsx Add Typescript Support (#1157) 2020-07-08 09:45:23 +02:00
layout.ejs Add tests for FOSS (#1600) 2020-09-10 18:20:29 +02:00
shared_dashboard.ejs Fix SyntaxError on chrome (#1882) 2020-10-14 15:10:43 +01:00
style.scss Add ability to reset project API token (#2015) 2020-10-26 11:30:24 +01:00
types.ts Improved settings for session recording (#2066) 2020-10-28 18:25:28 +01:00