0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
Commit Graph

14 Commits

Author SHA1 Message Date
Ben White
8deaf4e8ea
feat: Swapped to use KAFKA_HOSTS everywhere (#16109)
* Swapped to use KAFKA_HOSTS everywhere

* Fixed up type of kafka config options and setup separate kafka hosts for blob consumer

* allow session recordings to have its own kafka security protocol

* remove slash commands from this pr

* syntax must be obeyed

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* fix

* Update query snapshots

* no empty strings in kafka hosts

* fix snapshot

* fix test

---------

Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-19 12:15:17 +01:00
Ben White
27b75226b0
feat: Completely separate ingestion for replay events (#16024)
---------

Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-15 14:13:28 +01:00
Harry Waye
f29204ef49
fix: run prettier formatting on .devcontainer.json (#15050)
* ci(cdp): push image as latest on master

* chore: add SECRET_KEY env var to codespaces

Now that I'm sharing the key between the Django app and the CDP work, we
want it to be set as a global env var.

* fix: run prettier formatting on .devcontainer.json

* fix format
2023-04-12 14:24:00 +00:00
Harry Waye
4826874f31
chore: add SECRET_KEY env var to codespaces (#15049)
* ci(cdp): push image as latest on master

* chore: add SECRET_KEY env var to codespaces

Now that I'm sharing the key between the Django app and the CDP work, we
want it to be set as a global env var.
2023-04-12 13:47:37 +00:00
Harry Waye
0c23f9c3ae
fix: specify correct workspace folder (#14920) 2023-03-29 12:39:14 -04:00
Harry Waye
328534b9fd
chore(codespaces): add env vars for running codespaces dev (#10923)
* chore(codespaces): add env vars for running codespaces dev

These will be used by vscode and any terminals spawned

* Use default python interpreter

* chore(codespaces): add env vars for running codespaces dev

These will be used by vscode and any terminals spawned

* Use default python interpreter

* add kafka to hosts

* fix hosts

* add to hosts on docker run

* keep python path

* wip
2022-07-25 15:21:00 +01:00
Harry Waye
8dad49d75f
chore(codespaces): use Dockerfile not docker-compose (#9659)
* dev(codespaces): use Dockerfile not docker-compose

I wasn't so confident around the updating of the docker-compose file to
include minio, and the workflow around it. I'd rather just drop into
something with docker-in-docker and run docker-compose myself.

Also finally added some extensions I'm using so I don't need to enable
them all the time.

TODO: update docker-compose file to work with docker-in-docker. At the
moment I don't think the networking will be correct.

* Merge remote-tracking branch 'origin/master' into hackaton_session_rec

* add new line

* remove yarn install, it will be overwritten by the codespaces mount

* revert compose formatting

* format with prettier
2022-05-05 14:05:56 +00:00
Harry Waye
71fa440394
Reimplement codespaces support (#7234)
* dev(codespaces): add "lean in" docker configuration for codespaces

This changes creates a dedicated `docker-compose.yml` and `Dockerfile`
for codespaces and doesn't attempt to have compatability with the
existing docker config files. This is intentional and is designed to be
a close to what codespaces would consider the ideal, so as to understand
what great would look like.

At the moment it doesn't do, but could:

 1. install python and node packages in the image
 2. push this image up to dockerhub
 3. specify this image to be used for caching. There is a "cacheFrom"
    option in the [.devcontainer
    reference](https://code.visualstudio.com/docs/remote/devcontainerjson-reference)
    although I haven't checked how this works with using
    `docker-compose.yml`. Perhaps we just need to add the `image:`
    property to the `app` service :fingerscrossed:
 4. specify default extensions and settings to be used.

* Use python 3.9, not the latest python 3 codespaces supports

* Add some basic python default settings and extensions

* add github codespaces image build workflow

* chore: update docker-compose cache from :cache tag

* chore: use docker cache-to inline

* add codespaces platform comment

* temp run on branch

* chore: fix flatforms format

* chore: update qemu comment

* chore: codespaces build use master image

* chore: target x86_64

* chore: just use image for codespaces, don't try to build

* add in python, node requirements

* install node

* install node

* uncomment node deps install

* use app network stack for all services

* move .env to .dev.env and us in docker-compose

* set WORKDIR to workspace

* pin apt packages

* pin versions, remove apt-key

* add yarn cache clean

* Fix hadolint warnings

* make codespace build on master, or a PR with codespaces-build label

* add missing &&

* dont bother with clickhouse install, its huge

* dont be cute with the networks, just expose explicitly

* fix network

* create container zsh

* correct .env path

* point app to the clickhouse container

* Also install saml deps

* ignore .env again

* libxml already installed

* correct conditional workflow comment
2021-11-23 08:34:51 +00:00
James Greenhill
e7cb7c89e8
Update devcontainer for docker success (#6148) 2021-09-28 15:05:28 +01:00
James Greenhill
de75cb9d33
Use web not backend script for codespaces (#6145)
fixes webpack issues
2021-09-28 11:52:04 +01:00
Karl-Aksel Puulmann
fc5c6476a0
Revert "Revert "Add is_deleted column to person_distinct_id"" (#5194)
* Revert "Revert "Add is_deleted column to person_distinct_id (#5151)" (#5193)"

This reverts commit 401268bdba.

* A tweak for docker-compose builds

Co-authored-by: James Greenhill <fuziontech@gmail.com>
2021-07-19 19:47:41 -07:00
Karl-Aksel Puulmann
401268bdba
Revert "Add is_deleted column to person_distinct_id (#5151)" (#5193)
This reverts commit b1c11ba7dc.
2021-07-19 12:57:42 +03:00
Karl-Aksel Puulmann
b1c11ba7dc
Add is_deleted column to person_distinct_id (#5151)
* Update PERSONS_ACTIVE_USER_SQL query

* Remove dead import

* Update lifecycle queries

* Update BREAKDOWN_ACTIVE_USER_INNER_SQL to use new persons query

* Update STICKINESS_SQL

* Update STICKINESS_PEOPLE_SQL

* Update STICKINESS_ACTIONS_SQL

* Update paths query

* Update events query

* Update CALCULATE_COHORT_PEOPLE_SQL

* Update retention queries

* Update TOP_PERSON_PROPS_ARRAY_OF_KEY_SQL

* Update EVENT_JOIN_PERSON_SQL

* Update GET_PERSON_ID_BY_ENTITY_COUNT_SQL

* Remove remaining references to old get latest person query

* Update GET_DISTINCT_IDS_BY_PROPERTY_SQL

* Fix code style issue

* Update table engine for person_distinct_id table

* don't select team_id

* Make person deletion work

* Use replacingmergetree over collapsing with is_deleted

Replacing an existing engine is hard, let's not do it

* Update query in test

* add migration

* set database on materialized views

* Update plugin server to 1.1.6

Co-authored-by: James Greenhill <fuziontech@gmail.com>
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-07-19 12:43:44 +03:00
James Greenhill
aecd5ce743
Add codespaces config for github remote dev (#5113)
* Add codespaces config for github remote dev

* add lodash for dev

* remove lodash and add echo for ease

* Update motd and remove lodash (works)
2021-07-15 11:53:52 -07:00