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

15989 Commits

Author SHA1 Message Date
Frank Hamand
3f9fd8aec7
feat: allow asgi/wsgi to be configurable by env var (#21635)
allow asgi/wsgi to be configurable by env var

This will let us roll out asgi separate across services as we had
issues with our recordings capture pods on asgi
2024-04-18 10:13:06 +01:00
Juraj Majerik
3083ed053f
fix(experiments): copy tweaks (#21614) 2024-04-18 07:10:43 +02:00
Michael Matloka
7000050354
fix(exports): Allow personal API keys on the GET /content action (#21462) 2024-04-18 00:30:15 +02:00
Eric Duong
9b610fc6da
chore(data-warehouse): add error code in handling (#21626)
add error code in handling
2024-04-17 18:03:53 -04: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
Tom Owers
b2773cb011
feat(data-warehouse): external data job rewrite (#21494)
* WIP

* Reworked the worker to self-manage making schema schedules and use async temporal calls

* Added schema status and use it for the job status

* Fixed existing tests

* Added new tests to cover check_schedule_activity

* Updated the source API to trigger active schemas

* Added master changes for stripe source

* Updated mypy

* add blank to field

* update migrations

* update mypy

* fix tpyes

* Update query snapshots

* Update query snapshots

* fix types

* update mypy

* type ignore

* add comment

* add default args, fix missing schema sync creation, add deletion logic

* remove defaults

* add blank

* cleanup

* add failsafe

* update reload logic

* create new schemas if triggered between reloads

* add schema off check

---------

Co-authored-by: eric <eeoneric@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-17 17:08:37 -04:00
Brett Hoerner
fff6720947
chore(plugin-server): use uuidv5 for person uuids, based on distinct_id (#21547)
* chore(plugin-server): bump uuid package

* chore(plugin-server): use uuidv5 for person uuids, based on distinct_id
2024-04-17 13:06:53 -06:00
Neil Kakkar
703e0b8f66
fix(cohorts): Restrict query by time range (#21621) 2024-04-17 18:20:42 +00:00
Bianca Yang
3f1dd0473c
fix: Fix Zendesk ticket link for billing admin (#21620)
remove extraneous customer from path
2024-04-17 10:00:43 -07:00
Frank Hamand
1900fd0dab
fix: Revert back from asgi to wsgi (#21618)
Revert back from asgi to wsgi

Asgi was causing memory issues in recording capture
2024-04-17 17:14:58 +01:00
Marius Andra
f76936ea05
fix(trends): session duration extraction (#21616) 2024-04-17 17:41:55 +02:00
Marius Andra
a6899ddd3c
fix(funnels): actors modal for groups (#21612) 2024-04-17 17:20:26 +02:00
Tomás Farías Santana
60ddec20d9
fix: Restart temporal container on failure (#21615) 2024-04-17 16:34:20 +02:00
David Newell
33d13aff4d
chore: remove ingestion experiment (#21583) 2024-04-17 15:12:59 +01:00
Neil Kakkar
dc514fb213
feat(experiments): Add exposure cohort flow (#21474) 2024-04-17 15:09:17 +01:00
Tomás Farías Santana
5bb8d098c8
fix: Wait for healthy db when starting temporal (#21610) 2024-04-17 14:55:01 +02:00
David Newell
2f0efba61c
feat: vertical resizer (#21605) 2024-04-17 13:54:50 +01:00
Juraj Majerik
606550c0b1
fix(experiment): fix incorrect rollouts (#21608) 2024-04-17 12:10:39 +00:00
Julian Bez
66d5be2cdf
fix(hogql): Fix hogql export breakdown limit (#21603) 2024-04-17 13:06:02 +01:00
Frank Hamand
86cd54c9e3
fix: Default path in asgi_scope to empty string (#21602)
Sometimes requests come in with an empty asgi scope
Default path to "" in these cases just so string startswith doesn't break
2024-04-17 12:52:24 +01:00
Marius Andra
ca49427017
fix(cohorts): optimized select from cohort_people (#21564) 2024-04-17 13:27:52 +02: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
PostHog Bot
18b2350e99
chore(deps): Update posthog-js to 1.126.0 (#21597) 2024-04-17 05:59:05 -04:00
Neil Kakkar
bbd49aac82
fix(decide): is not operator matches non-existing persons (#21576) 2024-04-17 09:18:06 +00:00
Juraj Majerik
1cc3d5a2b7
feat(experiment): add details for "Not significant" (#21596) 2024-04-17 11:17:25 +02:00
David Newell
880fb7078c
chore: timestamp button (#21565) 2024-04-17 09:28:52 +01:00
Xavier Vello
26c983431f
chore(blob): add recording_blob_ingestion_session_info_bytes summary (#21569) 2024-04-17 10:11:07 +02:00
timgl
a6314c6bb7
revert: "fix(insights): HogQL calculation of saved legacy insights" (#21590)
Revert "fix(insights): HogQL calculation of saved legacy insights (#21308)"

This reverts commit 957bc3cc5f.
2024-04-16 20:06:56 +01:00
Marcus Hof
bf79481bbb
refactor: Move contact us form onto a separate page (#21554)
move the contact us form onto another page
2024-04-16 18:31:49 +00:00
ted kaemming
cb5f851376
feat(hogql): Use distinct_id-based person overrides for PERSON_ID_OVERRIDE_PROPERTIES_JOINED mode (#21520) 2024-04-16 11:18:39 -07:00
Marcus Hof
cd3b8934ed
feat: show banner when there is an incident (#21553)
* show banner when there is an incident

* center button text and add background
2024-04-16 13:25:50 -04:00
Marius Andra
5f5d6a965b
feat(persons): single person query via postgres (#21587) 2024-04-16 18:44:09 +02:00
Michael Matloka
957bc3cc5f
fix(insights): HogQL calculation of saved legacy insights (#21308)
* fix(insights): HogQL calculation of saved legacy insights

* Fix typing

* Test

* Update mypy-baseline.txt

* Move `hogql_insights_enabled` a couple levels up

This way we support cached results properly too.

* Update insight.py

* Update mypy-baseline.txt

* Improve consistency of getting those results

* Restore `calculate_for_query_based_insight`

* Try to avoid circular import

* Fix typing mismatch

* Fix bad test expression syntax

* Improve error handling

* Fix tests using the unsupported `PersonsNode`

* Update UI snapshots for `chromium` (1)

* Fixed shared insights

* Satisfy mypy

* Fix `InsightResult` construction

* Fix typing

* Fix testing issues

* Update test_dashboard.py

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-16 18:36:35 +02:00
Juraj Majerik
5308b79d30
fix(experiment banners): fix running time/sample size comparison sign (#21582) 2024-04-16 15:54:55 +00:00
Marius Andra
3e68f1eba1
fix(ci): try to ignore temporal (#21559) 2024-04-16 17:51:42 +02:00
Marius Andra
99de66f434
feat(hogql): in cohort joins with version as well (#21552) 2024-04-16 17:51:23 +02:00
Michael Matloka
7276e4dd5f
fix(insights): Don't reset new insight when recording opened 2.0 (#21449)
fix(insights): Don't reset new insight when recording opened
2024-04-16 17:40:27 +02:00
Julian Bez
8859fafb64
fix: Make sure event names are string (#21568)
Fixes POSTHOG-SHM
2024-04-16 15:37:15 +00:00
Ben White
4fd7a761bf
feat: Refactor loading of snapshots (#20632) 2024-04-16 16:01:53 +01:00
Brett Hoerner
634cd8308d
chore(plugin-server): $process_person -> $process_person_profile (#21575) 2024-04-16 08:44:55 -06: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
PostHog Bot
a1880230fb
chore(deps): Update posthog-js to 1.125.0 (#21578) 2024-04-16 10:35:41 -04: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
PostHog Bot
a4d9eee0b1
chore(deps): Update posthog-js to 1.123.1 (#21573) 2024-04-16 09:54:56 -04: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
PostHog Bot
1fb3644671
chore(deps): Update posthog-js to 1.123.0 (#21570) 2024-04-16 09:16:03 -04: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
Juraj Majerik
4d7e9d6da6
feat(experiments): no results Trends diagnostics (#21558) 2024-04-16 13:04:58 +00: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