24 Commits

Author SHA1 Message Date
Lukinoh
9531326682 fix(plugin-server): handle correctly empty attributes during chainToElements (#39020) 2025-11-12 19:24:02 -08:00
Ben White
1b308916e8 feat(cdp): Refactored logger (#29933) 2025-03-17 12:55:25 +01:00
Rafael Audibert
eda494ef12 fix: Silence several TS errors from plugin-server tests (#29200) 2025-02-25 18:46:02 +00:00
Meikel Ratz
8e074bd011 chore(cdp): upgrade jest version (#27320) 2025-01-07 18:59:16 +01:00
Ben White
02bf6bb7d8 fix: Rework plugin server redis configs (#25342) 2024-10-03 16:10:20 +08:00
Ben White
16870d63fc feat: Plugin server services refactor - take 2 (#24737) 2024-09-03 11:00:50 +02:00
Ben White
3f56346512 chore: Reverts "Plugin server services refactor (#24638)" (#24733) 2024-09-02 08:43:52 +00:00
Ben White
4684a2bc0d chore: Plugin server services refactor (#24638) 2024-09-02 09:56:13 +02:00
Michael Matloka
7d4554a88d fix(ingestion): Use $os_name as fallback for $os (#24184) 2024-08-06 12:18:12 +02:00
Brett Hoerner
8edc743a7d fix(plugin-server): fix ordering of utm properties so , from the eve… (#21355)
fix(plugin-server): fix ordering of utm properties so ,  from the event win
2024-04-05 07:28:39 -06:00
ted kaemming
644cc6f1f1 fix: createEventsToDropByToken should handle tokens with multiple separators (#20392) 2024-02-17 13:52:46 -08:00
Juraj Majerik
fb62925063 chore(plugin server): add OS version to person properties (#18924) 2023-11-28 13:57:08 +01:00
Ben White
05079fa1a7 feat: Save app properties and others to Person from events (#17393) 2023-09-14 12:57:54 +02:00
Xavier Vello
1b6628055d feat(plugin-server): allow to use several PG connection pools (#17001)
Co-authored-by: Tiina Turban <tiina303@gmail.com>
2023-08-24 11:09:10 +02:00
Marius Andra
59eca63f30 fix: Revert "feat(hogvm): hogvm bytecode action matching in the plugin server" (#17036)
Revert "feat(hogvm): hogvm bytecode action matching in the plugin server (#16937)"

This reverts commit e0d2582e32.
2023-08-15 16:22:19 +01:00
Marius Andra
e0d2582e32 feat(hogvm): hogvm bytecode action matching in the plugin server (#16937) 2023-08-15 15:37:19 +02:00
Raquel Smith
bc9b449ae5 fix: set msclkid on person like gclid (#14386)
* set msclkid on person like gclid

* fix typos (thx copilot)
2023-02-24 19:35:35 +00:00
Karl-Aksel Puulmann
30f59dfef2 feat(historical-exports): Include historical exports finishing in activity log (#12068)
* Add a is_system flag to activity logs

* Allow writing activity logs from within plugin-server

* Make changes object non-required

* Render system user information

* Log when export finishes or fails in plugin activity log

* Update activityLogLogic.plugin.test.tsx
2022-10-07 13:25:16 +03:00
Karl-Aksel Puulmann
02bae96be5 fix(historic-exports): $autocapture classnames parsing (#11626)
Re-ingesting historically exported autocaptured events currently fails: https://sentry.io/organizations/posthog2/issues/3552913543/?query=is%3Aunresolved+level%3Aerror

This is because of attr__class being sometimes there under attributes, other times not, so $elements.attr_class could be either a string or an array when leaving posthog in an export.

Rather than fix this at the export, making the parsing logic in ingestion more flexible
2022-09-02 16:28:15 +03:00
Tiina Turban
c6b1da5932 fix: hide initial referrer as event property (#11536) 2022-08-30 18:07:02 +02: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
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
6a6faf600e fix(plugin-server): chain-to-elements regular expression behavior (#10170)
* refactor tests to be more extensible

* Move elements-related code to separate file

* Copy over tests for element chain

* Handle `undefined` match group

As this test from python indicates, the right-most match group may be
empty. In javascript the behavior for this is different from python and
the match group may be `undefined`

* Update import

* Fix http capabilities
2022-06-07 15:13:25 +03:00