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

6895 Commits

Author SHA1 Message Date
Tiina Turban
b23e5380f2
Async migrations no email on not required (#8199) 2022-01-31 14:07:20 +01:00
Yakko Majuri
f274fea126
update plugins repo url (#8359)
* update plugins repo url

* Update posthog/api/plugin.py

* Update posthog/plugins/test/mock.py
2022-01-31 13:05:05 +00:00
Dawid Janik
6da21e2428
Increase request line limit for Gunicorn. (#8184) 2022-01-31 12:14:04 +02:00
Karl-Aksel Puulmann
53998c45cd
Allow overriding kafka host for clickhouse via KAFKA_URL_CLICKHOUSE env var (#8332)
* Allow overriding kafka host for clickhouse via KAFKA_URL_CLICKHOUSE env var

This is needed when using an external clickhouse which doesn't have the
same access to kafka as in-cluster traffic does.

Note that long-term we might need to also provide better auth mechanisms
here as well.

* Rename env variable
2022-01-31 10:21:08 +02:00
Michael Matloka
4b37908267
Fix "Rendered more hooks than during the previous render." in LineGraph (#8316) 2022-01-28 10:30:29 -08:00
Michael Matloka
03133f5f2a
Change plugin server HTTP_SERVER_PORT from 5000 to 6738 (#8335) 2022-01-28 14:11:56 -03:00
Michael Matloka
9d8f117976
Institute a limit of insight series/steps (#8320)
* Institute a limit of insight series/steps

* Increase funnel step count limit

* Reduce funnel step count limit
2022-01-28 14:20:52 +00:00
Karl-Aksel Puulmann
cb6839fe21
Revert "Adds reserved properties for filtering property definitions (#8291)" (#8340)
This reverts commit a6ff568d11.
2022-01-28 15:51:54 +02:00
Paul D'Ambra
a6ff568d11
Adds reserved properties for filtering property definitions (#8291)
* wip

* wip

* wip

* can filter events by reserved words - distinct_id, created_at, and timestamp - in the backend

* add reserved properties when showing property definitions

* capitalise name of property

* properties not reserved words

* get cypress working and make search work with reserved properties

* update event/values endpoint to use property_string_expr and so work with reserved properties

* remove created at from reserved words

* test fix

* fix test

* loosen cypress assertion

* exclude specific properties from the taxonomic property filter

* remove FE property definition fangling

* exclude $time and $timestamp property definitions from the backend

* add reserved properties in the API not the FE using a CTE

* use SQL comments in SQL strings

* remove mypy error

* fix enterprise property definitions

* fix tests and improve comment

* exclude materialised column rows with no values when getting event property definitions

* fix cypress test setup

* clean up dead code

* un-remove some not actually dead code

* correct cypress assertion

* try and fix a cypress test
2022-01-28 12:19:17 +00:00
Harry Waye
aafad724ea
fix(codespaces): only pin versions to major versions (#8318)
* fix: don't pin docker.io, avoid package install issues

* pin to major versions
2022-01-28 11:23:17 +00:00
Michael Matloka
e6d72f209a
Insight card expandable details (#8302)
* Add detail button to `InsightCard` and rework meta/viz sizing

* Add basic `InsightDetails`

* Flesh out `InsightDetails`

* Fix `FunnelsCue` hidden state

* Polish up sizing

* Fix typing

* Only render `InsightDetails` when needed

* Fix "Created by" alignment

* Show subfilter type (event or person)

* Improve saved insights cards grid responsiveness

* Fix funnels in saved insights card grid

* Fix details

* Tune query summary padding

* Support multiple breakdowns

* Use `PropertyKeyInfo` in series raw name

* Use compact properties display in Filters too

* Responsive "Show details", disable Paths and Retention details

* Tune `.SeriesDisplay__raw-name`
2022-01-28 11:23:32 +01:00
Paul D'Ambra
39047f03e9
Set better date picker defaults (#8312)
* add quick choices to date picker

* better defaults for date operators

* Update frontend/src/lib/components/PropertyFilters/components/OperatorValueSelect.tsx

Co-authored-by: Marius Andra <marius.andra@gmail.com>

* simplify accidentally esoteric conditional

* move from string to enum

* nicer datepicker open and close behaviour

* don't update the time on every render

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2022-01-28 11:11:12 +01:00
PostHog bot
8fdaea6b10
Update posthog-js to 1.17.6 (#8328) 2022-01-28 08:41:24 +00:00
Jesse Cooke
897ed833db
Make script executable again (#8327)
a71e899 removed the executable permission which broke AWS ECS deployment.
2022-01-28 09:15:18 +01:00
PostHog bot
c1da282356
Update posthog-js to 1.17.5 (#8325) 2022-01-27 20:57:06 +00:00
PostHog bot
7e40c7e027
Update posthog-js to 1.17.4 (#8322) 2022-01-27 19:13:18 +00:00
Tim Glaser
7a3091150f
Warn when dashboard is available (#8262)
* Don't allow user to set current team that they don't have access to

* Warn when dashboard is available in different project

* update exceptionshog

* fix tests

* fix failing

* fix typing

* tests
2022-01-27 18:49:29 +00:00
Neil Kakkar
7df6417526
Add link to experimentation docs (#8317)
* add link to experimentation docs
2022-01-27 18:33:28 +00:00
Harry Waye
04f19e42eb
chore(js-loading): Make JS_URL be used at runtime for js loading (#8299)
* chore(static-assets): set JS_URL for ECS

This is the breakaway change
[here](https://github.com/PostHog/posthog/pull/8299#pullrequestreview-864974223)

This will need to be merged in before the other change, as otherwise we
will end up using the default of /static/ to serve up the frontend in
production.

* chore(js-loading): Make JS_URL be used at runtime for js loading

Previously we would bake the JS_URL in at build time. Instead this
changes such that we can change this at runtime by specifying a `JS_URL`
env variable.

* comment on css loader snippet

* Default js_url to /

* Leave leading / when concatenating to JS_URL

I'd accidentally left this out before

* Remove trailing forward-slash from `JS_URL` django setting

Prior to the change to make JS_URL applicable at runtime, this variable
had no effect, hence the railing slash wasn't an issue.

This change fixes the frontend when running with debug true, i.e. when
we should be using the dev server for serving the frontend

* remove trailing slashes from JS_URL

* avoid unexpected concat behaviour

* add some comments around style sheet loading

* explicitly handle JS_URL not set for css as well
2022-01-27 16:45:26 +00:00
Tim Glaser
b74c54d117
Add hobby upgrade script (#8289)
* Add hobby upgrade script

* Add hobby upgrade script

* Write env file

* Pull new image
2022-01-27 08:45:17 -08:00
Harry Waye
862c3b85ba
chore(static-assets): set JS_URL for ECS (#8315)
This is the breakaway change
[here](https://github.com/PostHog/posthog/pull/8299#pullrequestreview-864974223)

This will need to be merged in before the other change, as otherwise we
will end up using the default of /static/ to serve up the frontend in
production.
2022-01-27 15:29:24 +00:00
Karl-Aksel Puulmann
9b59cd897c
Update clickhouse-orm (#8314)
Relevant PR: https://github.com/PostHog/infi.clickhouse_orm/pull/7
2022-01-27 16:57:03 +02:00
Karl-Aksel Puulmann
1897b3ac53
Make service requirements less strict for clickhouse (#8311)
Ran into this trying to use external clickhouse provided by altinity
cloud.

Clickhouse generally takes backwards compatibility seriously so no need
to up-cap the supported version range - we should just make sure
everything works at the minimum version.
2022-01-27 14:47:44 +02:00
Paul D'Ambra
eff71a5445
remove greyBadges flag and set all property filters to grey (#8296) 2022-01-27 13:43:07 +01:00
Eric Duong
b25ab232f9
yeet(insights): move insight viewset (#8173)
* remove insights and move tests

* update snapshots

* stickiness snapshots

* bring back ee available for ee specific features

* remove endpoint from posthog insightviewset

* fix snapshot

* remove repeat
2022-01-26 17:28:40 -05:00
Rick Marron
79a1734726
Add experiment to check recording filter expansion (#8283) 2022-01-26 13:44:48 -08:00
Alex Gyujin Kim
7e3bcc5855
Setup horizontal funnel experiment (#8281) 2022-01-26 11:29:48 -08:00
Neil Kakkar
f7f56c2740
some experiments cleanup (#8297) 2022-01-26 17:46:40 +00:00
Tim Glaser
0b4af4413e
Don't allow user to set current team that they don't have access to (#8256)
* Don't allow user to set current team that they don't have access to

* fix tests

* fix failing

* Fix and add test for teams from current organization
2022-01-26 16:35:49 +00:00
Marius Andra
98d76518ef
Report insight viewed when moving back/forward (#8268) 2022-01-26 16:00:06 +00:00
Michael Matloka
4bfe2f4de9
Use InsightCard in saved insights card view (#8285) 2022-01-26 16:34:31 +01:00
Neil Kakkar
f984c1ebdf
Setup instrumentation for Experiments (#8287) 2022-01-26 14:10:08 +00:00
Paul D'Ambra
3ff304df79
Respect the PGDATABASE env variable even when TEST or DEBUG are set (#8293) 2022-01-26 14:21:01 +01:00
Yakko Majuri
003f0682c4
Plugin server health endpoint (#7983)
* show last event ingested timestamp in system status

* wip plugin server healthcheck endpoint

* plugin server health endpoint

* fix readme prettier issue

* update tests

* move server.listen

* fixes, tests

* longer staleness default

* change endpoint to _health
2022-01-26 09:30:01 -03:00
Michael Matloka
97ca690e69
Fix insight description overflow (#8290) 2022-01-26 11:34:10 +00:00
Marius Andra
d81acd9fa3
be less strict with blocking saves (#8286) 2022-01-26 12:16:43 +01:00
Tim Glaser
860e3df509
Fix hobby deploy (#8288) 2022-01-26 11:04:31 +00:00
Michael Matloka
eb0d289e97
Insight last modification shown (#8273)
* Add Insight `last_modified_at` and `last_modified_by`

* Add "Last modified" to InsightCard

* Use `updated_at` as default `last_modified_at`

* Add `test_created_updated_and_last_modified`

* Fix comments style

* Fix `InsightMeta__modification` alignment

* Run `black`

* Run `black`

* Add `LastModified` to insight page

* Tune `LastModified` margin

* Update test_clickhouse_insights.ambr
2022-01-26 12:04:14 +01:00
Tim Glaser
3a92b25fa6
Fix serializer sentry errors (#8269)
* Fix serializer sentry errors

* fix tests
2022-01-26 09:38:03 +00:00
Paul D'Ambra
4d5e79fb36
Move close button into the property filters filter buttons (#8277)
* move close button into the property filters filter buttons, adds basic storybook

* wrap filters when popover is enabled

* no white icons when popover is disabled
2022-01-26 10:16:14 +01:00
Paul D'Ambra
8d9386c060
Reduce the number of events loaded for CSV export to 3500 (#8280) 2022-01-26 10:11:13 +01:00
Paolo D'Amico
87b691298f
Remove @alexkim205 flags (#8265) 2022-01-26 08:05:46 +00:00
Michael Matloka
2f5ee2f5a3
Persist dashboard auto refresh setting locally (#8275) 2022-01-26 07:46:37 +00:00
Rick Marron
b9877a6efe
recording filters work with backend events (#8276) 2022-01-25 16:42:01 -08:00
Alex Gyujin Kim
ad6ef7d4f8
Get insight legend toggling on Pie charts working (#8279) 2022-01-25 16:41:33 -08:00
Paul D'Ambra
7f4a8a11e0
Make the time filtering of the events tables explicit (#8247)
* add a pinned time filter to events table without changing any behaviour

* resolve tsc errors

* add commented out test that appears to fail because of  vs timestamp

* more clarity from tests around API interactions and simplify event logic API after param

* add comment explaining why we assert on the API mock expectations

* move the last test that asserts on API into the commented describe block

* makes property pills grey

* skip test instead of commenting

* rename away from tunnel vision about one year ago

* Add a tooltip to the pinned filter on events table

* remove pinned filters in favour of page-level description

* remove more pinned filter code

* avoid the page header wrap around
2022-01-25 22:34:34 +00:00
Karl-Aksel Puulmann
44e27995a4
Try improve wording of lifecycle tooltips (#8028)
Related: https://github.com/PostHog/posthog/issues/7994

Update frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>

Update frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>

Update frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>

Update frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>

Update frontend/src/scenes/insights/InsightTabs/TrendTab/TrendTab.tsx

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2022-01-26 00:32:11 +02:00
Paolo D'Amico
3f5f89f18f
Invite teammates experiment (#8271) 2022-01-25 17:56:37 +00:00
Rick Marron
0464a51d7d
Fix funnel order on the person modal for funnel trends (#8210)
* fix funnel order on funnel trend persons

* add utils test

* update test for cache update

* remove dupe import
2022-01-25 09:20:42 -08:00
Paul D'Ambra
7c3e6fb53b
Allow trends to do maths with page performance (#8255)
* allow trends to do maths with page performance

* try forcing a click in cypress test

* copy passing test from another branch

* copy passing test from another branch

* copy passing test from another branch
2022-01-25 16:25:20 +00:00