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

23 Commits

Author SHA1 Message Date
James Greenhill
59eaa99c14
chore: move livestream to posthog monorepo (#23044)
* 🔥 initial commit

* update readme

* Update README.md

* Update README.md

* deploy scripts

* very basic consumer setup

* add some configs and docker-compose

* formatting for testing

* add tailscale

* flip from dev to prod flag

* set default to be not prod

* default for group_id

* tailscale up

* update gitignore

* basic geolocation

* remove unused localServer

* document mmdb

* just make configs an example

* drop raw print

* add a start script (downloads the mmdb)

* add readme and update configs.example

* ts working

* if in start

* update start script

* fix start

* fix start

* fix more

* add sql endpoints for tokenId and Person lookups

* work towards filter

* sub channel

* fix subChan

* hardcode team2 token

* add cors

* only allow get and head

* add atomicbool

* add channel to kafka

* add logs

* verbose logs

* make array

* drop sub ptrs

* more logs

* helps to loop

* drop some logigng

* move sub branch

* logging

* drop log

* hog

* Deal with numeric distinct ids later

* logs

* api_key

* send 1/1000

* remove log

* remove more logs

* change response payload

* set timestamp if needed

* fill in person_id if team_id is set

* require teamid, convert to token

* clean up subs on disconnect

* log

* check for token in another place

* clean up subs on disconnect

* drop modulo and log

* fix no assign

* don't reuse db conn for now

* drop a log

* add back commented out log

* Don't block on send to client channel

* add geo bool

* only geo events

* use wrapper ip

* don't require team in geo mode

* add an endpoint and stats keeper for teams

* remove stats keeper

* start stats keeper

* wire it up

* change the shape of the response

* omit empty error

* omit empty on the stats as well

* enable logging on back pressure

* add jwt endpoint for testing

* support multiple event types

* Get Auth Setup

* jwt team is float so turn that into int

* logs

* add auth for stats endpoint

* remove tailscale and use autoTLS on public endpoints

* default to :443 for auto tls

* remove un-needed endpoints and handlers

* Use compression because... a lot of data (#9)

* add dockerfile and CI/CD (#10)

* add dockerfile and CI/CD

* Use ubuntu not alpine

couldn't build in alpine :'(

* Add MMDB download to Dockerfile (#11)

* Use clearer name for MMDB

* Don't connect to Kafka over SSL in dev

* Fix JWT token in example config

* Add postgres.url to example config

* Add expected scope

* Fix const syntax

* Put scope validation where claims are known

* Fix audience validation

* moves

* ignore livestream for ci

* main -> master

* move GA to root

* docker lint fix

* fix typo

* fixes for docker builds

* test docker build

* livestream build docker

* dang

* Update .github/workflows/livestream-docker-image.yml

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

* Update .github/workflows/livestream-docker-image.yml

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

* don't build posthog container when PR is pushed for rust or livestream

* Update .github/workflows/livestream-docker-image.yml

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

* add a lot of paths-ignore

* Update .github/workflows/livestream-docker-image.yml

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

* Dorny filters are handling most of what I was trying to do

* remove tailscale to speed up builds

* maybe?

* push container to github.com/posthog/postog

* don't build container on PR

* remove more filters because dorny

---------

Co-authored-by: Brett Hoerner <brett@bretthoerner.com>
Co-authored-by: Zach Waterfield <zlwaterfield@gmail.com>
Co-authored-by: Frank Hamand <frankhamand@gmail.com>
Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2024-06-18 15:38:53 +00:00
Frank Hamand
e48a6de280
Cleanup couple of issues from proxy service PR (#22299)
* fix mypi

* stop saving images on pr builds
2024-05-15 20:18:59 +00:00
David Newell
de69ab884c
feat: Proxy as a Service (#22292)
* frontend form

* list / create records

* move settings

* fix types

* add fields

* new fields & delete

* better states

* Update UI snapshots for `chromium` (1)

* basic task

* background task

* Hide proxy settings behind feature flag

* text color

* Update UI snapshots for `chromium` (1)

* Squash migrations

* Add created_at/update_at/created_by

* form complete state

* move env vars

* cleanup

* Use env var for target cname

* call create in celery task

* fix dns resolver import

* frontend polling

* order queryset

* tweaks

* Only save on change

* Update UI snapshots for `chromium` (1)

* only create proxy task if is_cloud

* hide settings if not cloud

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* cloud or dev

* spacing

* deleting

* save docker images

* add final status

* update manifest

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* fix celery task

* Fix org_id on proxy record

* isDomain not isUrl

* fix destroy kwargs

* fix help text

* domain check

* frontend form

* list / create records

* move settings

* fix types

* add fields

* new fields & delete

* better states

* Update UI snapshots for `chromium` (1)

* basic task

* background task

* text color

* Hide proxy settings behind feature flag

* form complete state

* Update UI snapshots for `chromium` (1)

* Squash migrations

* Add created_at/update_at/created_by

* move env vars

* cleanup

* frontend polling

* Use env var for target cname

* call create in celery task

* fix dns resolver import

* order queryset

* hide settings if not cloud

* tweaks

* Only save on change

* Update UI snapshots for `chromium` (1)

* only create proxy task if is_cloud

* cloud or dev

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* spacing

* deleting

* add final status

* save docker images

* update manifest

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* fix celery task

* Fix org_id on proxy record

* isDomain not isUrl

* domain check

* fix destroy kwargs

* fix help text

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* fix code quality issues

* code quality

* fix merge

* spinner spacing

* remove unused selectors

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Frank Hamand <frankhamand@gmail.com>
2024-05-15 22:52:58 +03:00
dependabot[bot]
e50a65b0bc
chore(deps): bump tj-actions/changed-files from 42 to 43 (#20969)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 42 to 43.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/v42...v43)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 10:52:11 +01:00
dependabot[bot]
3fba4c63aa
chore(deps): bump tj-actions/changed-files from 34 to 42 (#19891)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 34 to 42.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/v34...v42)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 14:13:39 +01:00
Michael Matloka
3a85190401
chore(3000): Clean up support panel (#18968)
* chore(3000): Clean up support panel

* Adjust panel button shadows

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-30 18:29:13 -05:00
danielxnj
b0a9ce2818
chore: hobby deployment on PR (#18733)
* Check docker before installing it
2023-11-29 18:16:15 -05:00
Michael Matloka
c098d4b0ba
ci(vrt): Better await in a few more stories (#17244)
* ci(vrt): Better await in a few more stories

* Optimize CI concurrency

* Explain mechanics
2023-08-30 11:49:15 +02:00
Paul D'Ambra
c7f5ac10a3
feat: match events locally when possible (#16811) 2023-08-01 10:05:51 +01:00
Michael Matloka
8fd0f7a3f9
ci: Fix CI for forks (#16776)
* ci: Fix CI for forks

* Try updating snapshots on forks

* Try fixing snapshot verification instead

* Consolidate Docker-related workflows

* Run visual regression tests

* Update ci-e2e.yml

* Use fork's GHCR

* Try Depot caching approach instead of GHCR

* Lowercase reference

* Update E2E tests paths filter

* Fix permissions

* Debug .env

* Fix double checkout

* Remove obsolete release workflows

* Fix formatting

* Also run plugin server tests for good measure

* Clarify automerge job name

* Describe action inputs

* Refactor E2E workflow for clarity and comments

* Use project ID from depot.json
2023-07-28 14:23:32 +02:00
Ben White
85c0b33004
feat: Rollout v2 recorder for everyone (#15790) 2023-07-20 12:00:00 +00:00
danielxnj
a2f51c2cbc
chore: Danielj/split plugins helm chart (#16612)
* Trigger plugins deployment when the folder is updated
2023-07-18 14:05:39 -04:00
danielxnj
319708a985
chore: Danielj/split plugins helm chart revert (#16466)
* Revert "chore: Danielj/split plugins helm chart (#16459)"

This reverts commit 27574c00a1.

* Enable workflow dispatch
2023-07-10 12:45:30 -04:00
danielxnj
27574c00a1
chore: Danielj/split plugins helm chart (#16459)
* Trigger plugins deployment when folder is updated

* Update repository dispatch

* Use digest as tag

* Remove empty line

* Create a new workflow

* Change concurrency

* Revert "Remove empty line"

This reverts commit b307c50cb0.

* Revert "Change concurrency"

This reverts commit 458597b80b.

* Revert "Create a new workflow"

This reverts commit 4e1eef73f2.

* Remove empty line

* Dummy commit to trigger deploy

* Have a digest per platform

* Revert "Have a digest per platform"

This reverts commit 8276bd20a0.

* Revert "Revert "Have a digest per platform""

This reverts commit bc6527c48f.

* Have a digest per platform

* Add meta

* Update ci workflow

* Add workflow dispatch

* Dummy commit
2023-07-10 12:18:09 -04:00
danielxnj
74c558d66e
chore: Revert "chore: Trigger plugins deployment when folder is updated deploy " (#16437)
Revert "chore: Trigger plugins deployment when folder is updated deploy  (#16141)"

This reverts commit 53e6b7e413.
2023-07-07 11:13:08 -04:00
danielxnj
53e6b7e413
chore: Trigger plugins deployment when folder is updated deploy (#16141)
* Trigger plugins deployment when folder is updated
2023-07-07 09:19:08 -04:00
Frank Hamand
6ef4dfc280
fix: Disable buildx fallback for depot build as it's too slow to be useful (#16223) 2023-06-26 11:23:07 +02:00
Michael Matloka
82093b607e
ci: Fix GHCR path (#15670) 2023-05-23 13:12:16 +01:00
Komal
57de4acc4b
fix: Show Cohort name instead of id in pie and horizontal bar chart (#15590)
* Show Cohort name instead of id in pie and horizontal bar chart

* Try to use fork's GHCR

* Don't run OptiPNG if not needed

* Fix fork detection

* Revert workflow changes

This didn't really work.

---------

Co-authored-by: Michael Matloka <dev@twixes.com>
2023-05-23 12:14:46 +01:00
dependabot[bot]
c24c2dfb07
chore(deps): bump sqlparse from 0.4.2 to 0.4.4 (#15192)
* chore(deps): bump sqlparse from 0.4.2 to 0.4.4

Bumps [sqlparse](https://github.com/andialbrecht/sqlparse) from 0.4.2 to 0.4.4.
- [Release notes](https://github.com/andialbrecht/sqlparse/releases)
- [Changelog](https://github.com/andialbrecht/sqlparse/blob/master/CHANGELOG)
- [Commits](https://github.com/andialbrecht/sqlparse/compare/0.4.2...0.4.4)

---
updated-dependencies:
- dependency-name: sqlparse
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update CI to work on forks

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-24 13:32:51 +02:00
Harry Waye
09a61e4e19
ci: make cypress use correct image on master branch pushes (#14949)
* ci: make cypress use correct image on master branch pushes

We were pulling the `master` tagged image, now we pull the DockerHub
latest image.

* wip

* wip

* wip
2023-04-01 14:02:15 +02:00
Frank Hamand
cc94b2d35b
feat: Automatically create deploys for labelled PRs seeded with demo data (#14935)
* Automatically create deploys for labelled PRs seeded with demo data

* Remove debug

* if
2023-03-30 14:27:58 +00:00
Guido Iaquinti
c2e37e1003
chore(CI/CD): split workflows to test, build and push container images (#13532) 2023-01-03 10:59:17 +01:00