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

5 Commits

Author SHA1 Message Date
Harry Waye
9b4d455a29
docs(set/set_once): add $set/$set_once to docs (#15306)
This also adds a test to ensure we are capturing usage of $set/$set_once
at the top level of the event, as posthog-js uses this method.

This was initiated by the issue mentioned
[here](https://github.com/PostHog/posthog-js/issues/615).
2023-05-01 12:09:38 +00:00
Harry Waye
9529cdd443
feat(cdp): add cdp destination APIs (#14994)
This commit adds the CDP destination APIs. Key changes include:

 - use `db-migrate` for migrations
 - jest for functional_tests (although I would be happy to use vitest or
   alternatives if we want to, I didn't want to change too much at once)
 - pnpm for package management
 - koajs for the server
 - Ajv for validation
 - A separate PostgreSQL logical database for the destination APIs
   persistence.

Things still to do:

 - add some delivery mechanism that takes events from Kafka and puts
   them to the destinations.
 - add CI
 - add to Helm Chart
 - add some method of authentication. I've added the API here but it
   might be that I just end up putting that in the main app in the end,
   depending on how much momentum there is to try out separating the API
   a bit, and the logistics of that.
2023-04-12 12:47:50 +01:00
Harry Waye
72c53ce55c
chore(capture): add OpenAPI spec for capture endpoints (#14962)
* Revert "Revert: docs(capture): add spec for capture endpoints (#14961)"

This reverts commit 063dc98056.

* fix tests
2023-04-03 17:14:51 +00:00
Harry Waye
063dc98056
Revert: docs(capture): add spec for capture endpoints (#14961)
Revert "docs(capture): add spec for capture endpoints (#14957)"

This reverts commit b5ef61c0c5.
2023-04-03 16:32:03 +00:00
Harry Waye
b5ef61c0c5
docs(capture): add spec for capture endpoints (#14957)
* docs(capture): add spec for capture endpoints

This adds an OpenAPI specification for the capture endpoints. This is
useful for documenting the API, and further can be used e.g. in tests to
validate that both clients and the API are behaving as expected.
2023-04-03 11:44:29 +00:00