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

2477 Commits

Author SHA1 Message Date
Eric Duong
1dbd3df937
2794 retention people (#3108)
* frontend changes

* backend changes

* remove print

* fix query

* remove print

* fix date

* fix tests

* fix trend query

* type

* adjust again

* another adjustment

* run again

* remove any

* fix array iteration
2021-02-08 10:28:38 -05:00
Paolo D'Amico
c1518e8b97
Fix more z-index wonkiness (#3210) 2021-02-08 16:23:44 +01:00
Karl-Aksel Puulmann
02f611b698
Fix stickiness comparison (#3195)
* Make stickiness comparison work

This blew up because comparison code was not initializing the right
subclass of filter.

https://sentry.io/organizations/posthog/issues/2137356539/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&statsPeriod=14d

* Use new method in retention

* Include data in repr for filter

This should make debugging via sentry easier
2021-02-08 17:03:37 +02:00
Karl-Aksel Puulmann
ac4180e551
Fix Cannot read property 'sessionsPlayLogic' of undefined (#3235)
Sentry error: https://sentry.io/organizations/posthog/issues/2205276842/?project=1899813&query=is%3Aunassigned+is%3Aunresolved
2021-02-08 17:03:28 +02:00
Michael Matloka
5e61bd7f80
Improve invites (#3232)
* Clean up Invites component

* Don't overwrite user's clipboard with invite URL unexpectedly
2021-02-08 15:18:06 +01:00
Tim Glaser
c9d607e816
Remove any loaders errors (#3220)
* Remove any loaders errors

* fix typing

* Fix line errors

* Fix formatting
2021-02-08 13:48:16 +01:00
Karl-Aksel Puulmann
159cfc97dd
Improve project deletion (#3234)
* Improve project deletion

I noticed that we immediately reload after project gets deleted - before
the actual request completes and any data is deleted, making it seem it
did not work.

This fixes that, showing a toast while the request is outgoing.

* Fix margin from CreateProjectModal error

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-08 13:14:07 +01:00
James Hawkins
a997f3aa4e
Added new functionality to readme (#2963)
* Added new functionality to readme

More to do, but this is a quick improvement

* tweaked wording

* Update README.md

Co-authored-by: Yakko Majuri <38760734+yakkomajuri@users.noreply.github.com>
2021-02-07 11:30:58 +00:00
Marius Andra
dfcc9f7fb4
upgrade plugin server to 0.7.4 (#3226) 2021-02-06 10:44:34 +01:00
Marius Andra
eed06ffd59
Upgrade plugin server to 0.7.3 (#3225) 2021-02-06 10:22:11 +01:00
James Greenhill
e8dcf13ad0
Emit timing gauge to statsd for sync_execute on clickhouse (#3209)
* Emit timing gauge to statsd for sync_execute on clickhouse

* take out of block for SHELL_PLUS_PRINT_SQL

* add docker testing for ease

* comment out cypress projectid
2021-02-05 14:13:38 -08:00
Eric Duong
7455b8d2a8
add type and null check before reporting (#3224)
* add type and null check before reporting

* add more types

* make type consistent
2021-02-05 15:56:27 -05:00
Eric Duong
811f96586d
Make action null safe (#3223)
* make action null safe

* add team id to filter

* change to proper exception
2021-02-05 15:38:15 -05:00
Karl-Aksel Puulmann
090bc73c0c
Don't blow up if funnel has no steps (#3222)
If funnel has no steps, we still send query from frontend despite
showing no results. While we could change frontend, we can also make the
query more robust.

Sentry: https://sentry.io/organizations/posthog/issues/2201253144/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&statsPeriod=14d
2021-02-05 22:24:47 +02:00
Karl-Aksel Puulmann
93e8e3e73d
Fix SelectBox keyboard navigation (#3211)
This was broken since I added support for it in sessions. Typescript
errors were leading to real bugs.

Sentry error: https://sentry.io/organizations/posthog/issues/2161288131/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&sort=freq&statsPeriod=14d
2021-02-05 21:38:31 +02:00
Karl-Aksel Puulmann
5fda581cbd
Add breakpoint() calls to cohortLogic (#3217)
This avoids issues if logic is unmounted before network request
finishes. https://kea.js.org/docs/guide/additional/#breakpoints

Sentry issue: https://sentry.io/organizations/posthog/issues/2072913139/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&statsPeriod=14d
2021-02-05 21:27:50 +02:00
Eric Duong
f78805debd
Try catch property (#3221)
* remove faulty save and make property creation fault tolerant

* bring back save

* use local var

* add test
2021-02-05 14:26:53 -05:00
Karl-Aksel Puulmann
4ca5964347
Return 1 week of data when choosing 'all time' with no event data (#3212)
Fixes sentry error: https://sentry.io/organizations/posthog/issues/2140049760/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&sort=freq&statsPeriod=14d
2021-02-05 14:19:41 -05:00
Karl-Aksel Puulmann
a57342e447
Avoid erroring when loading dashboards with no active project (#3214)
Related sentry error: https://sentry.io/organizations/posthog/issues/2070730230/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&statsPeriod=14d
2021-02-05 14:18:35 -05:00
Karl-Aksel Puulmann
d0fef1b520
Remove broken copy-pasted code (#3184)
This code was introduced in commit #1dd7f7342b3cf43f3af96e9efa0f085e7694bc8d
from frontend/src/lib/components/PropertyFilters/PropertyValue.js

This fix seems to work properly, though not 100% sure if we should be
loading properties in this component or not.

Sentry error: https://sentry.io/organizations/posthog/issues/2068768985/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&statsPeriod=14d
2021-02-05 14:18:05 -05:00
Tim Glaser
0cfdb05ab9
Update posthog-js 1.8.6 (#3219) 2021-02-05 16:35:52 +02:00
Tim Glaser
728410c87b
1269 funnel trends 2 (#3079)
* WIP

* Closes #1269 funnel trends

* Fix tests

* fix

* fix tests

* Hide interval and featureflag display switcher

* fix one step issue

* fix insights

* Fix tests

* undo todo

* Fix label issues, add warning

* fix frontend issue

* fix
2021-02-05 14:32:28 +01:00
Karl-Aksel Puulmann
e0b011c943
Add missing awaits to breakpoint(X) calls (#3216)
Sentry error: https://sentry.io/organizations/posthog/issues/2185594460/?project=1899813&query=is%3Aunresolved+is%3Aunassigned+kea&statsPeriod=14d

According to marius, breakpoint() can be called without await, but when
passing milliseconds await is always needed.
2021-02-05 13:39:23 +01:00
Karl-Aksel Puulmann
fd93fd405d
Return a 400 when /decide called with invalid token (#3197)
* Return a 400 when /decide called with invalid token

Sentry: https://sentry.io/organizations/posthog/issues/2133194501/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&statsPeriod=14d

The error messages are now in sync with /capture endpoints as well.

* 401 > 400
2021-02-05 09:05:10 +00:00
Yakko Majuri
bc625ea18d
Fix numerical person properties turning to strings on save (#3202)
* update props

* fix props number update on PersonV2

* avoid overwriting function argument

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-05 09:01:54 +00:00
Eric Duong
62ded053e4
Type path logic (#3170)
* initial types

* state adjustment

* more type fixes
2021-02-04 20:43:17 -05:00
Karl-Aksel Puulmann
2a7fa2d15b
Update @sentry/browser (#3199)
I believe this will fix this sentry error: https://sentry.io/organizations/posthog/issues/2017505969/?project=1899813&statsPeriod=14d

From
https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md:

```
5.29.1
[tracing] fix(web-vitals): Fix TTFB capture in Safari (#3106)
```
2021-02-04 23:30:39 +02:00
Eric Duong
2a28955df3
move logic to comparefilter (#3203) 2021-02-04 16:28:51 -05:00
Michael Matloka
840c36727a
str(team.organization_id) in PLUGINS_CLOUD_WHITELISTED_ORG_IDS check (#3208) 2021-02-04 21:54:41 +01:00
Karl-Aksel Puulmann
daed88dc49
Handle navigation race in insights logic (#3207)
If user navigates away from the page before timeout occurs, the logic
gets unmounted and we would currently get an error:

```
TypeError
Cannot read property 'activeView' of undefined
```

Sentry error: https://sentry.io/organizations/posthog/issues/2181870161/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&statsPeriod=14d
2021-02-04 22:40:12 +02:00
Karl-Aksel Puulmann
9f4dd622e3
Fix recursion problems caused by sessionsTableLogic (#3183)
Related sentry error: https://sentry.io/organizations/posthog/issues/2171433703/?project=1899813&query=is%3Aunresolved+is%3Aunassigned+maximum&statsPeriod=14d
2021-02-04 22:38:45 +02:00
Marius Andra
429f3e50dc
filp PLUGIN_SERVER_INGESTION on (#3206) 2021-02-04 20:25:59 +01:00
Michael Matloka
e636cbbc49
Bump plugin server to 0.7.2 (#3205) 2021-02-04 17:52:48 +01:00
Marius Andra
d064f8b036
update plugin server to 0.7.1 (#3204) 2021-02-04 17:01:26 +01:00
Marius Andra
d7e29c3c86
add clickhouse connection envs for plugin server (#3201) 2021-02-04 16:34:52 +01:00
Michael Matloka
1f3145128c
Enable PLUGIN_SERVER_INGESTION (#3107)
* Enable PLUGIN_SERVER_INGESTION_HANDOFF = get_bool_from_env("PLUGIN_SERVER_INGESTION_HANDOFF

* Don't set PLUGIN_SERVER_INGESTION_HANDOFF in worker

* Add comments

* Remove _HANDOFF from PLUGIN_SERVER_INGESTION

* add stats counter for plugin server handoff, so we can verify events out and events in

* add whitelisted posthog and kea organizations

* disable ingestion this round --> first let's just check the plugin server can talk to kafka & clickhouse before sending real events to it

* enable ingestion in docker-compose.ch.yml

* eliminate bad merge

* async action event matching when using postgres plugin server ingestion (#3182)

* fix org

* remove _HANDOFF from topic

* add plugin_ to plugin server ingestion topic

* update plugin server to 0.7.0

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-02-04 16:17:24 +01:00
Paolo D'Amico
eea29cc01c
Fix mobile menu z-index (#3198) 2021-02-04 15:28:58 +01:00
Karl-Aksel Puulmann
4c98e78c0f
Fix LinkButton component (#3194)
Caused by Link component updates

Fixes https://github.com/PostHog/posthog/issues/3193
2021-02-04 13:26:38 +02:00
Paolo D'Amico
167a79fa2f
Release navigation-1775 (#3167)
Co-authored-by: yakkomajuri <yakko.majuri@gmail.com>
2021-02-04 10:53:00 +01:00
Karl-Aksel Puulmann
fbd7046c07
Avoid TypeError when assets have been regenerated loading a scene (#3188)
This caused the following sentry error: https://sentry.io/organizations/posthog/issues/2019430827/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&statsPeriod=14d

Problem came from not initializing `importedScene` which is used below
2021-02-04 10:18:08 +01:00
Karl-Aksel Puulmann
8a7ab616be
Fix bug introduced by typing trendsLogic (#3186)
Sentry: https://sentry.io/organizations/posthog/issues/2197447421/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&sort=priority&statsPeriod=14d
2021-02-04 10:03:20 +01:00
Eric Duong
c11970916c
fix condition for disabled compare filter when all time is selected (#3123) 2021-02-04 06:14:48 +02:00
Eric Duong
d0318cc2d0
Type trend logic (#3152)
* initial typing

* move interfaces to top

* add comment

* remove ts

* remove magic strings

* fix typescript errors

* move check

* random tpye error

* run again

* more adjustments
2021-02-03 14:26:17 -05:00
Eric Duong
f1bb651b70
removee proj seetting test (#3179) 2021-02-03 19:15:16 +02:00
Karl-Aksel Puulmann
046eda502a
Handle blank content-type from IE11 (#3178)
When posting gzipped data from posthog-js (gzip-js), all browsers except
IE11 send content-type as 'text/plain'. IE11 has a bug
(https://github.com/jimmywarting/FormData/issues/44) where it fails to
do that, causing us to dismiss these events.

This only occurs when using bin/docker-server and not bin/start-backend.

Related PR: https://github.com/PostHog/posthog-js/pull/180
2021-02-03 18:01:37 +02:00
Karl-Aksel Puulmann
bf8ddb47d7
Extra test features for posthog-js E2E test (#3173)
* Add testcafe support for setup_dev

* Add TEST delete data route
2021-02-03 17:28:43 +02:00
Yakko Majuri
414701ab54
Fix axis labels color on bar charts (#3176) 2021-02-03 14:10:45 +01:00
Paolo D'Amico
de317c8e87
Bulk invite team members (setup section II) (#3143)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-03 13:03:22 +01:00
Marius Andra
6efdb8efa6
revert plugins ECS definition to use plugin-server from ./plugins/package.json (#3177) 2021-02-03 12:21:49 +01:00
Yakko Majuri
c74056151c
Make pies listen to color changes and update (#3157) 2021-02-03 10:56:55 +00:00