0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
Commit Graph

13 Commits

Author SHA1 Message Date
Michael Matloka
313226838c
revert: revert: Revert person properties updates refactor (#10349)
* Revert "revert: Revert person properties updates refactor (#10348)"

This reverts commit 6b3c4691b3.

* sanitizeEvent -> normalizeEvent

* Ensure we handle property updates from within plugins, test

Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2022-06-20 09:49:11 +03:00
Neil Kakkar
6b3c4691b3
revert: Revert person properties updates refactor (#10348) 2022-06-17 17:48:20 +02:00
Karl-Aksel Puulmann
d6ec3aedc6
refactor(plugin-server): person state updating (#10321)
* Remove some excessive call signatures

* refactor: move property sanitization outside of .capture

* Move event sanitization into event sanitization logic

* Move person creation/updating logic outside of capture/createSnapshot

* refactor: remove personManager from arguments

* refactor: remove various properties from arguments

* Update `handleIdentifyOrAlias` signature

* refactor: inline timeoutGuard into personStateManager

* refactor: prefix pipeline steps with indexes

* Extract timestamp parsing logic from process-event.ts

* refactor: move timestamp tests over from process-event.ts

* refactor: update process-event.test.ts

* refactor: person-state-manager -> person-state

* Move sanitizeEvent to a more suitable module

* Fix some process-event tests
2022-06-17 09:17:08 +03:00
Karl-Aksel Puulmann
b4fee54222
refactor(plugin-server): extract person creation/handling logic from EventsProcessor (#10271)
* refactor: Start with PersonStateManager

* refactor: move createPerson to new service

* refactor: move team fetching before aliasing

* refactor: move `createPersonIfDistinctIdIsNew`

* refactor: move `updatePersonProperties`

* refactor: move `handleIdentifyOrAlias`

* refactor: `createPerson` to private

* Fix an import

* Remove weird mocking in an e2e integration test
2022-06-14 11:51:58 +03:00
Karl-Aksel Puulmann
c51a2f7bc1
fix(plugin-server): use histogram in metrics properly (#10276) 2022-06-13 16:48:57 +03:00
Karl-Aksel Puulmann
ebfc8251a7
fix(plugin-server): Properly set version in deletePerson (#10207)
* Use correct style for querying postgres

* Add test showing problems with deletePerson logic

* Fix deleting persons from clickhouse

* Fix concurrent tests

* Version + 100

* Fixup FINAL

* Remove console.log
2022-06-13 12:58:44 +03:00
Tiina Turban
569b50b4ec
feat(plugin-server): batching ingestion events to single process per distinct id (#10071) 2022-06-08 19:20:40 +02:00
Yakko Majuri
004ba66349
fix: pass ISO timestamp to onAction/onEvent (#10178)
* fix: pass ISO timestamp to onAction/onEvent

* fix prettier

* fix import

* update timestamps
2022-06-08 11:05:54 +00:00
Karl-Aksel Puulmann
c3c5eaad02
fix(plugin-server): properly unparse event.properties when PLUGIN_SERVER_MODE=async (#10156)
* Handle string properties in plugin-server convertToIngestionEvent

* Update typing

* fix: Add multi-server process event test

This got accidentally yeeted from my previous PR. Shame!

* Improve tests

* Update test to reflect reality
2022-06-07 13:42:07 +03:00
Karl-Aksel Puulmann
59797efce8
refactor(plugin-server): yeet element-group related postgres code (#10161) 2022-06-07 12:23:20 +03:00
Tiina Turban
95c9045cc1
fix: Postgres and CH Person version across other columns to match (#10135) 2022-06-06 17:57:03 +02:00
Tiina Turban
26435cb70d
feat: Add version column to person in CH (#10117) 2022-06-06 13:42:39 +02:00
Michael Matloka
64317238e6
refactor: Eliminate the KAFKA_ENABLED setting (#10059)
* refactor: Eliminate the `KAFKA_ENABLED` setting

* Remove dead code

* Consolidate plugin server test scripts and CI

* Fix CI command

* Remove Celery queues

* Rearrange test directories

* Update import paths
2022-05-30 18:39:33 +00:00