* chore: fix plugin server tests for acitonMatcher
I broke these but there was an issue with CI so they were merges broken
but now maybe they are fixed?
* more fixes
* wip
* wip
* wip
* chore(webhooks): remove abstractions from webhook consumer logic
Previously we were jumping through a few hoops to make webhook calls
e.g. still using the piscina abstraction, still using the runner code.
This commit removes those abstractions while still maintaining the
existing functionality wrt error handling and metrics gathering.
I'll leave further refactoring of the webhook consumer code to a
separate PR. For example, moving the statsd metrics to be based on
OpenMetrics instead. And further adding some tracing around key parts of
the webhook matching and firing logic.
* fix typing
* fix typing
* fix typing
* fix unit tests
* fix tests
* chore(plugin-server): simplify action manager deps
Previously we were passing in the kitchen sync, but the only
dependency is postgres. This should make it easier to e.g. refactor to
not need to load the kitchen sync on some deployments.
* chore(plugin-server): simplify hook commander deps
Previously we passed in DB which is a lot of stuff. Now we just pass in
the postgres pool.
* fix import
* chore(plugin-server): simplify action manager deps
Previously we were passing in the kitchen sync, but the only
dependency is postgres. This should make it easier to e.g. refactor to
not need to load the kitchen sync on some deployments.
* fix import
* chore(plugin-server): simplify action matcher deps
Specifically this only depends on postgres, so passing in the `DB`
object is unnecessary. This should make refactors easier to e.g. only
load the required dependencies when they are needed.
* pass only postgres to ActionMatcher
* chore(exports): try calling heartbeat a bit more often
Looks like we end up rebalancing often. Possibly because we're not
sending the heartbeats in time and the session timing out.
* wip
* fix tests
* migration to add the new column
* and populate it
* fix
* Update query snapshots
* test assertions
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>