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

2364 Commits

Author SHA1 Message Date
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
Tim Glaser
57d0280bac
Add capture exception cohorts (#3245)
* Add capture exception cohorts

* do both
2021-02-08 20:28:55 -05:00
Tim Glaser
b804ba9619
Refreshing insights (#3144)
* Refreshing insights

* Fix dashboarditem

* put exceptionhog back

* Fix ts issues

* fix tests

* Fix tests

* Remove printers

* fix type errors

* fix test

* Fix flickering

* Fix issues switching between views

* Use result for backwards compatability

* Fix tests
2021-02-08 20:26:36 +01:00
Michael Matloka
6e8e729a68
Separate Jest from frontend code quality job (#3241) 2021-02-08 18:36:56 +01:00
Tim Glaser
2297b0f1cf
Grab all events and properties even if job hasn't run yet (#3200)
* Grab all events and properties even if job hasn't run yet

* Use next on generator instead of list comprehension

* Replace IndexError with StopIteration

* Don't raise StopIteration at all

* try delay

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-08 18:34:27 +01:00
Karl-Aksel Puulmann
3608e3bdf7
Ellipsis for long action names (#3239)
Solves https://github.com/PostHog/posthog/issues/3163
2021-02-08 18:24:13 +02:00
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