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

3506 Commits

Author SHA1 Message Date
Karl-Aksel Puulmann
96ad4a6d32
Fix build (#5162)
* Test: Update requirements

* Update version

* Attempt #3
2021-07-16 16:21:36 +03:00
Li Yi Yu
68030cfa53
Person modal cohort bug updates (#5152)
* update personsModalNew cohort id

* reuse selector
2021-07-16 11:11:24 +02:00
Sam Winslow
1167d68058
coercion to avoid spreading non-iterable instance (#5160) 2021-07-16 10:06:36 +02:00
James Greenhill
751a35cd35
Make DDLs more friendly towards running on a cluster and cleanups (#5091)
* Make DDLs more friendly towards running on a cluster

* Use primary CLICKHOUSE host for migrations and DDL

* loose ends on person kafka create

* posthog -> cluster typo

* add cluster to KAFKA create for plugin logs

* Feed the type monster

* clusterfy local clickhouse

* test docker-compose backed github action

* run just clickhouse and postgres from docker-compose

* move option to between up and <services>

* posthog all the things

* suggest tests run on  cluster

* posthog cluster for ci

* use deploy path for docker-compose

* fix for a clickhouse bug 🐛

* complete CH bug fixes

* 5439 the github actions pg configs

* remove CLICKHOUSE_DATABASE (handled automatically)

* update DATABASE_URL for code quality checks

* Missed a few DDLs on Person

* 5439 -> 5432 to please the people

* cleanup persons and use f strings <3 f strings

* remove auto parens

* Update requirements to use our fork of infi.clickhouse_orm

* fix person.py formatting

* Include boilerplate macros for a cluster
2021-07-15 17:20:37 -07:00
Paolo D'Amico
1b190e89cf
SSO domain whitelist (#5111) 2021-07-15 18:20:43 -05:00
Alex Gyujin Kim
7a73a0ac77
pluralize and singularize matching session events (#5159) 2021-07-15 14:03:00 -07:00
Alex Gyujin Kim
d98b8afdbc
some kea generated typing (#5158) 2021-07-15 13:42:33 -07:00
Michael Matloka
b1332e5f3a
Update posthog-foss.yml (#5156) 2021-07-15 22:29:33 +02:00
Eric Duong
4a4c82415a
better null check for annotations field (#5157) 2021-07-15 16:23:55 -04:00
Sam Winslow
e132d11663
move and rename ANTD_TOOLTIP_PLACEMENTS, set z-index on overlay (#4864)
Co-authored-by: Alex Gyujin Kim <alexgkim205@gmail.com>
2021-07-15 15:17:06 -04:00
Li Yi Yu
cf605deb5e
Fix squished height funnel trends graph (#5155)
* fix squished height funnel trends graph

* remove unused import
2021-07-15 19:04:48 +00:00
Michael Matloka
dc75327140
Move old funnel people to TS and fix look (#5153)
* Move old funnel people to TS and fix look

* Restore `EntityFilterProps`

* Improve `People` return code readability

* Include People component deprecation notice
2021-07-15 18:59:59 +00:00
Eric Duong
7a325c79bd
Add default conditions properly to time to convert params (#5154)
* add default conditions properly

* run again
2021-07-15 14:55:09 -04:00
James Greenhill
aecd5ce743
Add codespaces config for github remote dev (#5113)
* Add codespaces config for github remote dev

* add lodash for dev

* remove lodash and add echo for ease

* Update motd and remove lodash (works)
2021-07-15 11:53:52 -07:00
Paolo D'Amico
75f3682eab
Improve funnels stylings III (#5047) 2021-07-15 13:20:00 -05:00
Paolo D'Amico
dae1d86edb
Explicit org creation in self-hosted (#5108)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-07-15 12:43:34 -05:00
Karthikeyan Singaravelan
07504b8e32
Raise validation error on invalid json passed through properties query parameter (#4659)
* Raise validation error on invalid json passed through properties query param.

* Declare dictionary annotation for mypy.

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-07-15 19:33:24 +02:00
Yakko Majuri
9b997f7215
Plugin metrics tooltip fixes (#5099) 2021-07-15 12:25:47 -05:00
Li Yi Yu
973af368cd
Return correct chart tooltip date (#5135) 2021-07-15 12:05:36 -05:00
Neil Kakkar
8a1bd1c80e
Add Support for Excluding Events from Funnels (#5104)
* finish for ordered

* clean up, more tests, docs

* ensure correct filter values get saved to cache
2021-07-15 13:42:40 +01:00
PostHog bot
861059b38c
Update posthog-js to 1.12.0 (#5149) 2021-07-15 12:40:55 +01:00
Marius Andra
25c00acfdc
Abort trends requests & fix few bugs (#5136)
* don't end query if failed if new one came in already

* adjust breakpoints and end the query in the end

* abort trends fetch queries

* smaller delay

* fix entityFilter blinking bug and improve types

* new typegen

* remove second source of truth, change value to 300

* improve type accuracy

* log aborted queries

* report aborts in trendsLogic

* consolidate ViewType into types.ts

* one more

* and one more
2021-07-15 13:14:14 +02:00
Tim Glaser
267dbc7402
Use denormalised props in trends (#5148) 2021-07-15 12:35:06 +02:00
Tim Glaser
ec759c8238
Fix funnel visualisation (#5147) 2021-07-15 12:17:20 +02:00
Eric Duong
696b9fee24
Add clause and test for static cohorts event query (#5144)
* add clause and test

* add default
2021-07-15 00:05:59 -04:00
Eric Duong
1193818359
fix static cohort using precalculated query bug (#5132) 2021-07-14 23:15:10 -04:00
Alex Gyujin Kim
a5215f76db
make non time conversion graph types visible in self hosted (#5140) 2021-07-15 00:14:43 +00:00
Alex Gyujin Kim
824635b9a1
Funnel Empty States (and other minor empty state touchups) (#5138)
* add d3 histogram

* different layouts and fine tuning d3 histogram

* spacing math and comments

* row-align steps action dropdown and refactor

* cleanup

* hide time conversion behind ch flag and remove layout toggle

* remove animation and layout toggle

* better app-wide empty states and funnels histogram empty state

* revert fat finger

* erroneous type

* empty state comments
2021-07-14 16:17:34 -07:00
Alex Gyujin Kim
44e6a74092
Add D3 Histogram for Time Conversion Histogram (#5094)
* add d3 histogram

* different layouts and fine tuning d3 histogram

* spacing math and comments

* row-align steps action dropdown and refactor

* cleanup

* hide time conversion behind ch flag and remove layout toggle

* remove animation and layout toggle

* revert fat finger

* erroneous type
2021-07-14 14:52:26 -07:00
Karl-Aksel Puulmann
42df34418d
Set USING_PGBOUNCER env var everywhere (#5120)
We use it in settings.py to disable server-side cursors, but do not
explicitly set it. Fixing this.
2021-07-14 11:38:47 -07:00
Li Yi Yu
0721f96352
do not request time to convert funnel if there are less than 2 steps (#5129) 2021-07-14 13:08:37 -04:00
Marius Andra
96720e51bd
remove 5439 and restore sanity (5432) (#5128) 2021-07-14 17:14:27 +02:00
Paolo D'Amico
31305a2fe1
Remove new-onboarding-2822 when DEBUG=1 (#5119) 2021-07-14 08:52:29 -05:00
Li Yi Yu
2a15a964e0
Move persons modal logic out of trends (#5092)
* move persons modal logic out of trends

* refactor long action params

* pass filters through actions to decouple trendsLogic from personsModalLogic

* no longer need to preload trendsLogic

* move people loading to persons modal logic

* potential cohort logic id error fix
2021-07-14 09:36:30 -04:00
Yakko Majuri
b1f03b2fd7
update tooltip and metrics drawer z-indexes (#5097)
* update tooltip and metrics drawer z-indexes

* order z-indexes list
2021-07-14 10:21:51 -03:00
Michael Matloka
3ca42efd87
Allow time to convert across multiple steps (or whole funnel) (#5110)
* Allow time to convert across multiple steps (or whole funnel)

* Update comments
2021-07-14 13:17:24 +02:00
Paolo D'Amico
d9cf8b948e
Nuke order column from SessionDetails (#5115) 2021-07-14 10:32:44 +02:00
Li Yi Yu
a5842dca36
Add loading spinner for persons modal (#5105)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-13 22:44:58 +00:00
Tim Glaser
208d201bba
Remove accidental breakdown on funnels (#5106)
* Remove accidental breakdown on funnels

* fix
2021-07-13 18:17:54 +02:00
Eric Duong
bcffcde783
Add a test to make sure funnel cohort persons is returned (#5103)
* add a test to make sure funnel cohort persons is returned

* delete comment

* checking persons on cohort return in original test
2021-07-13 11:15:12 -04:00
Tim Glaser
543d567c5b
Fix denormalised props funnels (#5101)
* Fix denormalised props funnels

* fix settings

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2021-07-13 13:13:45 +00:00
Michael Matloka
c140a388bd
Disable Logs button for never enabled plugins (#5100) 2021-07-13 14:25:29 +02:00
Michael Matloka
871024f8c6
Funnel trends persons (#5060)
* JOIN in funnel trends query in a more optimal way

* Reformat funnel trends assert slightly

* Refactor `ClickhouseFunnelTrends` slightly

* Add `ClickhouseFunnelTrendsPersons` code

* Allow parametrization of funnel trends persons query

* Update test_funnel_trends.py

* Clean some funnel analysis code up

* Fix `drop_off` default in `FunnelTrendsPersonsMixin`

* Refactor for `ClickhouseFunnelTrends.get_step_counts_without_aggregation_query`

* Update test_funnel_trends.py

* Add an API test for funnel trends persons

* Use `FUNNEL_PERSONS_BY_STEP_SQL`

* Tests persons some more

* Remove unused imports
2021-07-13 09:57:19 +00:00
posthog-contributions-bot[bot]
486dc0217e
🤖: Add tirkarthi as a contributor 🎉 (#5095) 2021-07-13 10:44:06 +01:00
Karthikeyan Singaravelan
727cfa3464
Fix Django 4.0 compatibility warnings regarding ugettext_lazy. (#5093) 2021-07-13 11:26:19 +02:00
Eric Duong
ec53a13e1c
Funnel cohort breakdown (#5053)
* index the cohort params

* remove extra condition

* cohort working
2021-07-13 09:52:36 +01:00
Eric Duong
ad90717903
funnel bug if breakdown_type not passed (#5082)
* handle if brekadown type not passed

* move breakdown tests
2021-07-13 09:30:38 +01:00
Lleo Harress
3b21790027
Automatically add polyfills based on browser requirements (#5086)
* Latest browser’s versions and statistics

* Browserlists - Use "defaults" browser support

* Enable Babel polyfills based on usage

* Revert "Polyfill Object.fromEntries (for Safari <= 12) (#4999)"

This reverts commit ad63386a69.

* Different browser support for dev/prod for build performance
2021-07-13 10:01:04 +02:00
Paolo D'Amico
ca21d6a32d
Clarify math property aggregator descriptions (#5068)
* Clarify total event count

* extra improvements
2021-07-13 09:53:38 +02:00
PostHog bot
75b86cae6a
Update plugin server to 1.1.4 (#5090)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-07-12 23:06:28 +02:00