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

711 Commits

Author SHA1 Message Date
Frank Hamand
653798c7e3
fix: Revert "feat: use new deployment trigger for temporal worker deployments" (#22677)
Revert "feat: use new deployment trigger for temporal worker deployments (#22…"

This reverts commit 0834410018.
2024-06-04 16:52:30 +01:00
Frank Hamand
0834410018
feat: use new deployment trigger for temporal worker deployments (#22668)
use new deployment trigger for temporal worker deployments

these trigger a new workflow in posthog/charts which creates a statefile
commit instead of deploying with manually set values from env vars.

the statefile commit then triggers a deploy - this means 100% of our
deployment state is codified, simplifying rollbacks and deploys
2024-06-04 16:12:54 +01:00
Marius Andra
e6230b4afc
feat(hog): dicts and arrays (#22618) 2024-06-04 12:11:13 +00:00
Eric Duong
75f5c7c4a9
chore(insights): remove flag hogql-insights-preview (#22651)
* remove flag

* cleanup

* killing code

* update image exporter

* mypy baseline

* test_insight_cache

* kill tests that don't work anymore

* remove settings

* test passes

* test pass

* mypy fixes

* remove commented code

* rename and add capture back in

* remove references to feature flag

* remove the falg

* comment out failing test

* Update UI snapshots for `chromium` (1)

* fix jest

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Fix storybook test

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: Alexander Spicer <aspicer@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tom Owers <owerstom@gmail.com>
2024-06-04 13:08:32 +01:00
Marius Andra
0198ec7e1d
feat(hog): f-strings (#22577) 2024-05-30 20:32:39 +02:00
Tom Owers
5e00b6b1aa
feat(data-warehouse): Added SSH tunnelling option for postgres syncs (#22511)
* WIP

* SSH tunnel for postgres

* Remove unused class

* Updated mypy

* Tests and security

* Added tests for data import

* Update UI snapshots for `chromium` (2)

* Added upterm to debug CI

* Removed hogvm test

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Updated requirements

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Use the correct wheel version

* Update query snapshots

* Update query snapshots

* Restore skipped tests in action

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Skip hogvm tests

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Use ActivityEnvironment for data import tests

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Move test

* Update query snapshots

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-29 15:49:53 +01:00
timgl
cd7d9be694
chore: Only fetch master branch in tests (#22524) 2024-05-28 08:48:00 +01:00
Michael Matloka
31f97c118a
chore: Add a few flags to PERSISTED_FEATURE_FLAGS (#22487)
* chore: Add a few flags to `PERSISTED_FEATURE_FLAGS`

* Add `session-table-property-filters`

* Remove `PERSISTED_FEATURE_FLAGS` from PR deploys

* Don't persist `new-experiments-ui`
2024-05-24 18:41:06 +02:00
Michael Matloka
b1cb7458dc
test(insights): Run all tests with filters-based insights using HogQL (#21861)
* ci: Run core backend tests with both HogQL and legacy insights

* Double the number of tests

* Fix env var setting

* Add some HOGQL_INSIGHTS_OVERRIDE overrides in tests

* Mark `Insight.last_refresh` as deprecated

* Fix bad merge

* Update query snapshots

* Update query snapshots

* Update test_team.py

* Actually remove legacy backend from matrix

* Update test_fetch_from_cache.py

* Use `update_cached_state` in `calculate_for_query_based_insight()`

* Clean up CI changes and a comment

* Fix `update_cached_state` typing

* Update test_fetch_from_cache.py

* Update test_insight_cache.py

* Update test_insight_cache.py

* Clarify `generate_insight_cache_key` as legacy function

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-23 21:41:05 +00:00
Thomas Obermüller
6bfbf54b6d
fix(ci): fix storybook deploy (#22451) 2024-05-23 09:43:18 +02:00
Frank Hamand
ef7d9af7dd
chore: Add new deployment for general purpose temporal worker (#22407)
Add new deployment for general purpose temporal worker
2024-05-22 09:24:57 +01:00
dependabot[bot]
18ee601998
chore(deps): bump pnpm/action-setup from 2 to 4 (#22269)
* chore(deps): bump pnpm/action-setup from 2 to 4

Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2 to 4.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v2...v4)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* Use pnpm version from package.json engines

* Fix a couple of workflows

---------

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 <michal@matloka.com>
2024-05-20 20:03:04 +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
James Greenhill
f1d32e6969
chore: remove 23.11 clickhouse from matrix testing (#22165) 2024-05-07 22:29:03 +00:00
dependabot[bot]
502bbcd582
chore(deps): bump iFaxity/wait-on-action from 1.1.0 to 1.2.1 (#22090)
Bumps [iFaxity/wait-on-action](https://github.com/ifaxity/wait-on-action) from 1.1.0 to 1.2.1.
- [Release notes](https://github.com/ifaxity/wait-on-action/releases)
- [Changelog](https://github.com/iFaxity/wait-on-action/blob/next/release.config.js)
- [Commits](https://github.com/ifaxity/wait-on-action/compare/v1.1.0...v1.2.1)

---
updated-dependencies:
- dependency-name: iFaxity/wait-on-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 09:37:51 +00:00
Nikita Vorobev
0955a0bc52
fix: allow choose another dashboard template after pressing back (#21248) 2024-04-24 14:07:22 +02:00
Ben White
5c273be25e
fix: Remove old cdp files (#21712) 2024-04-23 09:10:42 +02:00
Michael Matloka
233d3a9098
chore(deps): Remove unused Python requirements (#21580)
* chore(deps): Remove unused Python requirements

* Also remove `dnspython`

* Recompile txts

* Revert "Also remove `dnspython`"

This reverts commit 7eaf89979b774808cc0920c34a3a1cf1d75d2f14.

* Re-recompile txts

* Remove more deps based on `deptry`

* Restore `phonenumberslite`

* Restore `geoip2`

* Restore `python3-saml`

* Move `prance` and `openapi-spec-validator` to dev reqs

* Reorder `geoip2`

* Force HTTP 1.1 in downloading MMDB

Should fix CI failures caused by `curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)` (e.g. https://github.com/PostHog/posthog/actions/runs/8741861825/job/23988870688?pr=21580).
2024-04-22 22:52:47 +02:00
Michael Matloka
0cf2955159
chore(clickhouse): Capture final SQL in Sentry errors, again (#21688)
* Revert "revert: "chore(clickhouse): Capture final SQL in Sentry errors" (#21479)"

This reverts commit 15627818f6.

* Only upgrade `clickhouse-driver` to 0.2.6

* Add "Run migrations for this PR"
2024-04-22 13:56:32 +02:00
Julian Bez
a0fc086175
chore(deps): Upgrade ruff (#21648) 2024-04-19 14:19:10 +02:00
Neil Kakkar
9f43a3f4cd
feat(ci): split out temporal, make tests faster (#21636) 2024-04-18 16:25:33 +01:00
Neil Kakkar
b7c2d36f34
fix(ci): Show docker compose logs only when tests don't run (#21613) 2024-04-17 22:50:09 +01:00
Paul D'Ambra
f33f3db069
chore: switch back to GH runners (#21600) 2024-04-17 11:51:56 +01:00
Frank Hamand
2c0dc75016
feat: Switch from wsgi to asgi (attempt 3) (#21579)
* Try switching from wsgi to asgi

By default I don't believe this will change anything (everything runs
sync by default), but it will allow us to wrap e.g. clickhouse calls in
sync_to_async wrappers to stop them blocking for ages

* Trigger e2e tests

* Set env var with ASGI/WSGI info

* Fix sentry tracing sampling in ASGI

This was relying on wsgi_environ which is replaced by asgi_scope

* Remove bad headers typecast

* fix linting errors
2024-04-17 11:39:39 +01:00
dependabot[bot]
11fa690163
chore(deps): bump pascalgn/automerge-action from 0.15.5 to 0.16.3 (#21533)
Bumps [pascalgn/automerge-action](https://github.com/pascalgn/automerge-action) from 0.15.5 to 0.16.3.
- [Release notes](https://github.com/pascalgn/automerge-action/releases)
- [Commits](https://github.com/pascalgn/automerge-action/compare/v0.15.5...v0.16.3)

---
updated-dependencies:
- dependency-name: pascalgn/automerge-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-16 16:39:32 +02:00
Frank Hamand
b180c2e6f9
Revert "feat: Switch from WSGI to ASGI (attempt #2)" (#21577)
Revert "feat: Switch from WSGI to ASGI (attempt #2) (#21572)"

This reverts commit d948a1804d.
2024-04-16 15:08:30 +01:00
Frank Hamand
d948a1804d
feat: Switch from WSGI to ASGI (attempt #2) (#21572)
* Try switching from wsgi to asgi

By default I don't believe this will change anything (everything runs
sync by default), but it will allow us to wrap e.g. clickhouse calls in
sync_to_async wrappers to stop them blocking for ages

* Trigger e2e tests

* Set env var with ASGI/WSGI info

* Fix sentry tracing sampling in ASGI

This was relying on wsgi_environ which is replaced by asgi_scope
2024-04-16 14:47:29 +01:00
Frank Hamand
c41d0736b7
fix: Revert "feat: Switch to asgi over wsgi" (#21571)
Revert "feat: Switch to asgi over wsgi (#21334)"

This reverts commit 2e4547ced6.
2024-04-16 14:05:00 +01:00
Frank Hamand
2e4547ced6
feat: Switch to asgi over wsgi (#21334)
* Try switching from wsgi to asgi

By default I don't believe this will change anything (everything runs
sync by default), but it will allow us to wrap e.g. clickhouse calls in
sync_to_async wrappers to stop them blocking for ages

* Trigger e2e tests
2024-04-16 13:36:26 +01:00
Paul D'Ambra
74ce620c6b
feat: event debug view in the toolbar (#21523)
* feat: toolbar-live-activity

* Update UI snapshots for `chromium` (2)

* fangling

* Update UI snapshots for `chromium` (2)

* rename as event debugger

* fiddl

* simple list

* don't commit yalc

* Update frontend/src/toolbar/debug/EventDebugMenu.tsx

Co-authored-by: Ben White <ben@posthog.com>

* move some logic to the logic

* more logic for the logic gods

* fix filters and make it easier to see what's the extended props area

* empty state message

* stories

* name

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben White <ben@posthog.com>
2024-04-15 21:59:01 +01:00
Steven Shults
8403889bbc
refactor: Switch bug report template to GitHub's beta issue templates to allow pulling in debug info via URLs (#21506)
* Create bug_report.yml

Using GitHub's new issue templates, allowing us to add debug-info via url

* Update bug_report.yml

* Update bug_report.yml

* Update bug_report.yml

* Update bug_report.yml
2024-04-15 21:40:50 +02:00
Steven Shults
6b52627b71
refactor: Switch feature request template to GitHub's beta issue tem… (#21508)
* Refactor:  Switch feature request template to GitHub's beta issue templates to allow pulling in debug info via URLs

Using GitHub's new issue templates, allowing us to add debug-info via url

* Update feature_request.yml

* Update .github/ISSUE_TEMPLATE/feature_request.yml

Co-authored-by: Marcus Hof <13001502+MarconLP@users.noreply.github.com>

* Update .github/ISSUE_TEMPLATE/feature_request.yml

Co-authored-by: Marcus Hof <13001502+MarconLP@users.noreply.github.com>

---------

Co-authored-by: Marcus Hof <13001502+MarconLP@users.noreply.github.com>
2024-04-15 21:40:43 +02:00
Frank Hamand
cfb9519aab
fix: Remove concurrency group from container-images-cd (#21541)
Remove concurrency group from container-images-cd

This can cause deploys to be skipped if another change is merged that doesn't trigger the
same deploys. There's no harm in running this job concurrently as the triggered deploys will
still be in concurrency groups
2024-04-15 15:23:23 +01:00
Jacob Gillespie
eaec7f2e88
fix(ci): wait for DBs before starting Temporal (#21510) 2024-04-12 11:45:22 +02:00
Juraj Majerik
ed0abf2d6f
feat(experiments): explore results in an insight (#21235)
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2024-04-11 11:05:41 +02:00
Paul D'Ambra
15627818f6
revert: "chore(clickhouse): Capture final SQL in Sentry errors" (#21479)
Revert "chore(clickhouse): Capture final SQL in Sentry errors (#21436)"

This reverts commit 5edead90c0.
2024-04-10 22:13:50 +01:00
Michael Matloka
5edead90c0
chore(clickhouse): Capture final SQL in Sentry errors (#21436)
* chore(clickhouse): Capture final SQL in Sentry errors

* Upgrade Sentry and use the `clickhouse-driver` integration

* Turn `before_send_transaction` into `error_sampler`

* Update `escape_param_for_clickhouse`

* Fix Sentry init

* Revert "Turn `before_send_transaction` into `error_sampler`"

This reverts commit 8810b49416.

* Fix order of pip installations in migration checks
2024-04-10 21:04:39 +02:00
Frank Hamand
1bd7589c2c
feat: Pass PR labels through to deploy action (#21434)
* Pass PR labels through to deploy action

* Add the get-pr-labels action

* fix syntax error
2024-04-09 12:13:58 +01:00
James Greenhill
5c323f1b4e
feat: Bump version of CH to 23.12.5.81 (#21318)
* feat: Bump version of CH to 23.12.5.81

* test both right now

* Test 24.3.2.23

* back to 23.12.5.81
2024-04-08 18:05:41 -07:00
Paul D'Ambra
2190c51888
revert: "chore(CI): revert "chore: syphar is deprecated. fangle python actions"" (#21389)
* Revert "chore(CI): revert "chore: syphar is deprecated. fangle python actions…"

This reverts commit 1f2ff4ac32.

* not on depot?

* was missing a syphar removal :/

* was missing a syphar removal :/

* Update query snapshots

* back to depot

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-08 09:54:08 +00:00
Xavier Vello
1f2ff4ac32
chore(CI): revert "chore: syphar is deprecated. fangle python actions" (#21267)
Revert "chore: syphar is deprecated. fangle python actions (#21249)"

This reverts commit ea522d89d4.
2024-04-02 10:25:49 +00:00
Paul D'Ambra
ea522d89d4
chore: syphar is deprecated. fangle python actions (#21249) 2024-04-01 13:02:12 +01:00
James Greenhill
5e3c3b96e8
chore: test new migrations to see if an existing migration already exists with that index for CH (#21236)
* chore: catch bad indexes for CH migrations

* loggin instead of print

* update exit states

* include changes to ci

* add more details to logger

* git it

* checkpoint

* nicer logs

* don't use branch on ci

* handle git states more gracefully

* looking pretty good

* remove test migration
2024-03-29 08:08:38 -07:00
Paul D'Ambra
597144ddf3
chore(ci): switch some workflows entirely to depot (#21187)
* chore(ci): switch some workflows entirely to depot

* yolo
2024-03-28 09:16:14 +00:00
James Greenhill
4d75323ac3
chore: tune up the hobby deploy testing (#21142)
* chore: tune up the hobby deploy testing

* quick fix

* put everything in the class

* include release tag in name

* split this out into stages for GA

* test throwing ci off

* fix

* test destroy

* check env

* exit if things don't work out

* debug

* somewhat important to create the dns record here hah

* record name as well

* maybe?

* update user_data

* set dns ttl to 30 sec

* silly dns mistake

* correct DNS error
2024-03-26 09:54:22 -07:00
Paul D'Ambra
6eeda081a8
revert: "chore: only run depot runner comparison when labelled" (#21129)
* Revert "chore: only run depot runner comparison when labelled (#21092)"

This reverts commit 6eea1a6554.

* Apply suggestions from code review
2024-03-25 12:19:26 +00:00
Paul D'Ambra
6eea1a6554
chore: only run depot runner comparison when labelled (#21092)
* chore: only run depot runner comparison when labelled

* fix
2024-03-21 23:15:17 +00:00
Paul D'Ambra
3f93d5fdaf
chore(ci): use depot 4 cpu runner (#21066)
chore: use depot 4 cpu runner
2024-03-21 12:16:07 +00:00
Paul D'Ambra
18d5766772
fix: e2e running time should wait for after cypress tests (#21016) 2024-03-19 20:22:36 +00:00