0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/ee
Harry Waye c595976779
fix(retention): fix breakdown people urls (#7642)
* fix(retention): fix breakdown people urls

This change returns people_url for each breakdown cohort in the
response. We also merge the initial and returning queries together,
as this makes it easier to align the people query also.

Note that I'm talking about person_id as opposed to actor_type etc.
but perhaps that can be a followup.

* clean up clickhouse params

* tidy up a little

* remove import

* remove non-breakdown specific code

* make cohort by initial event date a special breakdown case

* keep date for backwards compat

* Remove unused sql

* make test stable

* wip

* Get most of the tests working

* test(retention): remove graph retention test

We no longer need this, we have all the information we need from the
table response for retention, and can construct this on the frontend.

* revert any changes to posthog/queries/retention.py

* revert any changes to ee/clickhouse/models/person.py

* Revert posthog/queries/retention.py to merge-base

* Ensure actor id is a str

* Add type for actor serialiser for type narrowing

* run black

* sort imports

* Remove retention_actors.py

* fix typings

* format

* reverse str type

* sort imports

* rename

* split out functions

* remove deuplicate logic

* working

* fix type

* don't stringify

* fix test

* ordering doesn't matter

* trigger ci

Co-authored-by: eric <eeoneric@gmail.com>
2021-12-15 18:20:56 +00:00
..
api Make sure private projects stay secret for those without access (#7688) 2021-12-14 16:41:48 -06:00
benchmarks [actors] retention actors (#7495) 2021-12-09 10:11:21 -05:00
bin Special Migrations Runner (#7054 pt. 4) (#7446) 2021-12-13 13:00:27 -03:00
certs
clickhouse fix(retention): fix breakdown people urls (#7642) 2021-12-15 18:20:56 +00:00
idl
kafka_client Create and populate person_distinct_id2 table, add versioning to person_distinct_id (#7576) 2021-12-08 16:47:57 +02:00
management/commands special migration -> async migration (#7686) 2021-12-14 11:48:51 -03:00
migrations
models Groups: Introduction banner and empty state in persons page (#7520) 2021-12-09 08:37:39 +02:00
tasks Track organization groups usage (#7597) 2021-12-09 15:51:24 +02:00
__init__.py
apps.py
conftest.py Create and populate person_distinct_id2 table, add versioning to person_distinct_id (#7576) 2021-12-08 16:47:57 +02:00
docker-compose.ch.arm64.yml dev(clickhouse): use prebuild arm64 clickhouse image (#7187) 2021-11-18 08:43:43 +00:00
docker-compose.ch.test.yml
docker-compose.ch.yml Revert "Update the docker-compose dev environment to reflect prod better (include pgbouncer) (#6558)" (#6692) 2021-10-27 05:54:48 -07:00
LICENSE
pytest.ini Set debug, test, and primary_db env variables based on context (#7250) 2021-11-20 17:18:39 +00:00
settings.py Make settings dynamic for MATERIALIZED_COLUMNS_ENABLED (#7662) 2021-12-14 17:56:08 -08:00
urls.py