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

56 Commits

Author SHA1 Message Date
Paul D'Ambra
eeea8d63f1
fix: encryption salt keys take 2 (#25479) 2024-10-09 15:16:17 +00:00
Arthur Silber
049f4cadba
chore: fix hobby plugin server, again (#24750) (#24777) 2024-09-04 15:37:01 +00:00
Frank Hamand
71a67e5837
chore: fix hobby plugin server (#24750) 2024-09-03 09:09:44 +01:00
Paul D'Ambra
d07960fb62
fix: self hosted replay storage access (#24155) 2024-08-19 09:15:51 +01:00
Timothy
3bdf79b2e2
fix: pass secret to django worker (#24112) 2024-08-01 11:03:12 +02:00
Michael Matloka
395ae82a14
feat(insights): Increase HogQL and CSV export row limit (#22637)
* feat(insights): Increase HogQL and CSV export row limit

* Update query snapshots

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-05 09:31:47 +00:00
Zach Waterfield
e612088c52
feat: live events feed (#22302)
* initial commit

* initial commit

* fix up some types

* Add team id

* add client side filters

* check live events in onboarding

* add eventsource

* clean up live table logic

* add event source module

* Delete eventsManagementDescribers.tsx

* update event source usage

* Update liveEventsTableLogic.ts

* Update UI snapshots for `chromium` (2)

* add team live events token

* Delete liveEventsTableLogic.ts

* Update types.ts

* switch to use window event source

* improvements / feature flags

* cleanup

* update the live event host

* Update UI snapshots for `chromium` (2)

* remove event source lib

* fix up event source types

* Clean up live events view

* Delete eventsManagement.ts

* Update SDKs.tsx

* improve live event typing

* add better loading for the table

* update the live events table columns

* add last batch timestamp check

* add toast for error

* rename events management to activity

* Hookup proper team id

* Update start

* Fix types

* Update some tests

* Put SDKs back with no live event changes

* Update verifiedDomainsLogic.test.ts.snap

* Update verifiedDomainsLogic.test.ts.snap

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Use `preserveParams()` in redirect from old URL

* Clean up UI and refactor tabs

* Update E2E tests

* Update UI snapshots for `chromium` (2)

* Don't hide "Reload" when live events available

* Remove unused import

* Update UI snapshots for `chromium` (2)

* Improve local batching reliability

* Make console error clearer

* Clarify directory structure

* Update UI snapshots for `chromium` (2)

* Jot down source of `EventSource` type

* Remove unused scene code

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update a11.cy.ts

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Remove any effects for users with flag off

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2024-06-04 11:33:42 +00:00
feedanal
728d2c1c46
fix: limit kafka log retention to 1h by default (#22270)
limit kafka log retention to 1h by default

Co-authored-by: Frank Hamand <frankhamand@gmail.com>
2024-06-04 11:09:45 +01:00
feedanal
16d0cfe8d8
fix: add persistence to redis and kafka on hobby (#22563)
* add persistence to redis and kafka on hobby

This is to address https://github.com/PostHog/posthog/issues/22291, but potentially fixes other redis/kafka related conditions over containers updates / rebuilds

* proper path to kafka data volume

* add volume definitions

---------

Co-authored-by: Frank Hamand <frank@posthog.com>
2024-05-31 13:12:43 +00:00
Mish Ushakov
b11ebf5202
feat(auth): Add key previews to personal API keys (#22362)
* added a way to preview the key value without exposing the key

* updated api keys preview

* Make the UI a bit nicer

* Write out the reasoning behind personal API key entropy

* Include underscore in masked value

* updated migrations for API key mask

* updated personal api keys tests

---------

Co-authored-by: Michael Matloka <michal@matloka.com>
2024-05-21 21:01:15 +02:00
feedanal
de0cd3ec18
fix: add volumes for Caddy to enable certificate persistence on self-hosted (#22273)
* Update docker-compose.hobby.yml

* use named volume instead of volume mount

we don't want to mount /etc from user's computers as 1. it's usually owned by root, 2. not portable to macos/windows

use a named volume instead like we do with e.g. posthogres

---------

Co-authored-by: Frank Hamand <frank@posthog.com>
2024-05-21 15:22:09 +01:00
feedanal
39b1fe0149
fix objectstorage endpoints for hobby deployment (#22268)
currently default objectstorage address is http://127.0.0.1:19000, but ports are not exposed from docker-compose. This commit exposes ports AND updates             OBJECT_STORAGE_ENDPOINT to direct to MinIO container rather than localhost, but localhost port is useful either way for admin and testing purposes.
2024-05-13 10:03:07 +01:00
Tom Owers
71905736f0
feat(data-warehouse): Added warehouse schema validation (#22142)
* WIP

* Added UI for showing invalid columns

* Added tests

* Updated object_storage references

* Corrected logic

* mypy updates

* Update query snapshots

* Added missing modifier to schema

* Fixed tests

* Updated mypy

* Update UI snapshots for `chromium` (2)

* Updated mypy

* typo fix

* Update query snapshots

* 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>
2024-05-09 11:44:03 +02:00
Marius Andra
2f6081f9ae
fix(cohorts): upload static cohorts (#21840) 2024-04-25 09:41:33 +00:00
danielxnj
2344bc1373
chore: Add elasticsearch service to docker-compose.hobby.yml (#21783)
Add elasticsearch service to docker-compose.hobby.yml

Co-authored-by: xneyder <xneyder@gmail.com>
2024-04-24 15:10:01 -04:00
David Newell
33d13aff4d
chore: remove ingestion experiment (#21583) 2024-04-17 15:12:59 +01:00
danielxnj
8b722bfef2
chore: Fix docker-compose circular dependecies (#20905)
Fix docker-compose circular dependecies

Co-authored-by: xneyder <xneyder@gmail.com>
2024-03-13 12:38:46 -04:00
Ben White
bcbe300c22
feat: Replay ingestion with EFS (#20487) 2024-02-26 09:43:27 +01:00
danielxnj
b0a9ce2818
chore: hobby deployment on PR (#18733)
* Check docker before installing it
2023-11-29 18:16:15 -05:00
danielxnj
2e1a48bcdd
chore: Update base postgres to version 15 (#17159)
* Update base postgres to version 15

* Pin pg12 for hobby installations

* Update docker-compose.hobby.yml

Co-authored-by: Xavier Vello <xavier.vello@gmail.com>

---------

Co-authored-by: Xavier Vello <xavier.vello@gmail.com>
2023-09-13 10:11:07 -04:00
Eric Duong
123470c445
chore(data-warehouse): Make sure alias is accounted for on s3 table (#16526)
* make sure alias is accounted for

* adjust test

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* update tests

* add comment

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-25 10:02:28 -04:00
Joe Martin
d1899c6005
fix: Removing some self-hosted upgrade paths and references (#16711)
* Remove self-hosted references

* Update messages in tests too

* Update query snapshots

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-24 19:44:44 +02:00
Tiina Turban
c2a1c18444
chore: Default async migrations to be off (#15867) 2023-06-07 16:56:56 +02:00
Xavier Vello
739d0b430b
fix(hobby-deploy): fix temporal container volume mount (#15445) 2023-05-09 15:24:13 +02:00
James Greenhill
0223d7ab86
feat: Add Temporal to the dev and hobby stacks (#14658)
* feat: Add Temporal to the dev and hobby stacks

* disable elastic for hobby because of resources

* checkpoint

* update requirements

* worker is up, but without the sandbox

* ensure temporal does not depend on elastic

* Feedbacked

* pip-compile dev

* mypy fixes

* add a bit of colorful logging

* add django temporal worker to the mix

* checkpoint for dev-full docker

* Working on docker-full, but checkpointing for now

* add migration bits for full
2023-03-20 16:56:14 -06:00
Xavier Vello
c2634a750c
fix(hobby): fix hobby install compose (#13067) 2022-12-01 10:22:01 -08:00
James Greenhill
6c5503cef9
feat: Have a local docker-compose stack for developing 100% in docker (#13025)
* feat: Have a local docker-compose stack for developing 100% in docker

* lol found a docker-compose bug where you can't have volumes created in root dir

* scale -> deploy.replicas

* don't forget to add image for asyncmigrationscheck

* env vars to each component

* Rename local to dev-full
2022-11-30 09:49:17 -08:00
James Greenhill
696028e800
feat: simplify the docker-compose setup so we do less version coordinations (#12998)
* feat: remove version from docker compose to support new spec

* feat: simplify the docker-compose setup so we do less version coordinations

* update hobby bin

* bump docker-compose version for hobby for extends compat

* move ci to ubuntu-latest

* Revert "move ci to ubuntu-latest"

This reverts commit a0462adfec.

* use docker compose for github ci

* correct comments on base
2022-11-29 20:50:42 +00:00
James Greenhill
e0c887d3d7
feat: remove version from docker compose to support new spec (#12997) 2022-11-29 03:29:17 +00:00
James Greenhill
d34ce7e06b
chore: Pin caddy version to v2.6.1 for stability (#11943)
* chore: Pin caddy version to v2.6.1 for stability

* pin minio as well
2022-09-22 14:51:57 -07:00
Harry Waye
56afbd85d9
fix(hobby): remove --complete-noop-migrations (#11666)
We need to wait for a new release before we can update the
docker-compose file for hobby deploys.
2022-09-05 16:54:48 +01:00
Harry Waye
487d80c45d
fix: hobby async migrations command (#11650)
Fix: hobby async migrations command
2022-09-05 11:06:36 +01:00
Harry Waye
9bf86629df
feat(async-migrations): add auto complete trivial migrations option (#11601)
* feat(async-migrations): add auto complete trivial migrations option

This change is to ensure that the `run_async_migrations --check` command
option is a light operation such that we can safely use this e.g. in an
init container to gate the starting of a K8s Pod.

Previous to this change, the command was also handling the
auto-completion of migrations that it deamed to not be required, via the
`is_required` migration function. Aside from this heaviness issue, it's
good to avoid having side effects from a check command.

One part of the code that I wasn't sure about is the version checking,
so any comments here would be much appreciated.

Note that `./bin/migrate` is the command we call from both ECS migration
task and the Helm chart migration job.

* update comment re versions

* wip

* wip

* wip

* update hobby

* rename to noop migrations
2022-09-01 14:43:09 +00:00
Daniel
497f5f678c
fix: add persistent volumes to docker-compose-hobby (#11256)
* Add persistent volumes to docker-compose-hobby

Per the discussion in https://github.com/PostHog/posthog/issues/10792, implemented the "Kessel Fix" in less than a parsec.

* Add warning text to user prompts to avoid data loss

Following discussion with PH team, we wanted to give users the information needed to properly manage the data in their installation and avoid potential data loss.
2022-08-12 15:31:24 +01:00
James Greenhill
2a6417a586
chore: Reduce surface area for attack on default hobby deploys (#10891)
* chore: Reduce surface area for attack on default hobby deploys

* typo fix
2022-07-20 08:43:21 -07:00
Eric Duong
46faa8fab2
refactor(FOSS): foss remove all ee dependencies from /posthog (#10319)
* refactor: foss move properties to /posthog

* refactor: move replication and materializtaion

* refactor: move file

* refactor: move test and journeys

* refactor: move breakdown props

* refactor: move query imports

* refactor: move more ee dependencies

* refactor: restore groupsjoinquery

* fix: errors

* refactor: no ee.clickhouse dependncies

* try import tasks

* refactor: move materialization

* refactor: change foss split for column optimizer

* run black

* fix: imports

* remove comment

* Update snapshots

* run black

* skip isort

* Update snapshots

* format

* more fixes

* refactor(FOSS): split out paths query code (#10378)

* refactor: move migrations

* refactor: move idl

* fix: move more imports

* import adjustments

* fix: test import

* fix: test import

* fix: remove restriction

* refactor: split out paths query code

* refactor: more code splitting

* fix: types

* refactor(FOSS): Setup such that FOSS is deployable (#10352)

* refactor: move migrations

* refactor: move idl

* fix: move more imports

* import adjustments

* fix: test import

* fix: test import

* fix: remove restriction

* fix import

* refactor: add snapshost

* subscription-import

* fix: safe import

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-06-22 17:24:03 -04: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
Guido Iaquinti
6e0feccdfd
chore(docker-compose): remove what is not needed (#9945) 2022-05-26 11:36:44 +02:00
James Greenhill
8572bad0d2
fix: Move hobby to use latest until next release (#9928) 2022-05-23 16:14:16 -07:00
Guido Iaquinti
3f3f146b3e
chore(hobby deployments): various fixes (#9914)
* chore(hobby deployments): various fixes

* default do not check versions for current hobby release

Co-authored-by: James Greenhill <fuziontech@gmail.com>
2022-05-23 11:15:57 -07:00
James Greenhill
2e69e0d4bb
chore: bump defaults for clickhouse to 22.3 across the board (#9847)
* chore: bump defaults for clickhouse to 22.3 across the board

* remove docker build instructions for clickhouse

* remove 21.11.11.1 from matrix

* prettier it
2022-05-20 20:32:22 -07:00
Paul D'Ambra
49e3ceef5c
feat(object storage): add unused object storage (#9846)
* feat(object_storage): add unused object storage with health checks

* only prompt debug users if object storage not available at preflight

* safe plugin server health check for unused object storage

* explicit object storage settings

* explicit object storage settings

* explicit object storage settings

* downgrade pip tools

* without spaces?

* like this?

* without updating pip?

* remove object_storage from dev volumes

* named volume on hobby

* lazily init object storage

* simplify conditional check

* reproduced error locally

* reproduced error locally

* object_storage_endpoint not host and port

* log more when checking kafka and clickhouse

* don't filter docker output

* add kafka to hosts before starting stack?

* silly cloud tests (not my brain)
2022-05-20 09:56:50 +01:00
James Greenhill
49c56fabe3
chore: Add ClickHouse version 22.3 to CI and set 21.11.11.1 to be default except for ARM64 compose (#9743)
* chore: Remove ClickHouse version 21.6 and add 22.3 for testing and docker-compose (21.6 is not in clickhouse dockerhub)

* update service requirements

* update arm64 compose as well

* Default to 21.11.11.1 and support multiple dockerhub repositories

* prettier .github/workflows/ci-backend.yml
2022-05-16 14:00:43 -07:00
Harry Waye
dd848c436b
fix(hobby): explicitly define volumes for ZooKeeper (#9797)
Previously we were not defining volumes in ZooKeeper config for
docker-compose.hobby.yml.

We noticed the issue with the upgrade from 1.34.2 to 1.35.0 due to the
changes to ZooKeeper version. Previously I believe we were just stopping
and starting the ZooKeeper container. With no image changes this is
fine, we'll reuse the existing container. However, as we updated we end
up with a new container, without any of the previous data.

Coupled with the introduction of Replication which relies on ZooKeeper,
this brought down hobby deployments.

It looks like we also do not provide explicit volumes for e.g.
ClickHouse either, but I'm doing one fix at a time...

This change will not try to save anything that is in the existing
container. After running this command, data will need to be reinstated
with ClickHouse SYSTEM RESTORE REPLICA.
2022-05-16 10:10:36 -07:00
Tiina Turban
35a5dd636e
feat: Set redis maxmemory and memory policy for docker compose (#9573) 2022-05-05 14:17:32 +02:00
Guido Iaquinti
ac10b93348
ci(zookeeper version/image): use zookeeper:3.7.0 (#9638) 2022-05-04 16:07:54 +02:00
Guido Iaquinti
90ef8e2373
ci(redis version/image): use redis:6.2.7-alpine (#9620) 2022-05-03 15:35:26 +02:00
Michael Matloka
500d4623ba
refactor: Yeet PRIMARY_DB (#9017)
* refactor: Yeet `PRIMARY_DB`

* Remove `db_backend`

* Eliminate "Analytics database in use"

* Satisfy mypy
2022-03-21 13:15:50 +01:00
Guido Iaquinti
e70eac9474
chore(Kafka): change default Kafka container image (#9087) 2022-03-21 12:49:43 +01:00
Guido Iaquinti
98ca2904be
feat(ClickHouse): upgrade Docker references to 21.11.11.1 (1/2) (#8860)
* feat(ClickHouse): upgrade Docker references to 21.11.11.1 (1/2)

* ci(backend): run tests on docker-compose changes

Co-authored-by: Harry Waye <harry@posthog.com>
2022-03-15 11:19:21 +00:00