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

16022 Commits

Author SHA1 Message Date
Michael Matloka
3e2d28f233
fix(insights): HogQL calculation of saved legacy insights v2 (#21595)
* fix(insights): HogQL calculation of saved legacy insights v2

This reverts commit a6314c6bb7.

* Only use cached results in `process_query` for insight serializer

* Fix type of results

* Rename `RecalculationMode` to `ExecutionMode`

* Fix typing more

* Properly support dashboard filters

* Hacky fix for schema.py

* Don't test legacy `generate_insight_cache_key` with `query`

* Fix importing & typing

* Fix typo

* Update test_query_runner.py

* Account for property filter groups in dashboard filters

* Do return stale result in CACHE_ONLY case

* Fix `execute_hogql_query` espionage

Wow, this was a pain to figure out, only was an issue in CI, because the trigger was `TestCohort::test_creating_update_and_calculating_with_new_cohort_query` running prior to `TestInsight:: test_insight_refreshing_query` – had to use trial and error.

* Fix typing even more

* Don't require `pnpm` for `schema:build:python`

Matters in CI.

* Fix `schema:build:python`

* Fix sed usage

* Move `schema:build:python` to a bash script

* Validate cache properly

Clarifies the `cached_response.is_cached = True` situation.

* Fix Python formatting

* Update UI snapshots for `webkit` (2)

* Add test to ensure /query/ and /inisghts/ use the same cache

* Update mypy-baseline.txt

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-22 10:30:18 +02:00
Eric Duong
1df7232441
chore(data-warehouse): fix back button and form reset (#21687)
fix back button and form reset
2024-04-19 23:57:43 -04:00
David Newell
3f6c99420e
chore: restore person location to replay list (#21682)
* chore: restore person location to replay list

* country tooltip

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-19 17:12:17 +01:00
Tiina Turban
910f0119bb
feat: Add Plugin Private Access control to model (#21680) 2024-04-19 16:55:12 +02:00
Marius Andra
ec4529bb5d
fix(insights): retention time display on card (#21678) 2024-04-19 15:38:56 +02:00
Julian Bez
a0fc086175
chore(deps): Upgrade ruff (#21648) 2024-04-19 14:19:10 +02:00
Marius Andra
61ad509c08
feat(hogql): matchesAction() function (#21668)
* feat(hogql): matchesAction() function

* tests

* mypy

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-19 11:57:56 +02:00
Tomás Farías Santana
dd4a968ef8
feat: Send email notifications on failure (#21609)
* feat: Send email notifications on failure

* feat: Cap number of emails to one per day

* fix: Typing errors

* fix: Add email template

* fix: Only send an email in non-retryable failures

* fix: Add timezone to time in email

* feat: Pause batch export on reaching failure threshold (#21641)

* feat: Pause batch export on reaching failure threshold

* fix: Pause only on non-retryable failures

* refactor: Raise an exception on invalid check_window / failure_threshold
2024-04-19 09:31:42 +00:00
David Newell
50df39c95b
feat: improve inspector tabs (#21639) 2024-04-19 10:28:28 +01:00
Marius Andra
b24c614430
feat(hogql): modifiers for all query types (#21638) 2024-04-19 11:26:12 +02:00
Michael Matloka
81784e398c
fix(insights): Align total value WAU/MAU behavior of HogQL system with legacy (#21671) 2024-04-19 11:19:47 +02:00
David Newell
479cd88c45
chore: make skip inactivity more subtle (#21660) 2024-04-19 09:16:43 +01:00
Michael Matloka
b7add1d252
refactor(querying): Consolidate PersonOnEventsMode and PersonsOnEventsMode (#21628)
* Consolidate `PersonOnEventsMode` and `PersonsOnEventsMode`

* Fix multi-line imports too

* Fix member casing

* Fix typing

* Fix some more and update baseline

* Fix `PersonsOnEventsMode` member capitalization
2024-04-19 10:06:55 +02:00
Eric Duong
688cc36d35
chore(data-warehouse): clear form after new source submitted (#21666)
clear form
2024-04-18 16:08:14 -04:00
Julian Bez
3da867d00f
fix(exports): Fix exports for HogQL results without columns (#21631) 2024-04-18 19:52:45 +00:00
Eric Duong
c147f9114a
chore(data-warehouse): update schema should pause, unpause, or create schedules (#21663)
update should pause, unpause, or create schedules
2024-04-18 14:22:50 -04:00
Julian Bez
702030d523
fix: Fix DatabaseSchemaQuery to be sync (#21640) 2024-04-18 17:56:44 +00:00
Julian Bez
475fee5ca6
fix: Fix subscriptions sending twice (#21581) 2024-04-18 17:38:57 +00:00
Julian Bez
d7c0ae13fb
fix(insights): Fix typeKey to fix funnel series rename (#21646) 2024-04-18 16:28:58 +00:00
Neil Kakkar
9f43a3f4cd
feat(ci): split out temporal, make tests faster (#21636) 2024-04-18 16:25:33 +01:00
Eric Duong
c1ba97be67
chore(data-warehouse): update reload test (#21655)
update test
2024-04-18 15:02:52 +00:00
Julian Bez
f8144d1881
feat(queries): Run async query delay on_commit (#21642) 2024-04-18 15:45:57 +01:00
David Newell
ff0a4cd217
chore: cleanup recordings list (#21544) 2024-04-18 15:19:22 +01:00
PostHog Bot
a62f09def8
chore(deps): Update posthog-js to 1.128.1 (#21650) 2024-04-18 09:54:41 -04:00
Frank Hamand
f78f692ef6
fix: Reduce nginx unit request limit to 7.5k (#21649)
Reduce nginx unit request limit to 7.5k

50k was very high, taking over 5 hours even at busy times to reach this
Reduce it to 7.5k which should stop our memory usage creeping up constantly
when we aren't deploying
2024-04-18 14:50:41 +01:00
Nikita Vorobev
2530eaa7cb
feat(experiments): support moving experiment start date (#21362)
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2024-04-18 12:08:08 +00:00
Julian Bez
da361c07eb
fix(insights): Fix data viz table loading state (#21644) 2024-04-18 12:53:21 +01:00
Marius Andra
8f4450caac
feat(debug): add query json to debug ch queries (#21634) 2024-04-18 13:51:57 +02:00
PostHog Bot
4e4a7b741c
chore(deps): Update posthog-js to 1.128.0 (#21645) 2024-04-18 07:40:01 -04:00
PostHog Bot
28b530befe
chore(deps): Update posthog-js to 1.127.0 (#21643) 2024-04-18 07:20:10 -04:00
David Newell
18082255d1
chore: move actions into single ellipsis menu (#21606) 2024-04-18 11:36:44 +01:00
Robbie
55548f6a06
feat(session-table): Change lazy session fields to match property names (#21601)
* Change lazy session fields to match property names

* Update where clause extractor and tests

* Fix session breakdowns

* Fix session channel type tests

* Add session scope, but throw if used

* Update query snapshots

* Fix some other places that use the old name for duration

* Fix test_properties_chain_session

* Fix session rpoperty chain

* Fix web overview query

* Fix scope warning

* Fix error message string test

* Update query snapshots

* Add duration as an alias of $session_duration

* Remove duplicates after rebase

* Add tests for sessionwhereclauseextractor on a subtable

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-18 11:34:40 +01:00
David Newell
2539c08d96
chore: cleanup More button component (#21588) 2024-04-18 10:25:15 +01:00
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