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

2051 Commits

Author SHA1 Message Date
Eric Duong
826182b8d2
Fix total aggregate values (#2723)
* postgres working

* change result attr name

* adhoc solution for clickhouse query

* add breakdown filter test

* adhoc breakdown solution

* add breakdown default

* fix frontend logic

* breakdown refactoring

* reshape breakdown functions

* remove print

* remove dump.rdb

* replace magic string with constant
2020-12-15 18:37:25 +01:00
Paolo D'Amico
3b6a08da82
Not-so-big play button (#2744)
Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2020-12-15 11:02:08 -06:00
Eric Duong
5845e3ec8b
Move lifecycle tests to separate file (#2765)
* put lifecycle in separate file

* use list
2020-12-15 16:05:38 +01:00
Paolo D'Amico
6d69b029e0
Navigation 1775 improvements & fixes (#2763)
* add backTo in new navigation

* fix #2541

* add billing & licenses link

* add annotations
2020-12-15 16:48:14 +02:00
Yakko Majuri
0b01bb694e
Honor next URL when logged out (#2757)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-12-15 08:25:15 -06:00
Yakko Majuri
bf506e3d0b
Hide bar from retention (#2770) 2020-12-15 10:15:56 -03:00
Karl-Aksel Puulmann
fe8b5e0dd7
Optimize breaking down by event property value (#2767)
* Optimize breaking down by event property value

Just getting the top values took 10+ seconds previously for our team,
now down to 2, and the breakdown query went from 6s -> 2s.

* solve typecheck issue
2020-12-15 13:11:35 +02:00
Yakko Majuri
d9f9545b18
Fix Identified persons pagination (#2756) 2020-12-14 15:48:02 -06:00
Marius Andra
f3e4cad700
Plugin editor (#2743)
* fix tsc error

* add plugin source, create plugin source version model, add plugin_type

* can create and save source plugins via the api

* make empty source plugins

* message if no config options available

* different image or tag for source plugins

* fix some types

* second drawer

* add fields into drawer

* add monaco editor

* refactor drawer

* save plugin and must be json

* close tab on save

* fix default code

* upgrade to plugin server 0.5.0 - with scheduled plugins

* less height

* upgrade to plugin server 0.5.1 - with posthog.capture

* remove minimap from editor

* upgrade to 0.5.1

* use enum

* reduce quirk

* must enter a name/url

* use the source

* simpler text

* sync image

* add link to docs

* add a link to the documentation inside the source code drawer

* text / ux simplifications

* nicer first plugin experience

* nicer django model choices
2020-12-14 17:11:29 +01:00
Michael Matloka
7ba9f7de09
Plugin server ingestion base (#2732)
* Add relevant settings to KEYS in bin/plugins-server

* Log all EE events to events_handoff Kafka topic for plugin server

* Clean up settings

* Fix FOSS

* Don't introduce KAFKA_EVENTS_HANDOFF

* Add cosmetic newline

* Add DEBUG WAL print()
2020-12-14 16:05:18 +01:00
Yakko Majuri
933c1af2f9
Showcase Feature Flag in HogFlix (#2750) 2020-12-14 11:57:29 -03:00
Paolo D'Amico
5baee2875d
New Person Page (V2) (#2738)
* person v2 stage I

* delete person

* merge persons

* person properties

* address feedback & cleanup

* updates isURL utility with tests

* edit text-based person properties inline

* allow changing bool & null props as well

* sort properties by type & alphabetically

* editing only on first-level of nesting

* remove properties
2020-12-14 14:27:28 +02:00
Karl-Aksel Puulmann
31433404f2
Proposal: When clicking 'add action/event', populate the generated event with last event data (#2635)
* Proposal: When clicking 'add action/event', populate the generated event with last event data

In my usecase I was analyzing $capture_failed_request with different
percentiles/math operators on the same properties. Doing this was
slightly painful, since I needed to enter the same data over and over
again.

After this change we'll populate the action/event with last row.
My hypothesis is this will speed things up generally.

* when adding rows to entity filters, keep visibility as well
2020-12-14 09:16:08 +02:00
Karl-Aksel Puulmann
e1e483ca93
update to posthog-js@1.8.0 (#2749) 2020-12-14 09:15:02 +02:00
Paolo D'Amico
00930e3e32
Insights link on event list (#2748)
Co-authored-by: samcaspus <sandeepguptan1998@gmail.com>
2020-12-13 13:09:22 -06:00
James Greenhill
734573fbf7
Monitor clickhouse parts counts by table (#2747)
* Monitor clickhouse parts counts by table

* clean it up
2020-12-13 10:19:52 -08:00
Yakko Majuri
0c916c571e
Revert "Add autocapture to selection properties" (#2746)
* Revert "add autocapture to selection properties (#2696)"

This reverts commit 64f2a57bd2.

* also fix #2613 correctly
2020-12-12 22:07:32 +01:00
Tim Glaser
560fe0765e
Deprecate dashboard item type and move to display (#2715)
* Deprecate dashboard item type and move to display

* Mypy rerors

* fix test

* fix

* Fix test

* Fix another test

* Remove determineInsightType

* Get rid of RetentionTable display types

* Fix update dashboard
2020-12-11 20:12:52 +01:00
Marius Andra
98fbd2c681
Spy on feature flags 🕵️ (#2643)
* featureFlagLogic spy

* add comment and simplify code
2020-12-11 17:45:59 +01:00
Tim Glaser
803efc3489
Make active feature flags more obvious (#2742)
* Make active feature flags more obvious

* Also fix ch

* Fix typing

* Update usage URL

* Fix CH
2020-12-11 12:27:45 -03:00
dependabot[bot]
9fe9360a8b
Bump ini from 1.3.5 to 1.3.7 (#2741)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 13:24:59 +01:00
Karl-Aksel Puulmann
adb86b17fc
Update to posthog-js@1.8.0.beta-1 (#2740) 2020-12-11 11:45:24 +02:00
Karl-Aksel Puulmann
3f0f051758
Sessions filtering postgres support (#2728)
* Duplicate existing endpoints under /api/event/sessions

* Use different endpoint for sessions table logic in sessions page

* drop irrelevant code for insights endpoint

* update documentation

* extract method

* move code under only relevant path

* Extract clickhouse sessions logic

* Refactor: Separate session list logic from rest of sessions

* move sessions list to separate file

* Move sessions list tests to separate file

* add clickhouse session list tests

* add support for duration filtering on postgres

* move api tests to right place

* kill dead code
2020-12-11 11:01:14 +02:00
Paolo D'Amico
05344d1292
Fixes to Persons page 201210 (#2737)
* fix initial persons load

* fix icons
2020-12-11 10:58:21 +02:00
Karl-Aksel Puulmann
d73e808be4
Sessions filtering: improve UX (#2726)
* Handle empty duration input properly

* rename no option

* Add close button to the filter

* Allow choosing time unit in dropdown

* solve mypy errors

* minor changes

* show arrow

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-12-11 10:44:47 +02:00
Marius Andra
ad2d36d8cd
Capture plugin installation events (#2729)
* instrument plugins

* track plugin beta optin

* Improve style

* add plugin install type

* share type

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-12-11 00:20:21 +01:00
Paolo D'Amico
9f5e42b5bd
Fix persons page V2 handle person with no distinct IDs (#2731) 2020-12-10 09:30:30 -06:00
Tim Glaser
602931680c
Don't calculate broken cohorts (#2730)
* Don't calculate broken cohorts

* Reset to 0 on correct
2020-12-10 15:58:45 +01:00
Tim Glaser
e7cf836d59
Merge person modal (#2644)
* WIP merge person

* Warning message

* Fix test

* fix

* Fix small issues
2020-12-10 15:37:30 +01:00
Eric Duong
952f6e5870
Add clickhouse query for people breakdown (#2669)
* add clickhouse query for people breakdown

* remove log

* add pg implementation

* remove caching and fix timestamp formatting

* modify how people are returned

* reimplement frontend logic for handling new people payload

* remove period check

* change params

* add returndict

* DRY retention param formatting

* remove feature flag for retention

* remove feature flag for retention
2020-12-10 14:51:24 +01:00
Karl-Aksel Puulmann
b03d4da7e0
Allow filtering sessions by recording duration (#2721)
* Use return value of add_session_recording_ids

The mutation here is incidental, this is symmetrical with how postgres
behaves.

* Implement sessions_filter

This will hold session-recording specific filters

* WIP: make filtering by session recording length possible on ch

* Kill dead method

* Allow filtering by session length

* Make logic a bit smoother around filtering by recording duration

* More common code for clickhouse_session_recording

* Add filtering tests for ch

* Resolve mypy issues

* Only run duration tests for ch

* Put new filters logic behind a feature flag

* Kill dead const

* Solve operators-related comment

* Review feedback: rename variable

* Fix test failures
2020-12-10 10:26:47 +02:00
Marius Andra
b5b7276ced
Restart plugins on error (#2719)
* export as $CONFIG_JSON

* export as $CONFIG instead

* restart plugin server if killed

* restart plugin server if killed

* update to 0.4.3
2020-12-10 07:29:06 +01:00
Paolo D'Amico
1f72aa9805
Removes legacy stuff from #2709 (#2710) 2020-12-09 15:49:07 -06:00
Paolo D'Amico
b1966ce540
calculate_billing_daily_usage (#2716) 2020-12-09 15:43:03 -06:00
Eric Duong
d3735cb15e
add all time support for lifecycle (#2693) 2020-12-09 19:31:48 +01:00
Eric Duong
25d60bf839
Fix prop filtering when action has props (#2711)
* add prepend clause to prop filtering

* add defaults and parametrize an event field

* add test and make the fix generalized
2020-12-09 13:19:58 -05:00
Marius Andra
177cee9e38
Set right concurrency for plugin server on Heroku (#2703)
* nodejs worker concurrency on heroku

* upgrade plugin server

* upgrade server

* fix another bug with 0.3.2

* plugin server with resilient redis

* plugin server with more resilient workers

* new plugin server

* update
2020-12-09 18:08:25 +01:00
Karl-Aksel Puulmann
c5ab474cdd
Kill /api/event/sessions (#2714)
This seems to be dead since https://github.com/PostHog/posthog/pull/1498
2020-12-09 18:12:13 +02:00
Paolo D'Amico
16a012d148
Refactor /api/signup to Organization (#2709) 2020-12-09 08:27:17 -06:00
Michael Matloka
1c80aca907
Cleaned up system status page (#2682)
* Polish system status page

* Show system health badge to is_staff users on Cloud

* Update Cypress test

* Correct inconsistent scene name

* Use RDBMS enum instead of constants

* Add "Analytics database in use" to System Status

* Fix typing
2020-12-09 13:57:12 +01:00
Karl-Aksel Puulmann
2758b0c8af
Update posthog-js to 1.7.3-beta.11 (#2713) 2020-12-09 11:34:10 +02:00
Karl-Aksel Puulmann
9167debe6a
Revert "Update posthog-js (#2704)" (#2707)
This reverts commit 60435da32d.
2020-12-08 21:05:28 +02:00
Karl-Aksel Puulmann
60435da32d
Update posthog-js (#2704) 2020-12-08 19:26:22 +02:00
Tim Glaser
e8d64117d3
Remove legacy funnel code (#2700)
* Remove legacy funnel code

* recsw

* Fix test
2020-12-08 18:23:46 +01:00
Eric Duong
64f2a57bd2
add autocapture to selection properties (#2696) 2020-12-08 10:55:37 -06:00
Karl-Aksel Puulmann
4c93afbca6
Add caching support for recorder.js (#2702)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-12-08 10:34:21 -06:00
Karl-Aksel Puulmann
f94b15aa94
Support gzip encoding from posthog-js (#2701)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-12-08 10:17:22 -06:00
Tim Glaser
1f761a2157
Add trailing slash to record endpoint (#2689) 2020-12-08 12:18:54 +01:00
Michael Matloka
b39dce42cf
Fix webpack-dev-server inside Docker (#2699) 2020-12-08 11:44:39 +01:00
Michael Matloka
f3dc59d104
Purge Porter (#2698) 2020-12-08 10:32:04 +01:00