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

1267 Commits

Author SHA1 Message Date
timgl
24a2329879
perf(retention): Reduce retention mem usage (#11985)
* perf(retention): Reduce retention mem usage

* fix

* Update snapshots

* Update snapshots

Co-authored-by: timgl <timgl@users.noreply.github.com>
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2022-09-27 04:48:28 +01:00
Alex Gyujin Kim
e9047f868f
feat(recordings): add matching events to recordings list query (#11919)
Co-authored-by: alexkim205 <alexkim205@users.noreply.github.com>
2022-09-24 10:49:16 -04:00
Eric Duong
cc2db2e469
fix: formulas not working when multiple group or sessions are included (#11909)
* fix formulas not working when multiple

* Update snapshots

* Update snapshots

Co-authored-by: EDsCODE <EDsCODE@users.noreply.github.com>
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2022-09-22 10:58:24 -04:00
Neil Kakkar
fcdf313e63
fix(retention): Revamp persons modal (#11810)
* fix(retention): Revamp persons modal

* Update snapshots

* clean up & fix things

* Update snapshots

* fix tests, add modal fixes

Co-authored-by: neilkakkar <neilkakkar@users.noreply.github.com>
2022-09-22 10:32:41 -04:00
Marius Andra
91a43ea413
chore(actions): rename calculated events to actions, remove flag (#11864)
* chore(actions): rename calculated events to actions, remove flag

* remove even more action-event code

* remove deprecated tests

* fix cypress
2022-09-20 14:46:40 +02:00
Paul D'Ambra
cfee66b178
feat: use bulk update for calc event property usage (#11795)
* feat: switch calculate event property types to use bulk update

* remove snapshotting that changes based on clock in test

* update in batches since a few teams have very high numbers of definitions

* expect None not 0 in some tests

* needs to reset to zero every time the count runs

* count definitions from zero on each run

* use column optimizer to count properties

* allow for more thorough property discovery

* exclude person properties from event property calculation
2022-09-13 13:54:18 +01:00
Paul D'Ambra
41e4b3ffeb
fix: dashboard collaboration is required to change dashboard description (#11754)
* fix: dashboard collaboration is required to change dashboard description

* don't change description in tests

* listing dashboards is already nplus1

* check listing is not nplus1 when description is present

* remove nplus1 from sharing config when listing dashboards

* reduce diff

* Update snapshots

* handle optional features better

* Adds missing description test for creating a dashboard

Co-authored-by: pauldambra <pauldambra@users.noreply.github.com>
2022-09-13 10:23:05 +02:00
Guido Iaquinti
fa7c706af8
style(flake8): enable E402 (#11707) 2022-09-07 16:11:55 +02:00
Guido Iaquinti
6159137e60
fix(open): use utf-8 enconding and close fd (#11698) 2022-09-07 14:03:47 +02:00
Michael Matloka
5d2ad6c7bb
chore(deps): Update black to 22.8.0 (#11596)
* chore(deps): Update `black` to `22.8.0`

* Format
2022-09-05 14:38:54 +02:00
Michael Matloka
076f369c13
refactor: Remove obsolete Zapier hook code (#11614)
* refactor: Remove obsolete Zapier hook code

* Format code
2022-09-02 10:30:35 +00:00
Neil Kakkar
6cff7aef16
fix: snapshots on master (#11611) 2022-09-01 17:24:54 +01:00
Karl-Aksel Puulmann
38476aec71
fix(persons): un-ratelimit person destroy, use kafka producer for messages (#11594)
* fix(persons): Make delete_person use kafka producer

This allows these inserts _not_ to take us down

* Remove pdi deletion logic from split_person

This is not needed with the new pdi2 table

* Update create_person_distinct_id to accept is_deleted argument

* Refactor `delete_ch_distinct_ids` to avoid sync_execute

* Remove person#destroy rate limiting

This reverts https://github.com/PostHog/posthog/pull/11576

* Update splitting tests

* Skip tests when not on person-on-events
2022-09-01 14:54:49 +03:00
Ben White
7146b492c3
fix: Persons Search backend (#11586) 2022-09-01 11:09:56 +02:00
Neil Kakkar
17a25011aa
fix: materialised columns (#11558) 2022-08-31 21:02:33 +01:00
Neil Kakkar
37a312d24c
feat(person-on-events): Revamp pagination to handle 'lost' personIDs (#11500) 2022-08-31 14:20:05 +01:00
Eric Duong
92ddf4072b
feat: materialize person and groups on events (#11363) 2022-08-30 12:31:32 +01:00
Ben White
5e594486a6
fix: Increased subscription asset gen to 10 minutes (#11543) 2022-08-30 08:54:43 +00:00
Eric Duong
b34e307082
fix: querying by adding extra clause to do greedy filtering (#11481)
* fix querying by adding extra clause to do greedy filtering

* Update snapshots

* Update snapshots

* Update snapshots

* select clause

* add extra checK'

* remove unnecessary args

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* adjust table naming

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* use subq pattern

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* conditional

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

Co-authored-by: EDsCODE <EDsCODE@users.noreply.github.com>
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2022-08-25 16:13:03 -04:00
Neil Kakkar
565851626a
chore: Use instance setting for self-hosted person on events (#11472) 2022-08-25 14:28:41 +01:00
timgl
5d301aee0a
fix(debug queries): query query_log across all replicas (#11460)
* fix(debug queries): Use table distributed across cluster

* Use clusterAllReplicas
2022-08-24 13:06:39 +00:00
Eric Duong
99db479c90
fix(cohort): make cohort recalculation simpler (#11335)
* fix: don't subquery when unnecessary

* fix test

* try replacing

* try simpler query

* replace for now

* use single query remove subquery changes

* remove test

* remove props

* fix return

* Update snapshots

* Update snapshots

* refactor

* Update snapshots

* Update snapshots

* fix unwrapping

* Update snapshots

* Update snapshots

* fix false condition

* Update snapshots

* Update snapshots

* restore _timestamp

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* update snapshot

* add snapshot test

* remove replace

* Update snapshots

Co-authored-by: EDsCODE <EDsCODE@users.noreply.github.com>
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2022-08-23 22:14:41 -04:00
Michael Matloka
5557103cf1
chore(data-m): Make calculate_event_property_usage_for_team smarter (#11440)
Revert "Revert "chore(data-m): Make `calculate_event_property_usage_for_team` smarter" (#11439)"

This reverts commit ad8668208c.
2022-08-23 15:06:24 +00:00
timgl
ad8668208c
Revert "chore(data-m): Make calculate_event_property_usage_for_team smarter" (#11439)
Revert "chore(data-m): Make `calculate_event_property_usage_for_team` smarter (#11396)"

This reverts commit d8190124c5.
2022-08-23 15:39:56 +01:00
Michael Matloka
d8190124c5
chore(data-m): Make calculate_event_property_usage_for_team smarter (#11396)
* chore(data-m): Make `calculate_event_property_usage_for_team` smarter

* Fix import

* Add some comments

* Remove unneeded SQL

* Update manager.py

* Fix function kwarg

* Optimize `GET_EVENT_PROPERTY_SAMPLE_JSON_VALUES`

* Only run complete inference in demo

* Restore `TestPropertyDefinitionAPI` from `master`

* Add `test_complete_inference()` to `TestCalculateEventPropertyUsage`

* Restore `TestPropertyDefinitionAPI` from `master`
2022-08-23 14:09:41 +02:00
timgl
9116dcb253
fix: Fix and improve "Debug CH Queries" (#11150)
* fix: Fix and improve "Debug CH Queries"

* fix tests

* Update snapshots

* Update snapshots

* fix tests

* Update snapshots

* Update snapshots

* fix tests

Co-authored-by: timgl <timgl@users.noreply.github.com>
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2022-08-23 09:27:37 +00:00
Neil Kakkar
46eea77124
fix(experiments): Validate 3 variants for trend experiments, not 2 (#11414)
* fix(experiments): Validate 3 variants, not 2

* fix message

* fix message
2022-08-23 08:04:14 +01:00
Rick Marron
771db55f39
chore(recordings): add recording counts to status report (#11401)
* chore(recordings): add recording counts to status report

* remove recordings_count_total
2022-08-22 08:10:02 -07:00
Michael Matloka
efa6d30723
style: Fix Python formatting issue (#11397) 2022-08-19 15:32:26 +00:00
Ben White
6cd5628562
fix: Don't export Insights that are deleted (#11375) 2022-08-19 07:49:23 +00:00
Karl-Aksel Puulmann
0aa8557262
feat(data-deletion): Delete team/org data using AsyncDeletion model (#11338)
This replaces the existing cronjob to schedule and use the new
AsyncDeletion model.
2022-08-18 12:40:55 +03:00
Michael Matloka
af6f7f5afe
chore(demo): Give PostHog team members staff privileges in demo env (#11292)
* chore(demo): Give PostHog team members staff privileges in demo env

* Add tests

* Remove debug changes

* Update typing and add `is_staff` for existing users

* Update test

* Fix mocking and address feedback

* Debug CI

* Fix issue with tests

* Finally fix the tests

* Add comment

* Update signup.js

* Retain `attr` on email collision error
2022-08-17 10:21:28 +02:00
timgl
e80fa8b340
fix(persons): ordering and ghost persons (#10980)
* fix(Person): fix ordering of person api

* fix empty users

* fix tests

* fix tests
2022-08-04 14:09:10 +01:00
Neil Kakkar
454e30b31e
fix(experiments): Don't override properties (#11119)
* fix(experiments): Don't override properties

* fix

* update

* recover other test too
2022-08-03 18:37:42 +01:00
Neil Kakkar
4466212c83
fix(experiments): Manually filter out variants (#11115)
* fix(experiments): Manually filter out variants

* make test case more brittle
2022-08-03 16:29:01 +01:00
Neil Kakkar
9fbf83ad19
chore(feature-flags): Use feature flag instead of instance setting fo… (#11092)
* chore(feature-flags): Use feature flag instead of instance setting for person on events

* fix tests where timezone flag was removed

* remove arg
2022-08-02 16:11:16 +01:00
timgl
3f62f01d5f
fix(tests): Fix circular import when running local tests (#11028) 2022-07-28 21:28:51 +01:00
Eric Duong
8e0752c21d
fix: Remove excess intervals (#10992)
* fix: don't extend interval

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* fix: update snapshot

Co-authored-by: EDsCODE <EDsCODE@users.noreply.github.com>
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
Co-authored-by: timgl <tim@glsr.nl>
Co-authored-by: timgl <timgl@users.noreply.github.com>
2022-07-28 12:12:50 -04:00
timgl
b8c0a8cf5c
chore: Instrument license activation events (#10811) 2022-07-26 21:36:14 +01:00
Alex Gyujin Kim
53afdc7283
feat(data-m): add event type filter to list view (#10961) 2022-07-26 17:46:15 +00:00
Rick Marron
06570c5454
fix(recordings): add ON CLUSTER to recordings TTL statement (#10934) 2022-07-22 09:29:19 -07:00
Harry Waye
aefc3ab0f2
fix(persons): make sure "uuid" returned in person response (#10911)
* fix(persons): make sure "uuid" returned in person response

We reference this in a few places but it was omitted from the response
by https://github.com/PostHog/posthog/pull/10868/files

This simply adds it back in.

Relates to the issue mentioned in Slack
[here](https://posthogusers.slack.com/archives/C01GLBKHKQT/p1658349671498709)

* only add to persons serializer, avoid changes to groups

* Update snapshots

* add uuid to group response test

Co-authored-by: hazzadous <hazzadous@users.noreply.github.com>
2022-07-21 13:41:59 +00:00
Neil Kakkar
6c04bfad04
fix(experiments): Show experiment feature flags in list (#10654) 2022-07-20 12:59:26 +00:00
Neil Kakkar
2b370c2d1a
fix(data-management): Allow property type updates (#10897) 2022-07-20 13:55:25 +01:00
timgl
d0ae76d6f1
perf(Persons): Use clickhouse for person endpoint (#10868)
* perf(Persons): Use clickhouse for person endpoint

* update api

* Use uuids everywhere

* fix cohort id

* Update snapshots

* Update snapshots

* fix api

* fix order by

* Update snapshots

* Update snapshots

* fix api

* fix api

* Update snapshots

* fix ordering

* Update snapshots

* Update snapshots

* fix nits

* Update snapshots

Co-authored-by: timgl <timgl@users.noreply.github.com>
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2022-07-20 12:07:01 +00:00
Neil Kakkar
1f7f48486b
fix(funnels): Treat events with the same timestamp as in order (#10540) 2022-07-19 14:44:48 +01:00
timgl
d51416afd3
feat(licensing): Automatically renew licenses (#10737) 2022-07-15 09:29:14 +01:00
Neil Kakkar
fce85484ff
feat(lifecycle): Lifecycle persons on events (#9880) 2022-07-13 10:54:06 +00:00
Paul D'Ambra
8915785f0f
chore: removes unnecessary references to shared_dashboard.html (#10742) 2022-07-13 10:12:02 +02:00
Eric Duong
c29504ed01
fix(cohort): cohort performed event multiple overwriting param (#10746)
* fix: cohort performed event multiple overwriting param

* fix: change test name
2022-07-12 17:58:40 +00:00