0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
Commit Graph

6982 Commits

Author SHA1 Message Date
Rick Marron
b2beccdb17
Recordings in funnels (#8180)
* first pass at adding recordings to funnels

* fix funnel trend sort orders

* cleanup

* fix spacing for ambr

* fix should_refresh

* fix potential missing funnel_step

* add test to normal + strict funnels

* update snapshots

* update snapshot pt 2

* remove support for unordered funnels

* update snapshot

* fix include recording filter

* add recordings to funnel correlation

* add final_event concept

* fix filter

* fix snapshot

* tests for strict funnel correlation actors

* fix materialized property

* cleanup

* fix bug with any order funnel + correlation persons modal

* respond to feedback

* revert back

* snapshot update
2022-02-15 13:04:57 -08:00
Eric Duong
927161370e
10 minute intervals (#8611) 2022-02-15 11:17:33 -08:00
Michael Matloka
9fb28eb850
Use AntD buttons in DashboardHeader (#8599) 2022-02-15 20:04:39 +01:00
Michael Matloka
9abae8f300
Hide upgrade button in GroupsIntroduction when not needed (#8607) 2022-02-15 19:29:09 +01:00
Tiina Turban
9939c3f601
Async Migrations: If sql error include sql ran in the message + handle error col limit (#8278) 2022-02-15 17:26:02 +01:00
Harry Waye
14b308047c
perf(cohorts): only fetch person id, not all model attrs (#8605)
Previously we were fetching everything from the person table, but we
only actually care about the ids.

I've added a couple of other TODOs in here of obvious improvements. I'm
not sure what this will do for our write IO issues, but hopefully will
relieve some load and data transfer.
2022-02-15 15:21:48 +00:00
Guido Iaquinti
b38eb4a5a8
frontend/src/scenes/persons/MergeSplitPerson - fix anchor (#8604) 2022-02-15 15:06:36 +00:00
Alex Gyujin Kim
5700efec05
remove ff (#8593) 2022-02-15 15:35:42 +01:00
Guido Iaquinti
3a96360da4
posthog/models/cohort: move sleep from 1s to 5s (#8601) 2022-02-15 14:42:30 +01:00
Neil Kakkar
a3ae826059
Fix bug with exposure calculation in trends (#8600) 2022-02-15 12:46:25 +00:00
Harry Waye
3be0cda8ce
perf(cohorts): reduce select batch size, and sleep 1 between (#8598)
* perf(cohorts): reduce select batch size, and sleep 1 between

Previously we were hammering the database, see
https://github.com/PostHog/product-internal/issues/256 for details. Now
we:

 1. reduce the batch by 5 times
 2. have a little sleep(1) between batches

We also add a little bit of logging for instance in failure cases.

* include stack trace info in warning

* just reraise so we don't lose stack trace

* use monotonic for timings, not time

* update snapshots
2022-02-15 11:53:20 +00:00
Neil Kakkar
286d8844d7
Send Experiment variants used for calculations with API response (#8597) 2022-02-15 11:48:41 +00:00
Alex Gyujin Kim
c5fd66a5f2
small bug (#8592) 2022-02-15 12:23:26 +01:00
Michael Matloka
8958c14b2e
Move dashboard permissions from DASHBOARD_COLLABORATION to PROJECT_BASED_PERMISSIONING (#8525) 2022-02-15 10:30:58 +01:00
Michael Matloka
3274fd7f6e
Dashboard creation modal (#8581)
* Rework dashboard creation UI to be a modal

* Update template field label

* Fix `defaultValue` typing

* Use proper field optionality indication

* Remove debug logging crap

* Add feature intro copy

* Remove nonsensical "Empty Dashboard" template

* Allow clearing template field
2022-02-15 01:05:05 +00:00
Eric Duong
e1476dfaf4
Or property filtering API (#8012)
* add test

* update func

* add include and settings

* diff method

* some prelim changes to make backend work

* add tests and logic for handling groups

* setup basic mixin parsing

* add tests

* types and switchover

* adjustment

* update snapshots

* update more snapshots

* update more snapshots

* update more snapshots

* typing

* snapshots

* clean up TODOs and types

* separate to_dict

* another property dict fix

* use operator dependening on condition

* fix tests

* update tests

* remove dummy condition

* update tests

* change name to groups

* another label

* rename filter_group to property_group

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2022-02-14 13:39:48 -05:00
Yakko Majuri
dae78d71c3
Plugin server turbo mode (#8578)
* Plugin server turbo mode

* update type

* also set updated_at on install

* don't hit pubsub if not necessary

* fix migration deps
2022-02-14 17:53:04 +00:00
Tiina Turban
6553b94cef
AM: 0002 fix partition query (#8557) 2022-02-14 18:05:52 +01:00
Tiina Turban
bd3b81e990
AM: 0002 precheck that we can rollback safely (#8556) 2022-02-14 18:03:33 +01:00
Tiina Turban
7f509900a9
AM: Remove 0002 progress function (#8554) 2022-02-14 17:45:40 +01:00
Eric Duong
3e7f0d37a4
fix(cohort): Add count field to cohort model (#8585)
* add count field to cohort model

* make count safe

* update version with count
2022-02-14 16:34:07 +00:00
Tiina Turban
097cbbc424
AM: Fix timezone warning (#8553) 2022-02-14 17:32:10 +01:00
Tiina Turban
dca4ef845d
AM: don't rollback from startup failure (#8552) 2022-02-14 17:30:50 +01:00
Tiina Turban
f4bcf81608
Fix async migration status label (#8550) 2022-02-14 17:30:31 +01:00
Neil Kakkar
2d613d7d97
Fix trend breakdown duplicates (#8583)
* keep breakdown count consistent

* add constant back

* update test
2022-02-14 16:20:45 +00:00
Michael Matloka
1f74f4b0f7
Make dashboard redesign final (#8496)
* Remove flag `dashboard-redesign` and purge old code

* Update dashboard.js Cypress suite partially

* Reflect #8493 in moved DashboardHeader

* Make diff saner by not renaming `LemonDashboardHeader.tsx` yet

* Make editing dashboard grid react faster

* Remove redundant CSS

* Update dashboard.js Cypress suite completely

* Update insights.js

* Update EditableField.scss

* Use `Insight.last_modified_at` instead of `updated_at`

* Deprecate `Insight.updated_at`
2022-02-14 15:05:18 +01:00
Yakko Majuri
501369b24e
disable atomics in piscina (#8562) 2022-02-14 12:56:43 +00:00
Michael Matloka
db4111df8a
Finalize dashboard restrictions (#8527)
* Update test_insight.py

* Secure insight endpoint for dashboard restrictions

* Prohibit unauthorized deletion of restricted dashboard

* Update class name in snapshots

* Address feedback
2022-02-14 12:55:16 +00:00
Tim Glaser
fc4c2c7840
Change CSRF token to be posthog specific (#8546)
* Change CSRF token to be posthog specific

* Remove existing csrf token

* don't delete cookie
2022-02-14 12:00:16 +00:00
Yakko Majuri
07f5f565ab
fix api key bot (#8566)
* fix api key bot

* add explicit assurance of hitting cache

* remove log

* revert debug

* prettier

* rename test
2022-02-14 11:55:35 +00:00
Alex Gyujin Kim
459d304e95
Part 1: Make everything taggable Backend (starting with Actions) (#8528) 2022-02-13 22:19:53 -08:00
Alex Gyujin Kim
4f630a31f4
Don't show actor modal inspect text on dashboards (#8505)
Co-authored-by: Michael Matloka <dev@twixes.com>
2022-02-11 10:00:31 -08:00
Tiina Turban
8eb94fdd37
Disable new person props tests (#8549) 2022-02-11 14:05:34 +01:00
Neil Kakkar
c30bb7886c
Update logic behind polling & querying events (#8537) 2022-02-11 10:43:47 +00:00
Tim Glaser
7b461edcb9
Fix non existent insight issue (#8547) 2022-02-11 10:01:50 +00:00
Tim Glaser
58c699fe71
Fix cohort loading error (#8543)
Closes #8468
2022-02-11 09:38:39 +01:00
Yakko Majuri
7503d2429e
remove status report hourly (#8534) 2022-02-10 17:02:09 +00:00
Rick Marron
6fc4bf56a9
Update hog image in onboarding (#8531)
* update image

* fix padding

* Update to a 2x export to prevent scaling issues.

Co-authored-by: Chris Clark <chris@posthog.com>
2022-02-10 08:04:33 -08:00
Yakko Majuri
d2d6769fd7
more and more plugin server metrics (#8544) 2022-02-10 16:02:47 +00:00
Harry Waye
bc43b8685e
feat(healthchecks): add clickhouse and redis health (#8497)
* feat(healthchecks): add clickhouse as a dependency

* feat(healthchecks): add celery broker healthcheck

* feat(healthchecks): add cache healthcheck, plus some misc updates

* add missing typing

* add missing typing

* add role cast

* Add logging for kafka connectivity check

* actually add healthcheck as middleware

* fix postgres failure check

* simplify postgres migration return value

* verboise -> verbose

Co-authored-by: Guido Iaquinti <4038041+guidoiaquinti@users.noreply.github.com>

* put interface validation at top of view

* remove unused imports

* show resp.content on status failures

* test(healthchecks): set log level to debug to pytest displays it

* restore logger level

* Bring up redis for backend ci tests

* up redis in non-cloud tests

Co-authored-by: Guido Iaquinti <4038041+guidoiaquinti@users.noreply.github.com>
2022-02-10 15:20:38 +00:00
Yakko Majuri
7e74e736f6
fix metrics jobs tags (#8541) 2022-02-10 13:22:45 +00:00
Harry Waye
4f07fb7658
test(snapshots): update clickhouse snapshot comments (#8535)
* test(snapshots): update clickhouse snapshot comments

It looks like Clickhouse has been removed from clickhouse sql comments,
but the snapshots haven't been updated. Not sure how this got past CI.

* missed a couple
2022-02-10 12:07:09 +00:00
Yakko Majuri
272dab8528
add additional plugin server metrics (#8536) 2022-02-10 11:42:18 +00:00
Michael Matloka
2207bbe84e Update snapshots 2022-02-09 21:14:53 +01:00
Tiina Turban
1abe9ef897
async mig check (#8503) 2022-02-09 20:45:59 +01:00
Tiina Turban
73e4f0db51
Add --check command to migrate_clickhouse (#8501) 2022-02-09 20:44:52 +01:00
Eric Duong
e4f65b1790
8356 versioning (#8449)
* version insights

* version and lock update

* make sure all tests work

* restore exception

* fix test

* fix test

* add specific id

* update plugin server test utils

* cleanup

* match filtering

* use timestamp comparison

* make tests work

* one more test field

* fix more tests

* more cleanup

* lock frontend when updating and restore refresh

* pass undefined

* add timestamp to background update

* use incrementer

* add field

* snapshot

* types

* more cleanup

* update tests

* remove crumbs

* use expressions

* make nullable

* batch delete

* fill null for static cohorts

* batch_delete

* typing

* remove queryset function
2022-02-09 12:19:00 -05:00
Marius Andra
ed25618236
Fetch person property values via Clickhouse (#8414)
* fetch person properties via clickhouse

* cleaner queries

* fix some types

* parse up to 100k persons with this prop, add back counts

* ignore something that's bound to error anyway

* no point making it too flat now

* revert flattening of lists

* add statsd

* ignore type

* add back conversion

* mypy

* better mypy

* refactor
2022-02-09 17:17:37 +01:00
Tim Glaser
1aea20c683
reintroduce assertNumQueries (#8487)
* reintroduce assertNumQueries

* Remove and speed up

* fix two more
2022-02-09 16:15:17 +00:00
Neil Kakkar
d5a48fbd06
Add support for Groups in Experiments (#8463)
* add support for Experiment groups

* update styling

* incl groups in property selection

* set participant type and respect FF group type on backend

* remove aggregation select
2022-02-09 15:32:54 +00:00