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

6858 Commits

Author SHA1 Message Date
Paul D'Ambra
5f7d3c566d
Deprecates property_type_format (#8292)
* remove property_type_format concept

* remove nulls from tests

* deprecate not remove (and see what tests fail)

* plugin server tests care about property_type_format

* fix tests
2022-02-01 14:08:55 +00:00
Michael Matloka
e4c228fca9
Use more meaningful file/prop names in LemonRow/LemonButton/LemonSwitch (#8375)
* Rename `index.tsx` files away for LemonRow and LemonButton

* Rename LemonSwitch prop `block` to `outlinedBlock`
2022-02-01 14:29:40 +01:00
PostHog bot
a485b72844
Update posthog-js to 1.17.7 (#8374) 2022-02-01 10:36:53 +00:00
Yakko Majuri
09e37663f4
Add dead letter queue metrics to system status (#8294)
* add dead letter queue metrics to system status

* today -> last 24h

* fix test
2022-01-31 15:10:10 -03:00
Neil Kakkar
6ec22ce452
Make experiment descriptions editable & Tooltip for significance threshold (#8357)
* make experiment descriptions editable

* add tooltip and fix colours
2022-01-31 17:06:24 +00:00
Paolo D'Amico
8af363e155
Release v1.32.0 & announce (#8360) 2022-01-31 16:50:49 +00:00
Neil Kakkar
da846464e4
Secondary Experiment Metrics frontend (#8115)
* wip secondary experiments

* clean up

* tweak initialiser

* Add basic frontend for secondary metrics

* small style updates

* prettier

* dayjs pleaseee

* type check

* feature flag it

* prettier

* typescript

Co-authored-by: Li Yi Yu <li@posthog.com>
2022-01-31 16:50:12 +00:00
Alex Gyujin Kim
9774bc83d9
Percentage based line graphs should show percentage counts (#8348) 2022-01-31 08:42:14 -08:00
Michael Matloka
89f756b255
ShareModal redesign (#8346)
* Update switch style

* Update dashboard embed snippet wording

* Improve dashboard item dragging

* Rework `ShareModal` for new design

* Update E2E test

* Fix mispaste

* Update dashboard.js

* Update dashboard.js
2022-01-31 16:07:24 +01:00
Michael Matloka
deaeb14fb7
Insight details property math, groups, Paths (#8344)
* Support property and group math types in InsightDetails

* Add support for Paths to InsightDetails
2022-01-31 15:24:39 +01:00
Yakko Majuri
b4247cc4d3
add new state for async migrations failing at startup (#8342)
* add new state for async migrations failing at startup

* add status medssage

* address review

* add failedatstartup state to first failed healthcheck
2022-01-31 11:16:06 -03:00
Yakko Majuri
cc471bb2b5
run healthcheck in addition to precheck for async migrations (#8324)
* run healthcheck in addition to precheck for async migrations

* remove duplicate func
2022-01-31 10:27:07 -03:00
Yakko Majuri
a08d8a4f7d
failure_timestamp -> error_timestamp in django dlq producer (#8263) 2022-01-31 10:25:33 -03:00
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