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

2382 Commits

Author SHA1 Message Date
Karl-Aksel Puulmann
c6d00fc3ee
Allow viewing sessions/recordings on persons page (#3302)
* Add spec for being able to reach session recording to sessions page

* Add basic Person page component test

* Fix viewing session recorings on person page

I broke this in a recent PR by narrowing the URLs down too much to fix
another bug (logics clashing).

* Persons tests pass again
2021-02-11 21:14:28 +02:00
Marius Andra
d688867854
Enable plugin server parallel ingestion (#3316) 2021-02-11 19:31:22 +01:00
Karl-Aksel Puulmann
b55426fbc1
Return 404 instead of 500 when person to be deleted is not found (#3314)
Sentry error: https://sentry.io/organizations/posthog/issues/1977037233/?project=1899813
2021-02-11 19:14:16 +01:00
Paolo D'Amico
7c4b7eb811
Cloud billing trial period & free plan (#3259) 2021-02-11 18:42:39 +01:00
Michael Matloka
0f525232ec
Set Cloud PLUGIN_SERVER_INGESTION to false (#3312)
* Set Cloud PLUGIN_SERVER_INGESTION to false

* Update task-definition.plugins.json
2021-02-11 16:17:14 +01:00
Karl-Aksel Puulmann
933aa407d1
Update posthog-js to 1.8.7 (#3310) 2021-02-11 17:02:13 +02:00
Karl-Aksel Puulmann
fb3f9d6868
Fix invalid funnel insights display filter (#3309)
* Fix bad default in constants

This was causing invalid funnel visualization, which made the page never
load.

Sentry error: https://sentry.io/organizations/posthog/issues/2153813132/?project=1899813&query=is%3Aunassigned+is%3Aunresolved

* Fix historic data: bad historyitem links
2021-02-11 14:56:59 +02:00
Marius Andra
be8db2aa01
Ingest all teams via the plugin server (#3305)
* ingest all teams via the plugin server

* Simplify system_status

* Simplify capture condition

* Black

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-11 13:26:26 +01:00
Marius Andra
c00d45ac91
bump plugin server to 0.8.0 (#3307) 2021-02-11 12:49:13 +01:00
Karl-Aksel Puulmann
a3dca4fa4c
Bump webhook_url limit to 500 chars (#3306)
Sentry error: https://sentry.io/organizations/posthog/issues/2212233625/?project=1899813&query=is%3Aunassigned+is%3Aunresolved

Fixes https://github.com/PostHog/posthog/issues/3304
2021-02-11 12:37:58 +01:00
Yakko Majuri
5ad265ca18
Add selection option to plugin config (#3229)
* Add selection option to plugin config

* update naming

* bump scaffold version

* add check for choices

* bump plugin scaffold

* wip handle invalid choices

* handle invalid choices

* bump scaffold

* clean up
2021-02-11 12:25:15 +01:00
Marius Andra
fd57536aa0
Misc plugin improvements (#3288)
* redirect to "repository" tab if no plugins installed

* fix lone "." for empty descriptions

* sort repository alphabetically

* add WIP test to make sure plugins are separated by organisation

* org id can be str

* try to reset membership

* Add permission_classes to PluginSerializer

* don't show tabs if only one tab can be used

* sort installed plugins alphabetically

* don't check for updates if can't actually update

* hide some more information if can't install

* remove 'global' from plugin config

* deprecate unused 'error' field

* fix plugin permission_classes mishap

* fix test, 400 -> 403

* simplify test

* Simplify isinstance check

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-11 11:46:49 +01:00
Paolo D'Amico
465c87240f
Migrate team invite signup to React - Part I (Backend) (#2734)
* base API invite signup

* prevalidate invites

* allowed signed in users to claim an invite

* add more test cases

* remove legacy invite signup

* add trailing slash to endpoint

* post merge cleanup

* bring back signup_to_organization_view to be able to split the PR

* another cleanup

* bring back signup to organization template

* mask_email_address util

* fix typing

* fix tests

* fix analytics metadata

* OrganizationSocialSignupSerializer

* support social auth

* rename company_name to organization_name

* final tweaks

* add organization_name to prevalidate response
2021-02-11 11:46:42 +01:00
Tim Glaser
b9f3d3ec7c
Don't set is calculating for static cohorts (#3297)
* Don't set is calculating for static cohorts

* update frontend

* fix inconsistency

* Add migration and fix typing

* N/A

* typing

* types

* more! typing!
2021-02-11 11:07:12 +01:00
Eric Duong
399b6a544c
Revert "Revert "Revert "2794 retention people (#3108)" (#3264)" (#3271)" (#3295)
This reverts commit 9934b7905d.
2021-02-10 17:04:10 -05:00
Eric Duong
9934b7905d
Revert "Revert "2794 retention people (#3108)" (#3264)" (#3271)
This reverts commit 6b56abe876.
2021-02-10 16:45:53 -05:00
Tim Glaser
cf2cdb0c58
Fix ints saved as strings clickhouse (#3289)
* Fix ints saved as strings clickhouse

* remove ipdb
2021-02-10 19:59:30 +01:00
Michael Matloka
ce1d5955b5
Fix instance status page (#3292)
* Fix is_plugin_server_alive to never return None

* Handle void in RenderValue

* Fix typing
2021-02-10 16:08:21 +01:00
Michael Matloka
3111d21afc
Fix retention linear chart in dashboards (#3290) 2021-02-10 14:05:19 +01:00
dependabot[bot]
070fa181d2
Bump cryptography from 3.2 to 3.3.2 (#3281)
Bumps [cryptography](https://github.com/pyca/cryptography) from 3.2 to 3.3.2.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/3.2...3.3.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-10 12:20:52 +01:00
Marius Andra
357b35fa94
add plugin server info to system status page (#3284) 2021-02-10 10:11:33 +01:00
Karl-Aksel Puulmann
fba542af8a
Fix filtering by user property in CH sessions list (#3285)
Fixes https://github.com/PostHog/posthog/issues/3282

The problem was in pagination as expected.

Ran the query against our team in production clickhouse - it now returns
expected data and speed did not seem to change much.
2021-02-10 10:37:16 +02:00
Karl-Aksel Puulmann
3311b0da5a
Make page not jumpy on initial load (#3246)
By showing side nav even if scene has not loaded.

This fixes #3020
2021-02-10 08:45:28 +02:00
Eric Duong
1dac0ad699
Persons component test (#3266)
* WIP: get cypress something doing

* Get a test running

* Get css loading, stub posthog

* Move helpers to separate file

* Givens > given2

It plays nicer with beforeEach

* Test for session filters

* Test date navigation

* Test filtering

* Try keep old tests running

* Try get tests running under CI

* Prettify fixtures

* Cleanup, use cypress 6

* Add yarn build

* Fix e2e cypress tests

* given2 => givens

* Rename `frontend-test-runner` to `e2e-test-runner`

* Fix cypress test

* add devdependency

* add scaffold

* person test

* fix type

* fix check

* inline fixture

Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2021-02-10 08:25:17 +02:00
Karl-Aksel Puulmann
d507c876ff
Don't show "save" if user has not yet entered all cohort group data. (#3261)
Sentry error: https://sentry.io/organizations/posthog/issues/2062467419/?project=1899813&query=is%3Aunassigned+is%3Aunresolved

From recording I could see that the user filled in Dynamic group >
Action > 7 days, but never picked the action and pressed save. After
seeing no error he stood by for a while.

Also fixes some type errors and a misc bug (choosing action second
deletes days)
2021-02-10 08:24:04 +02:00
James Greenhill
55db17eefb
Remove CH Pool as dependency (#3279) 2021-02-09 16:41:10 -08:00
Tim Glaser
ae6de33d5b
Fix non-anonymous ids (#3276)
* Fix non-anonymous ids

* add extra warning

* fix import

* fix tests
2021-02-09 21:36:18 +01:00
Tim Glaser
07dd0d84b3
Fix non-anonymous distinct id first (#3272)
* Fix non-anonymous distinct id first

* Use regex used in plugin server and improve clarity

* Fix types

* Make test_return_non_anonymous_name a bit more robust

* Remove extra whitespace

* Run Black

* Fix test

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-09 19:06:14 +01:00
Michael Matloka
78d39741ed
Use elements_chain in EE webhook (#3273) 2021-02-09 18:56:42 +01:00
Karl-Aksel Puulmann
58327b406d
Update clickhouse-driver (#3265)
We're having a lot of clickhouse noise in sentry, keeping good hygene by
keeping up.

Changelogs:
- https://github.com/mymarilyn/clickhouse-driver/blob/master/CHANGELOG.md
- https://github.com/ericmccarthy7/clickhouse-pool/releases/tag/v0.4.3
2021-02-09 19:40:50 +02:00
Tim Glaser
50ae632d8e
Improve entity rows layout (#3255)
* Improve entity rows layout

* adjust UI

* handle case where mathSelector is not available

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-09 18:32:08 +01:00
Michael Matloka
828770f48b
REST/webhook optimizations (#3267)
* Ignore erroneous webhook firing prefiltering

* Optimize EE web/RESThook firing
2021-02-09 18:31:50 +01:00
Michael Matloka
f71e9899cb
Clean up query timeout notice (#3231)
* Clean up query timeout notice

* Update wording
2021-02-09 18:27:23 +01:00
Michael Matloka
ee7289956a
Enhance Project settings (#3240)
* Update Project Danger Zone to Plugins standard

* Extract PinnedDashboards to own component

* Set default body background to white

* Fix JSBookmarklet note style

* Add project rename

* Expect data-attr in okButtonProps type error

* Rename project name section to "DIsplay Name"

* Use disabled and loading on projet DisplayName

* Add models-side Team.name min length requirement

* Make small fixes on Plugins pages

* Revert "Add models-side Team.name min length requirement"

This reverts commit 97874ed7c2.

* minor copy adjustments

* Make button "Rename Project" and improve interactivity

* Remove teamLogic.connect

* Add project rename success toast

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-09 18:11:53 +01:00
Eric Duong
f8a665a80c
Revert "Refreshing insights (#3144)" (#3269)
This reverts commit b804ba9619.
2021-02-09 11:37:52 -05:00
Karl-Aksel Puulmann
30b6692920
React component tests with cypress (#3233)
* WIP: get cypress something doing

* Get a test running

* Get css loading, stub posthog

* Move helpers to separate file

* Givens > given2

It plays nicer with beforeEach

* Test for session filters

* Test date navigation

* Test filtering

* Try keep old tests running

* Try get tests running under CI

* Prettify fixtures

* Cleanup, use cypress 6

* Add yarn build

* Fix e2e cypress tests

* given2 => givens

* Rename `frontend-test-runner` to `e2e-test-runner`

* Fix cypress test

* Add webpack-preprocessor as a devDependency

* Improve freezing time

* Make css inclusions automatic for component tests
2021-02-09 17:28:01 +02:00
Marius Andra
a19978a249
fix mutating process_event_ee bug (#3263) 2021-02-09 16:14:26 +01:00
Eric Duong
6b56abe876
Revert "2794 retention people (#3108)" (#3264)
This reverts commit 1dbd3df937.
2021-02-09 09:47:41 -05:00
Paolo D'Amico
3c46b93d9f
Instrumentation Feb-8 (#3238) 2021-02-09 15:17:53 +01:00
Karl-Aksel Puulmann
f3a75f5887
Show toast if signup fails (#3257)
* Show toast if signup fails

Companion PR: https://github.com/PostHog/posthog-production/pull/72

We have been silently showing no errors since https://github.com/PostHog/posthog/pull/3220

* adjust copy

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-09 15:42:29 +02:00
Paolo D'Amico
505507b040
Release onboarding #2822 & final tweaks (#3174) 2021-02-09 14:28:51 +01:00
Paolo D'Amico
ba7866a8c0
Billing page improvements (#3192)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-09 14:02:31 +01:00
Karl-Aksel Puulmann
259a2290b4
Serialize/deserialize elements_chain on webhooks_ee (#3262)
Solves https://sentry.io/organizations/posthog/issues/2207757069/?project=1899813&query=is%3Aunassigned+is%3Aunresolved
2021-02-09 13:54:02 +01:00
Gustav Westling
afefa3eb43
Updated Go Instructions (#3256)
posthog.NewWithConfig returns two values [1], updated the code to use (but ignore) the error.

os.GetEnv does not work this way, use the API key directly in a string.

1: https://pkg.go.dev/github.com/posthog/posthog-go#NewWithConfig
2021-02-09 13:21:15 +02:00
Paolo D'Amico
8926864949
Fix update indicator on top navigation (#3258) 2021-02-09 12:19:21 +01:00
Michael Matloka
62846fd565
Capture EE webhook task sending error (#3254) 2021-02-09 11:25:52 +01:00
Marius Andra
b7133c47b3
plugin server 0.7.5 (#3250) 2021-02-09 11:23:07 +01:00
Tim Glaser
0470f8d8fa
Always show non-anonymous distinct id first (#3251) 2021-02-09 11:16:46 +01:00
Michael Matloka
973769340a
Revert "Revamp and optimize hooks on EE (#3119)" (#3249)
This reverts commit 5485fb058d.
2021-02-09 10:16:38 +01:00
Michael Matloka
5485fb058d
Revamp and optimize hooks on EE (#3119)
* Revamp and optimize hooks on EE

* Improve retry strategy

* Improve some minor things

* Cache available_features in memory

* Address feedback
2021-02-09 09:52:19 +01:00