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

1740 Commits

Author SHA1 Message Date
Tim Glaser
b8f7813bf3
Fix team leakge in count (#2257) 2020-11-06 11:04:24 +01:00
Karl-Aksel Puulmann
4f863bb57f
Make sure instance status page loads on AWS (#2237)
* Set up django logging

This way we log 500 errors via gunicorn

* Don't blow up system status on AWS

It seems elasticache might be running on a older version of redis

Fixes #2135
2020-11-06 09:57:07 +01:00
Tim Glaser
63c35d20bf
Setup sentry integration (#1833)
* Setup sentry integration

* Oops

* Add Sentry as dependency

* Fix posthog-js

* Fix

* Fix sentry

* Move everything to posthog-js import

* Extract into component

* Revert "Move everything to posthog-js import"

This reverts commit 9b34869aa3.

* Revert to snippet

* Revert "Revert to snippet"

This reverts commit 8343e66fd1.

* Revert "Revert "Move everything to posthog-js import""

This reverts commit 91010274df.

* Don't capture if opted out

* Fix opt out

* Fix globals
2020-11-06 09:50:53 +01:00
Marius Andra
220ba7777a
Plugins via NPM (#2204)
* support both 1) zip and tgz archives 2) github and npm packages

* revert noisy change in PR

* refactor and add test

* add tests for downloading and extracting archives

* posthog-plugin-server upgrade

* add mode to tarfile.open to force gz

* swap github and npm tgz order

* fix

* remove github tgz because we use the zip there

* fix test
2020-11-05 21:22:49 +01:00
Eric Duong
255aaa48c7
Add ee webhooks to celery paths (#2250)
* add ee to path

* add ee to path

* use try

* fix

* Just import basic enterpriseconfig

Co-authored-by: Tim Glaser <tim@glsr.nl>
2020-11-05 19:44:13 +01:00
Tim Glaser
5b041d9849
Fix actions count clickhouse (#2234)
* Fix actions count clickhouse

* More

* Fix

* Fix test

* Black
2020-11-05 16:26:21 +01:00
Tim Glaser
efc62e1999
Fix feature flags clickhouse (#2170)
* remove person properties up to date

* remove person props mv

* move latest person

* prune rest of person materialized

* missing parenth

* add type

* remove migration

* Fix feature flags clickhouse

* Fix feature flags clickhouse

* Fix types

* Fix stuff

* Silly me

Co-authored-by: Eric <eeoneric@gmail.com>
2020-11-05 16:01:32 +01:00
Karl-Aksel Puulmann
82c9218ee4
Update changelog, mention npm requirement for session recording (#2240) 2020-11-05 14:33:24 +00:00
Michael Matloka
0eb28ac3d9
Make tiny adjustments to the changelog (#2233) 2020-11-05 14:32:52 +00:00
Eric Duong
7a5bcab99e
Restore slack hook (#2186)
* add back hook

* add back hook

* filter event matcher

* create artificial event to query for actions

* fix test

* possible solution

* remove printer

* reformat

* remove test_event temp

* comment out tests

* comment out

* uncomment

* patch another

* reduce var

* fix timestamp
2020-11-05 14:40:30 +01:00
Karl-Aksel Puulmann
add5d180c3
Update rrweb, posthog-js dependencies (#2239) 2020-11-05 15:18:13 +02:00
Paolo D'Amico
cd251df713
[WIP] New UI (#2114)
Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-05 12:55:33 +00:00
Karl-Aksel Puulmann
eb4817b8f3
Save session player speed in localstorage (#2110)
This makes the player slightly better to use.

Closes #2107
2020-11-05 13:26:53 +02:00
Karl-Aksel Puulmann
67debacff2
Log web access in docker (#2230)
This is needed to close https://github.com/PostHog/deployment/issues/32
and debug https://github.com/PostHog/posthog/issues/2135
2020-11-05 12:07:39 +02:00
Michael Matloka
4707fe8d39
Handle ChunkLoadError better (#2187)
* Handle ChunkLoadError better

* Prettier

* Simplify console logging
2020-11-05 10:55:57 +01:00
Tim Glaser
c0a350dcf4
Disable server side cursors for PGBouncer (#2229) 2020-11-05 10:05:11 +01:00
Karl-Aksel Puulmann
c875954eb1
Avoid running cronjobs many times a day (#2226)
Previously these tasks were executing once every minute.

Read more at https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html#crontab-schedules

Fixes #2224, #1552
2020-11-05 10:57:29 +02:00
James Greenhill
a25217463d
Monitor clickhouse lag on cloud (#2225)
* Monitor clickhouse lag on cloud

* refine the import in celery

* move imports around

* add check_ee_enabled to the clickhouse lag beat
2020-11-04 16:43:42 -08:00
Eric Duong
fd4d66738c
remove feature flags (#2212) 2020-11-04 19:16:21 +01:00
Tim Glaser
820ac84039
Fix flaky person test (#2221)
* Fix flaky person test

* Black

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-04 17:16:24 +01:00
Yakko Majuri
1942729819
Bump version 1.16.0 (#2217)
* Bump version 1.16.0

* remove note
2020-11-04 16:02:55 +00:00
Michael Matloka
e23703e2ce
Prettier write instead of check (#2215) 2020-11-04 13:03:40 +01:00
Tim Glaser
13685547ef
Fix sessions on dashboard (#2214)
* Fix sessions on dashboard

* Prettier

* formatting
2020-11-04 12:56:32 +01:00
Michael Matloka
1e44617cdd
Update Django from 3.0.7 to 3.0.11 (and Django-related packages) (#2190)
* Update Django from 3.0.7 to 3.1.3 (and Django-related packages)

* Roll Django back to 3.0.11
2020-11-04 12:40:14 +01:00
Michael Matloka
76307429d2
Fix Sentry issue POSTHOG-13K (#2180)
* Fix Sentry issue POSTHOG-13K

* Ignore typing on line

* Black
2020-11-04 11:08:28 +01:00
Michael Matloka
1283f0de54
Optimize commandPaletteLogic (#2193)
* Optimize commandPaletteLogic

* Prettier
2020-11-04 11:05:24 +01:00
Tim Glaser
601d47f33f
Fix suggestion loading error (#2191) 2020-11-04 11:03:17 +01:00
Tim Glaser
4ef3eb5df0
Revert "Revert "Increase max request body size (#2184)" (#2195)" (#2208)
This reverts commit 713ae20208.
2020-11-04 11:01:01 +01:00
James Greenhill
00aadea346
add timing for event endpoint (#2211)
* add timing for event endpoint

* test new config for statsd

* use statsd vanilla

* cleanup

* sort imports
2020-11-03 20:32:39 -08:00
James Greenhill
cadb560d19
skip celery for ee path (#2210)
* skip celery for ee path

* mypy fixes

* take celery out and fix types as cleanly and performant as possible

* add timing

* setup statsd, need to clean this up

* use sane defaults for statsd
2020-11-03 17:06:52 -08:00
Weyert de Boer
01cb4a9abf
fix: improve the accessibility (#2206)
Fixes a bunch of accessibility issues throughout the application:

 - Attach labels to the input fields on the Signup page
 - Add `button`-role to the `Continue`-button style element in the Ingestion wizard/view
 - Attach label to the `Rollout`-switch element on the Edit Feature flag page

Co-authored-by: Weyert de Boer <weyert.deboer@tapico.io>
2020-11-04 01:16:12 +01:00
James Greenhill
10f1a52c8e
Update local dev to use proto for events (#2181)
Co-authored-by: James Greenhill <james@jamess-mbp.lan>
2020-11-03 11:37:12 -08:00
James Greenhill
5442921622
Optionally log to Kafka for WAL (#2205) 2020-11-03 17:38:19 +01:00
Tim Glaser
c7b7785055
Clickhouse dont run caching/cohort (#2200) 2020-11-03 08:07:40 -08:00
Michael Matloka
619f5c15b7
Possibly fix org signup by fixing analytics (#2199) 2020-11-03 16:43:14 +01:00
Tim Glaser
a07eed7d2e
Simplify action queries (#2167)
* Simplify funnel and action query

* Fix type errors

* Update test_action.py

* Move more over to avoid_loop

* Simplify query everywhere

* Fix black

* Fix

* Fix everything

* Fix black

* Fix filtering

* Move or join
2020-11-03 16:06:25 +01:00
Tim Glaser
713ae20208
Revert "Increase max request body size (#2184)" (#2195)
This reverts commit 546b3be50c.
2020-11-03 15:29:10 +01:00
Tim Glaser
916fd3928e
Ignore sentry error for now (#2174) 2020-11-03 14:32:00 +01:00
Michael Matloka
3f8b95b9e7
Update sentry-sdk from 0.16.5 to 0.19.2 (#2188)
* Update sentry-sdk from 0.16.5 to 1.19.2

* Restore original clickhouse-driver
2020-11-03 14:29:48 +01:00
Eric Duong
89f6b33ccb
align values (#2189) 2020-11-03 14:29:26 +01:00
Eric Duong
42aeecfa43
Retention ux fixes (#2168)
* fix pg monthly retention and ux adjustments

* pg labels

* fix pg tests

* add action create to django retention test

* add action create to clickhouse retention test

* fix period test for retention clickhouse

* don't need types

* fix date selection add hourly selector

* change column name

* change retention to return datetime object and change tests to reflect

* fix frontend to parse

* only show time when hourly is selected

* fix disappearing properties

* fix url handling
2020-11-03 11:22:02 +01:00
Marius Andra
a1f56ee286
remove deprecated celery tasks (#2185) 2020-11-03 10:27:08 +01:00
Karl-Aksel Puulmann
546b3be50c
Increase max request body size (#2184)
Sentry error: https://sentry.io/organizations/posthog/issues/1726055541/?project=1899813&query=is%3Aunresolved

This started occurring because of session recording. While we can (and
will) add compression to session recording, we should also avoid
dropping events.
2020-11-03 10:14:38 +01:00
Marius Andra
8600f7e80c
Revert process_event task name (#2179)
* use long process_event task names (as they were before)

* fix task name for EE

* prevent losing tasks on the backwards migration

* Mypy hack
2020-11-02 16:27:40 -08:00
Marius Andra
995bdbc873
install and mark local plugins from the interface (#2172) 2020-11-03 00:12:14 +01:00
Marius Andra
02dd0d8de1
manage.py can be part of a path (e.g. 'deploy/manage.py') (#2178) 2020-11-02 23:43:37 +01:00
Eric Duong
96a614ee25
Prune person materialized (#2166)
* remove person properties up to date

* remove person props mv

* move latest person

* prune rest of person materialized

* missing parenth

* add type

* remove migration
2020-11-02 15:44:38 -05:00
Eric Duong
1fe571caed
remove f401 for now (#2177) 2020-11-02 20:04:38 +00:00
Tim Glaser
f93f6a9fc0
Don't block loading of app on plugins (#2175) 2020-11-02 19:45:40 +01:00
Tim Glaser
119a3e7a9a
Fix elements chain with bad classes (#2133) 2020-11-02 19:24:02 +01:00