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

843 Commits

Author SHA1 Message Date
Michael Matloka
b579a67fee
Clean up bookmarklet (#2812) 2021-01-04 14:27:42 +01:00
Michael Matloka
e284a29757
Refactor useEventListener to TypeScript (#2841) 2021-01-04 14:26:37 +01:00
Paolo D'Amico
febaed2340
Feature flag Papercups (#2799)
* feature flag papercups

* Use @papercups-io/chat-widget instead of weird useEffect hacks

* Rename basicComponents to essentialElements

* Add posthog_domain to Papercups metadata

* Actually rename basicComponents to essentialElements

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-12-16 21:42:32 +01:00
Tim Glaser
3f7e95d14a
Improved insights history (#2745)
* Deprecate dashboard item type and move to display

* Mypy rerors

* fix test

* fix

* Fix test

* Fix another test

* WIP save history refactor

* Remove determineInsightType

* Progress

* Get rid of RetentionTable display types

* Sync all together

* Fix update dashboard

* Improved saving

* More bugfixes

* Fix insight caching and filters

* Fix insights

* Fix tests

* Fix import

* Fix saving issues

* Don't duplicate

* fix

* Use session instead of session_type everywhere for consistency

* Remove prints

* Use get_filter

* Fix retention filters

* Fix UI issues

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-12-16 16:37:55 +01:00
Michael Matloka
259e801de6
Whitelist plugins per organization on Cloud (#2791)
* Fix unix-dgram build

* Add per-organization whitelisting of plugins API on Cloud

* Add migration

* Update can_install_plugins_via_api calls in serializer

* Remove unused type: ignore

* Update PluginSerializer for organization_id

* Make Plugin.organization nullable

* Fix can_install_plugins_via_api

* Update pluginsLogic.ts

* Adjust can_configure_plugins_via_api for organization

* Don't include organization_id in serializer

* Set default Plugin.organization to first Organization in instance

* Fix PluginConfigSerializer.create

* Test that other orgs' plugins can't be accessed (as if they didn't exist, 404)

* fix typo

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2020-12-16 14:54:30 +01:00
Karl-Aksel Puulmann
05f66f99a1
Create a bookmarklet for demoing posthog (#2774)
* add bookmarklet instructions to setup

* minor change

Co-authored-by: yakkomajuri <yakko.majuri@gmail.com>
2020-12-16 10:34:23 -03:00
Paolo D'Amico
cc58fcace2
disable event property filtering (#2784) 2020-12-16 12:01:53 +02:00
Eric Duong
17253de766
fix pie aggregate value (#2781) 2020-12-15 17:11:22 -05:00
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
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
bf506e3d0b
Hide bar from retention (#2770) 2020-12-15 10:15:56 -03: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
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
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
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
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
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
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
Eric Duong
64f2a57bd2
add autocapture to selection properties (#2696) 2020-12-08 10:55:37 -06:00
Michael Matloka
0de0e25110
Add command palette badge to new TopNavigation (#2678)
* Add command palette badge to new TopNavigation

* optimise getTypeIcon & command palette icon in primary color

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-12-08 07:26:18 +01:00
Fatima Galaudu
1835174c7b
1842 link to edit cohort (#2694) 2020-12-07 19:54:58 -06:00
Paolo D'Amico
32ef8c1002
New Persons Page (#2667) 2020-12-07 11:18:11 -06:00
Tim Glaser
f22a082f30
Debug CH queries (#2666)
* Debug CH queries

* tests

* Logout when impersonated session

* Put "Debug ClickHouse queries" in its own command

* Clean up ClickHouse modal

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-12-07 16:06:14 +01:00
Tim Glaser
595d32fd05
Actions Table filtering, search and sorting (#2670) 2020-12-07 08:35:36 -06:00
Paolo D'Amico
88dafdd55f
tried to fix #2632 (#2673)
Co-authored-by: samcaspus <sandeepguptan1998@gmail.com>
2020-12-04 15:28:12 -06:00
Suresh Kumar
899b0967d6
fix: fixes command palette scrolling issue (#2658) 2020-12-04 14:32:39 -06:00
Yakko Majuri
3eff7abdc5
Fix 404 (#2671) 2020-12-04 14:10:45 -06:00
Eric Duong
8fbbe679f5
Stickiness improvement and filter refactor (#2638)
* stickiness filter refactor

* stickiness clickhouse

* parametrize clickhouse trunc

* add interval tests

* fix type and casing

* change name to interval not period

* change defaults

* remove offsets

* move stickinses people endpoint

* move imports

* remove unused imports

* fix time defaults

* swap endpoint

* add interval tests

* move api test

* fix all time calculation and add team_id filter to earliest timestamp ch
2020-12-04 20:42:01 +01:00
Tim Glaser
a426b427a4
Cohort table improvements (#2576)
* WIP cohort table improvements

* More fixes

* More fun

* Fix updating cohorts

* Add search box

* thing

* stuf

* Fix multiple exports

* Fix tests

* fix

* fix test

* fix

* fix
2020-12-04 19:50:43 +01:00
Tim Glaser
3970e6aa94
Rolling retention widget (#2522)
* Rolling retention widget

* Rolling retention when adding to dashboards

* Only filter dashboard items
2020-12-04 19:46:48 +01:00
Tim Glaser
adcf493202
Fix ee webhook (#2664)
* Fix ee webhook

* Get rid of warnings

* Add webhooks
2020-12-04 16:43:22 +01:00
Paolo D'Amico
ba2a32b6dc
Update Sessions.scss (#2659) 2020-12-04 16:25:52 +02:00
Tim Glaser
7166679672
Fix search set when clicking person (#2663) 2020-12-04 10:37:28 +01:00
Paolo D'Amico
b5d4421b7c
Improved session player navigation (#2611) 2020-12-03 15:47:37 -06:00
Tim Glaser
0f1022fa25
Separate tooltips for lifecycle (#2649) 2020-12-03 15:21:12 +01:00
Paolo D'Amico
d6f3079bc0
Release actions-ux-201012 (#2615)
* remove legacy code & feature flag references

* ActionStepV2 refactor

* ActionEditV2 refactor

* fix backend tests

* fix more tests

* more fixes

* last fix

* address feedback
2020-12-03 10:59:11 +01:00
Paolo D'Amico
ce37a5b5d0
fixes & missing routes (#2641) 2020-12-03 09:21:51 +02:00
Paolo D'Amico
052bcb0ce1
Sessions table improvements 1202 (#2639)
* feedback from #2609

* more clarity around session recording
2020-12-03 08:57:04 +02:00