0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/ee/clickhouse/queries
Marius Andra 80a699ef4e
Clickhouse Sessions + Frontend Sessions updates (#1754)
* convert sessions table logic to TS

* convert rest of sessions to TS

* sessions table logic refactor, store date in the url

* add back/forward buttons

* load sessions based on the URL, not after mount --> avoids duplicate query if opening an url with a filter

* prevent multiple queries

* throw error if failed instead of returning an empty list

* date from filters

* rename offset to nextOffset

* initial limit/offset block

* indent sql

* support limit + offset

* load LIMIT+1 sessions in postgres, pop last and show load more sign. (was: show sign if exactly LIMIT fetched)

* based offset is always 0

* default limit to 50

* events in clickhouse sessions

* add elements to query results

* add person properties to sessions query response

* show seconds with two digits

* fix pagination, timestamp calculation and ordering on pages 2 and beyond

* mypy

* fix test

* add default time to fix test, fix some any(*) filter issues

* remove reverse

* fix mypy error, indent SQL

* add pagination test for postgres

* Run insight API tests in Clickhouse

Co-authored-by: Eric <eeoneric@gmail.com>
2020-10-01 05:27:35 -04:00
..
test "Clickhouse Features V2 (#1565)" (#1750) 2020-09-29 15:17:26 +01:00
__init__.py "Clickhouse Features V2 (#1565)" (#1750) 2020-09-29 15:17:26 +01:00
clickhouse_funnel.py "Clickhouse Features V2 (#1565)" (#1750) 2020-09-29 15:17:26 +01:00
clickhouse_paths.py "Clickhouse Features V2 (#1565)" (#1750) 2020-09-29 15:17:26 +01:00
clickhouse_retention.py change all to sync execute (#1776) 2020-09-30 11:18:35 -04:00
clickhouse_sessions.py Clickhouse Sessions + Frontend Sessions updates (#1754) 2020-10-01 05:27:35 -04:00
clickhouse_stickiness.py change all to sync execute (#1776) 2020-09-30 11:18:35 -04:00
clickhouse_trends.py "Clickhouse Features V2 (#1565)" (#1750) 2020-09-29 15:17:26 +01:00
util.py "Clickhouse Features V2 (#1565)" (#1750) 2020-09-29 15:17:26 +01:00