0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 02:49:32 +01:00
Commit Graph

847 Commits

Author SHA1 Message Date
PostHog Bot
4dc0bf2486
chore(deps): Update posthog-js to 1.141.1 (#23230) 2024-06-25 09:54:38 -04:00
Dylan Martin
f49e0af963
feat(surveys): add configurable delay to popup surveys (#22780)
* initial commit

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* fixing the ui a bit

* write tests for the survey_popup_delay api

* remove todos that were todone

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update frontend/src/scenes/surveys/SurveyCustomization.tsx

Co-authored-by: Phani Raj <phani@posthog.com>

* Update frontend/src/types.ts

Co-authored-by: Phani Raj <phani@posthog.com>

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* code review feedback

* add hour max to survey delay

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* not sure how this was reverted, but it's back now

* was this it?

* was this it?

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* use latest version of posthog-js to activate the survey popup delay features

* forgot to commit the lockfile

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Phani Raj <phani@posthog.com>
2024-06-24 23:07:42 +00:00
PostHog Bot
186711f00f
chore(deps): Update posthog-js to 1.140.1 (#23161) 2024-06-21 13:44:44 -04:00
PostHog Bot
0a2b3b7fb7
chore(deps): Update posthog-js to 1.140.0 (#23146)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2024-06-21 16:23:48 +02:00
PostHog Bot
30532a5768
chore(deps): Update posthog-js to 1.139.8 (#23140) 2024-06-21 04:10:20 -04:00
PostHog Bot
9021b79681
chore(deps): Update posthog-js to 1.139.7 (#23138)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2024-06-21 08:56:13 +02:00
PostHog Bot
7b9bf83f36
chore(deps): Update posthog-js to 1.139.6 (#23128) 2024-06-20 21:28:19 +01:00
PostHog Bot
f19e5a9643
chore(deps): Update posthog-js to 1.139.5 (#23114) 2024-06-20 09:30:13 -04:00
PostHog Bot
77d9d8503d
chore(deps): Update posthog-js to 1.139.4 (#23107) 2024-06-20 07:00:01 -04:00
PostHog Bot
d155529a90
chore(deps): Update posthog-js to 1.139.3 (#23064) 2024-06-18 18:27:46 -04:00
Marius Andra
5ec6d44b4c
feat(hog): syntax highlighting for monaco (#23043) 2024-06-18 10:56:44 +00:00
PostHog Bot
7710c62fd2
chore(deps): Update posthog-js to 1.139.2 (#22984) 2024-06-14 11:10:13 -04:00
PostHog Bot
dc786b98cc
chore(deps): Update posthog-js to 1.139.1 (#22897) 2024-06-12 14:40:40 -04:00
PostHog Bot
9a2f08e50e
chore(deps): Update posthog-js to 1.139.0 (#22858) 2024-06-10 14:44:54 -04:00
PostHog Bot
d868ee9c81
chore(deps): Update posthog-js to 1.138.3 (#22836) 2024-06-10 12:05:06 -04:00
Paul D'Ambra
4e657b41aa
chore: dependency wrangling (#22829)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-10 09:49:47 +01:00
PostHog Bot
025b353809
chore(deps): Update posthog-js to 1.138.2 (#22831) 2024-06-10 03:49:36 -04:00
Dylan Martin
10bad1fc90
feat(surveys): posthog changes to support rendering (and not rendering) HTML in surveys (#22699)
* adds a beforeUnload condition to the survey editing experience so that users don't accidentally refresh the page and lose their survey edit progress.  Also fixes an issue where the initial survey creation process never set the isEditingSurvey state to true.

* remove this footer, it's superfluous if we have a sticker header

* omg linter chill I'm DEBUGGING

* Update UI snapshots for `chromium` (2)

* handle the  button logic, and fix the issue where the editing sessions were incorrectly persisting

* remove old log

* remove console logs

* add copy for survey wait period

* don't use local posthog-js

* use published version of posthog-js

* ah it was the LOCKfile

* Update UI snapshots for `chromium` (2)

* don't include this beforeunload stuff that is buggy

* clean more stuff

* default to text for the editor experience of new surveys if no values exist

* commit this for now

* remove log to satisfy the build

* oh jeez this isn't good

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* drawing the rest of the owl

* need to implement these changes too

* use my type everywhere

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* some bad merge resolutions

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* new changes

* fix formatter

* more ruff formatting

* adding some stories, wahey

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* added tests for the new API behavior

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* bring back og test

* a line

* self-review feedback

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* messed up formatting

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* rewrote the components to handle differentiating between tabs and survey content

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* a few more small tings

* proposal for content type setting

* this all works for the non-locked mode, let's get it working for locked stuff now

* this handles all the necessary state management, but still renders the HTML

* this allows us to not render the HTML if the paywall up

* deps

* temporary, I don't want to commit these

* juraj CR feedback

* don't commit the local version of the linked dep

* add permissions to render html to story

* fix selector

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2024-06-06 15:01:24 -04:00
PostHog Bot
fbad2ae0cc
chore(deps): Update posthog-js to 1.136.8 (#22708) 2024-06-05 08:05:16 -04:00
PostHog Bot
f62679f498
chore(deps): Update posthog-js to 1.136.7 (#22674) 2024-06-04 12:35:38 -04:00
Juraj Majerik
6a097d7f4c
chore(surveys): refactor survey preview (#22617) 2024-06-04 15:30:33 +00:00
PostHog Bot
5b20353d45
chore(deps): Update posthog-js to 1.136.5 (#22642)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2024-06-03 20:59:35 +01:00
PostHog Bot
3a7e09de48
chore(deps): Update posthog-js to 1.136.4 (#22630) 2024-06-03 07:09:47 -04:00
PostHog Bot
b6e3cbb759
chore(deps): Update posthog-js to 1.136.1 (#22568) 2024-05-29 12:56:12 -04: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
PostHog Bot
54dc442201
chore(deps): Update posthog-js to 1.134.0 (#22483) 2024-05-23 15:42:18 -04:00
David Newell
17c7e0d294
chore: date picker remove unused code (#22453) 2024-05-23 11:09:50 +01:00
PostHog Bot
c5db2a5a01
chore(deps): Update posthog-js to 1.132.3 (#22439) 2024-05-22 15:59:25 -04:00
PostHog Bot
52b711c05b
chore(deps): Update posthog-js to 1.131.2 (#22175) 2024-05-08 04:41:48 -04:00
PostHog Bot
fbc08d8e4b
chore(deps): Update posthog-js to 1.131.1 (#22174) 2024-05-08 03:36:04 -04:00
PostHog Bot
13d2915ffe
chore(deps): Update posthog-js to 1.130.2 (#22028) 2024-05-02 06:47:29 -04:00
PostHog Bot
23e80d0108
chore(deps): Update posthog-js to 1.130.1 (#21921)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2024-04-29 13:36:06 +02:00
PostHog Bot
eabf1f093e
chore(deps): Update posthog-js to 1.130.0 (#21884) 2024-04-26 05:14:41 -04:00
PostHog Bot
7e2cfa284c
chore(deps): Update posthog-js to 1.129.0 (#21819) 2024-04-24 12:29:10 -04:00
David Newell
671b053665
chore: upgrade sentry dependency (#21801) 2024-04-24 14:00:11 +01:00
Michael Matloka
d7d03b5985
feat(insights): HogQL calculation of saved legacy insights v4 (#21781)
* Revert "revert(insights): HogQL calculation of saved legacy insights v3 (#21778)"

This reverts commit c0be1d1412.

* Move HogQL in insight serialization to its own flag
2024-04-24 13:39:43 +02:00
Marius Andra
c0be1d1412
revert(insights): HogQL calculation of saved legacy insights v3 (#21778)
Revert "fix(insights): HogQL calculation of saved legacy insights v3 (#21720)"

This reverts commit 3ffa9acd75.
2024-04-23 23:17:47 +02:00
Michael Matloka
3ffa9acd75
fix(insights): HogQL calculation of saved legacy insights v3 (#21720)
* Revert "revert(insights): HogQL calculation of saved legacy insights v2 (#21718)"

This reverts commit 2f019a39ec.

* Fix `CACHE_ONLY` in place of `CALCULATION_ONLY_IF_STALE`

* Make `ExecutionMode` naming unmistakable

* Reset UI snapshots

* Account for #21707's `apply_dashboard_filters` change

* Make `QueryRunner` generic
2024-04-23 16:50:56 +02:00
David Newell
907221067e
chore: upgrade rrweb (#21734) 2024-04-23 15:44:16 +01:00
Julian Bez
5c80885f8e
feat(lint): Add unused-imports eslint plugin (#21750) 2024-04-23 10:26:20 +00:00
Ben White
c0b34067de
feat: Heatmaps toolbar code (#21630) 2024-04-23 07:52:44 +00:00
PostHog Bot
df053ee116
chore(deps): Update posthog-js to 1.128.3 (#21733) 2024-04-22 13:29:54 -04:00
Michael Matloka
2f019a39ec
revert(insights): HogQL calculation of saved legacy insights v2 (#21718)
Revert "fix(insights): HogQL calculation of saved legacy insights v2 (#21595)"

This reverts commit 3e2d28f233.
2024-04-22 11:53:04 +02:00
PostHog Bot
8c8f7bdcfa
chore(deps): Update posthog-js to 1.128.2 (#21708) 2024-04-22 04:40:57 -04:00
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
Julian Bez
a0fc086175
chore(deps): Upgrade ruff (#21648) 2024-04-19 14:19:10 +02:00
David Newell
479cd88c45
chore: make skip inactivity more subtle (#21660) 2024-04-19 09:16:43 +01:00
PostHog Bot
a62f09def8
chore(deps): Update posthog-js to 1.128.1 (#21650) 2024-04-18 09:54:41 -04: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