23 Commits

Author SHA1 Message Date
Ben White
b20fd9371f fix(node): Don't keep the messages array in the closure (#39775) 2025-10-16 15:47:51 +02:00
Ben White
cfafe13411 chore: Remove transform plugins and mmdb integration (#35126)
Co-authored-by: José Sequeira <jose@posthog.com>
2025-07-17 12:58:30 +02:00
Robbie
e81828babc chore: Add jest rule to block expect(...).toBeDefined (#30750) 2025-04-03 14:49:42 +01:00
Ben White
1b308916e8 feat(cdp): Refactored logger (#29933) 2025-03-17 12:55:25 +01:00
Ben White
dc77ad8b01 chore(cdp): Removed job and schedules (#29352) 2025-03-03 13:31:54 +01:00
Rafael Audibert
eda494ef12 fix: Silence several TS errors from plugin-server tests (#29200) 2025-02-25 18:46:02 +00: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
Oliver Browne
7207da93e9 feat: Inline plugins (plugins without running VM2) (#23443)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben White <ben@posthog.com>
2024-07-24 14:49:31 +03:00
Ben White
1408f0eba3 chore: Refactor run plugin code (#21984) 2024-05-06 11:13:36 +02:00
Brett Hoerner
b9d9511049 revert: chore(plugin-server): add plugin skip list for personless (#2… (#21495)
Revert "chore(plugin-server): add plugin skip list for personless (#21378)"

This reverts commit 6143f83a1d.
2024-04-12 06:39:51 -06:00
Brett Hoerner
6143f83a1d chore(plugin-server): add plugin skip list for personless (#21378)
* chore(plugin-server): add plugin skip list for personless

* runDeprecatedPlugins
2024-04-08 08:39:20 -06:00
Tiina Turban
e391387794 feat: Remove exportEvents (#18682) 2023-12-05 14:40:05 +01:00
Tiina Turban
e3298f897f feat: p-s to support composeWebhook (#18465) 2023-11-09 18:19:18 +01:00
Marius Andra
51192bed94 feat(plugin-server): remove frontend transpilation (#18466) 2023-11-08 14:30:31 +00: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
Tiina Turban
f5304fc222 chore: nuke unused onSnapshot (#16531) 2023-07-13 12:03:59 +02:00
Xavier Vello
ba17824cd2 fix: detect plugin getSetting method when present (#14077)
* fix: detect plugin getSetting method when present

* Add getSettings to vm test expects

---------

Co-authored-by: Harry Waye <harry@posthog.com>
2023-02-03 14:08:29 +01:00
Yakko Majuri
614d521f3e fix(plugin-server-split): only load scheduled tasks in servers that process them (#12368)
* fix(plugin-server-split): only load scheduled tasks in servers that process them

* refactor and restructure

* fix typo

* fix tests
2022-10-20 13:55:37 -03:00
Karl-Aksel Puulmann
773f922eef feat(apps): Remove onAction plugin function (#10414)
* Remove onAction

* Avoid fetching actions that dont deal with REST - 99% reduction

* Plural hooks

* Avoid hook fetching where not needed

* Remove dead code

* Update lazy VM test

* Rename a function

* Update README

* Explicit reload actions in tests

* Only reload actions which are relevant for plugin server

* Remove excessive logging

* Reload actions when hooks are updated

* update action matching tests

* Remove commented code

* Solve naming issues
2022-06-24 12:29:10 +03:00
Michael Matloka
3578a0c1c2 perf(apps): Only load PluginSourceFiles instead of Plugin.archive (#10374)
* perf(apps): Cache app code at install instead of fetching `archive` blob

* Fix typing

* Add migration

* Use `cast()` instead of `assert`

* Update plugin test helpers

* Restore `reload_plugins_on_workers()`

* Save plugin source file rows separately from plugin rows

* Fix migration

* Update latest_migrations.manifest

* Update plugins.test.ts

* Separate `plugin60WithSource` from `plugin60`

* Handle `PluginSourceFile` at `insertRow()` level

* Unify `plugin60WithSource` and `plugin60` again

* Update sql.test.ts

* Fix and simplify reading files in `loadPlugin()`

* Update plugins.test.ts

* Update more tests

* Clean code up

* Specify `json_parse=True` in lower-level function tests

* Add tests for `update_or_create_from_plugin_archive()`

* Update migration with updated function

* Update plugin `upgrade` endpoint

* Remove leftover `print()`

* Add error handling to `0243_unpack_plugin_source_files`

* Add `upgrade` assertions

* Revert plugin server changes

* Fix typing

* perf(apps): Only load `PluginSourceFile`s instead of `Plugin.archive`

This reverts commit 180ed228b8cc59875ac426783a2f46e57eb1e69c.

* Update logging level and message

* Refactor `find_index_ts_in_archive()` and `extract_plugin_code()` out

* Don't select `latest_tag` and `latest_tag_checked_at`

* Use kwargs in logging

Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com>

* Fix missing comma

* Only throw if `plugin_json_parsed` is `None`

* Fix `reverse_func`

* Accept empty files

* Make sure files which are deleted between version are gone

* Update 0243_unpack_plugin_source_files.py

* Update 0243_unpack_plugin_source_files.py

* Explain query counts

* Use `@snapshot_postgres_queries` instead of `assertNumQueries()`

Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com>
2022-06-22 16:33:23 +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