0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:17:50 +01:00
posthog/plugin-server/tests
Michael Matloka 7bd3cac2f5
refactor(plugin-server): Unify event types (#10612)
* Simplify Event, ClickHouseEvent, PreIngestionEvent, IngestionEvent

* Unify `ClickhouseEventKafka` with `RawEvent`

* Fix imports

* Eliminate PostgresSessionRecordingEvent

* Parse `Event.elements_chain` too

* Update process-event.test.ts

* Update tests

* Make `IngestionEvent['timestamp']` consistent

* Update tests

* Restore `PreIngestionEvent` vs. `PostIngestionEvent` split

* Update worker.test.ts

* Improve typing a bit

* Update tests to work with mandatory `DateTime`

* Remove ClonableIngestionEvent

* Rename RawEvent -> RawClickHouseEvent

* Rename Event -> ClickHouseEvent

* Update prepareEventStep tests

* Update convertToIngestionEvent behavior back to master

* Update tests to compile

* Use branded types for ISO/Clickhouse timestamp string disambiguation

* Test for parseRawClickHouseEvent()

* Update each-batch tests

* Tests for clickHouseTimestampToDateTime()

Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2022-08-15 10:54:09 +03:00
..
assets
helpers chore: nuke protobuf fully (#10932) 2022-08-03 15:41:44 +02:00
main refactor(plugin-server): Unify event types (#10612) 2022-08-15 10:54:09 +03:00
utils refactor(plugin-server): Unify event types (#10612) 2022-08-15 10:54:09 +03:00
worker refactor(plugin-server): Unify event types (#10612) 2022-08-15 10:54:09 +03:00
config.test.ts
e2e.buffer.test.ts
e2e.test.ts fix(autocapture): ensure $elements passed to onEvent (#10880) 2022-07-20 14:33:32 +01:00
e2e.timeout.test.ts
errors.test.ts
http-server.test.ts
jobs.test.ts feat: (bring back) buffer 3.0 again (#10896) 2022-07-20 12:16:13 +00:00
multi-process-server.test.ts refactor(plugin-server): Unify event types (#10612) 2022-08-15 10:54:09 +03:00
queue.test.ts Revert "chore(dev): use network mode host for docker-compose services (#10917)" (#10926) 2022-07-22 10:25:59 +01:00
schedule.test.ts
server.test.ts feat: (bring back) buffer 3.0 again (#10896) 2022-07-20 12:16:13 +00:00
sql.test.ts perf(plugin-server): speed up getPluginConfigRows (#10952) 2022-07-25 16:27:18 +03:00
utils.test.ts refactor(plugin-server): Unify event types (#10612) 2022-08-15 10:54:09 +03:00