0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
Commit Graph

11 Commits

Author SHA1 Message Date
Ben White
bcbe300c22
feat: Replay ingestion with EFS (#20487) 2024-02-26 09:43:27 +01:00
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
c00e81fc88
fix(data-integrity): race condition when creating users with $identify events (#10328)
* Update person-state to return person

* Add personState#update for joint updates

* Create personManager on hub

* Fix bug when $identify is the first user event

Bug was this:
1. We tried to create person with blank properties, later update the
properties separately.
2. This resulted in two kafka messages with identical _timestamps due to
batching
3. There was a 50/50 chance that the event would not be handled properly

We now don't create multiple messages if not needed. I also added tests
to person-state, but not exhaustive ones.

Also fixed an issue with `setIsIdentified` being called too many times

Main issue: https://github.com/PostHog/posthog/issues/10208

* Fixup - avoid errors

* Set time limit

* Re-add distinct_id as argument to fix tests

* Remove unneeded .toString()

* Fix is_identified as identified by tests

* Bump testTimeout
2022-06-17 11:30:10 +03:00
Michael Matloka
c94e77cee6
refactor(plugin-server): Remove benchmarks (#10065) 2022-05-31 12:37:26 +02:00
Karl-Aksel Puulmann
bd0305bf73
feat(plugin-server): use swc for running jest tests (#9832)
* feat(plugin-server): use swc for running jest tests

Every time we run jest tests, typescript is being compiled. This adds
~13-20s to _starting_ each test suite on my machine.

This change brings it down to 1s at the cost of only _transpiling_ the
code and not doing any typechecking.

The second overhead this fixes is for piscina: every worker thread
compiled its own code every time, speeding this up takes that from 4.4s
to under a second. See https://github.com/PostHog/posthog/pull/9777 for
original context

* Re-add ts-jest
2022-05-18 14:45:54 +03:00
Karl-Aksel Puulmann
d28560ff2b
Revert "chore: only report failing tests in plugin server tests (#9636)" (#9713)
This reverts commit 6fdea62b76.
2022-05-10 14:52:00 +03:00
Paul D'Ambra
6fdea62b76
chore: only report failing tests in plugin server tests (#9636)
* only report failing tests

* move silent reporter into package json so we can add a test:noisy task

* Revert "move silent reporter into package json so we can add a test:noisy task"

This reverts commit 234ae024a0.
2022-05-09 15:41:20 +01:00
James Greenhill
434e379f9a Add 'plugin-server/' from commit '01a99a4e26b0b11f068a7073d6b94e53a7214d33'
git-subtree-dir: plugin-server
git-subtree-mainline: 776b056b6d
git-subtree-split: 01a99a4e26
2021-10-28 14:59:19 -07:00
James Greenhill
145937a435
Revert "Monorepo with updated history" 2021-10-28 14:55:17 -07:00
James Greenhill
65512ae16f
Pack up plugin-server for moving 2021-10-12 15:45:42 -07:00