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

19 Commits

Author SHA1 Message Date
Rick Marron
2b9917a915
Recordings in paths (#8015)
* add recordings to path query

* uncomment cache

* add clarifying comment

* works for start/end paths

* move to extra fields/properties

* add tests

* cleanup

* update ff name

* fix flaky test

* test and handle path_dropoff_key case
2022-01-18 15:29:52 -08:00
Neil Kakkar
b8bc05661f
Proposal: Getting rid of Neighbors in Path Queries (#6125) 2021-09-29 10:44:47 +01:00
Neil Kakkar
2fc8a9f293
Add Paths Person API dropoff functionality (#6124) 2021-09-27 13:30:24 -04:00
Neil Kakkar
0720cf260a
Various Path API fixes (#6097) 2021-09-27 10:47:16 +01:00
Neil Kakkar
0d5ac10b88
Add Paths Persons to the backend (#6035)
* Add paths persons to the backend

* fix flakey test
2021-09-22 10:53:10 +01:00
Neil Kakkar
d6e410b3a9
Remove Autocapture functionality from Paths (#5895)
Co-authored-by: eric <eeoneric@gmail.com>
2021-09-20 15:10:50 +00:00
Eric Duong
a8731a3d00
Add test for defining both a start and end point for path (#5820)
* add test for defining both a start and end point

* add multiple target handling

* fix type

* move param handling

* null condition
2021-09-07 12:00:39 -04:00
Neil Kakkar
9e909855a0
Treat URLs with trailing slash as equivalent in Paths computation, and some bug fixes (#5763)
* fix some path bugs

* cleanup

* dont remove / when only /

* use appendTrailingChar

* revert back

Co-authored-by: eric <eeoneric@gmail.com>
2021-08-27 15:28:01 -04:00
Eric Duong
8709e17c77
Path end point target (#5746)
* make functions dynamic

* add end test

* add adjustments

* remove reverse
2021-08-27 14:38:19 -04:00
Eric Duong
7b33153f44
add order clause and test (#5722) 2021-08-24 16:39:51 +00:00
Neil Kakkar
8da25427d5
Add Path Timings (#5693) 2021-08-24 15:22:16 +01:00
Eric Duong
06c5c6f7a4
New Paths Query (#5646)
* initial implementation

* debug some tests and revert format to original

* some minor cleanup

* add screen handling

* start point handling

* improve indexing so multiple sessions by the same user are handled properly

* all tests passing

* fix type

* fix types

* change types

* more types

* rename base paths

* upgrade start point functionality

* assertEquals, remove inequality

* Revert "assertEquals, remove inequality"

This reverts commit 5eb229fef7.

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2021-08-20 14:33:21 -04:00
Karl-Aksel Puulmann
fc5c6476a0
Revert "Revert "Add is_deleted column to person_distinct_id"" (#5194)
* Revert "Revert "Add is_deleted column to person_distinct_id (#5151)" (#5193)"

This reverts commit 401268bdba.

* A tweak for docker-compose builds

Co-authored-by: James Greenhill <fuziontech@gmail.com>
2021-07-19 19:47:41 -07:00
Karl-Aksel Puulmann
401268bdba
Revert "Add is_deleted column to person_distinct_id (#5151)" (#5193)
This reverts commit b1c11ba7dc.
2021-07-19 12:57:42 +03:00
Karl-Aksel Puulmann
b1c11ba7dc
Add is_deleted column to person_distinct_id (#5151)
* Update PERSONS_ACTIVE_USER_SQL query

* Remove dead import

* Update lifecycle queries

* Update BREAKDOWN_ACTIVE_USER_INNER_SQL to use new persons query

* Update STICKINESS_SQL

* Update STICKINESS_PEOPLE_SQL

* Update STICKINESS_ACTIONS_SQL

* Update paths query

* Update events query

* Update CALCULATE_COHORT_PEOPLE_SQL

* Update retention queries

* Update TOP_PERSON_PROPS_ARRAY_OF_KEY_SQL

* Update EVENT_JOIN_PERSON_SQL

* Update GET_PERSON_ID_BY_ENTITY_COUNT_SQL

* Remove remaining references to old get latest person query

* Update GET_DISTINCT_IDS_BY_PROPERTY_SQL

* Fix code style issue

* Update table engine for person_distinct_id table

* don't select team_id

* Make person deletion work

* Use replacingmergetree over collapsing with is_deleted

Replacing an existing engine is hard, let's not do it

* Update query in test

* add migration

* set database on materialized views

* Update plugin server to 1.1.6

Co-authored-by: James Greenhill <fuziontech@gmail.com>
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-07-19 12:43:44 +03:00
Eric Duong
954069b00d
Swap out person_distinct_id in queries with subquery (#3828)
* swap out distinct_id table in queries with a subquery that will only consider latest distinct_ids

* wrong import

* fix missin params

* more missing params
2021-04-01 12:56:42 -04:00
Tim Glaser
9823e38163
Move away from ewap to speed up queries (#2540)
* Move away from ewap to speed up queries

* Lower limit to 10
2020-11-30 11:22:31 +01:00
Eric Duong
06cf6562e3
Filter person_distinct_id table further before joining (#2028)
* add aliases

* select specific
2020-10-26 09:18:11 -04:00
Eric Duong
cecb7510b8
General Reorganization (#1981)
* small tweaks and reorganize session queries

* move all queries to query folder
2020-10-22 07:35:57 -04:00