0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
Commit Graph

801 Commits

Author SHA1 Message Date
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
Karl-Aksel Puulmann
7a4a5e7d14
Use last selected dashboard when clicking 'save to dashboard' (#2591) 2020-12-02 15:08:29 -06:00
Eric Duong
997ec36916
Lifecycle Graph (#2460)
* intial working

* intial working with test

* return tests

* fix interval and add monthly test

* add in person_id join

* small restyle

* postgres lifecycle working

* add action handling to postgres query

* add action handling and tests

* fix typing

* visualizing with temp params and added negatives for dormant

* frontend

* fix intervals

* remove unnecessary import

* add person enppoint

* add person endpoint and tests

* add next

* add pagianted test

* fix types

* add frontend logic'

* fixed date range

* disable compare filter on lifecycle

* add diasbled to chartfilter

* return class to personviewset

* added constant

* fix distinct_id and new event within period condition

* replace people queries and fix ch query too

* DRY

* fix null states

* comparefilter nullstate

* add wrapper back to endpoint

* fix datetime formatting

* remove extra stack flag

* reduce filters when it's lifecycle and replace constants

* add default for lifecycle into trendlogic
2020-12-02 16:53:06 +01:00
Karl-Aksel Puulmann
a451e149c6
Add support for median, p90, p95 and p99 math functions (#2630)
* Add support for median, p90, p95 and p99 math functions

Related issue: #2584

* Update tests to reflect quantile functions are not exact in ch
2020-12-02 17:22:45 +02:00
Tim Glaser
1dd7f7342b
Use select for numerical properties (#2628)
* Use select for numerical properties

* fix test

* fix isssues
2020-12-02 15:18:50 +01:00
Tim Glaser
7d7dca8f47
Remove signup process from cypress (#2264)
* Remove signup process from cypress

* adds cypress preflight tests

* run migrations before setting up test data

* fix preflight tests

* Update preflight.js

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-12-02 14:12:43 +01:00
Paolo D'Amico
ed0e82405e
fixes to Link component (#2612) 2020-12-02 11:37:22 +01:00
Tim Glaser
b8031b7895
Link back to insights from actions (#2608) 2020-12-02 10:50:44 +01:00
Sandeep Guptan
eba578c53c
added pre tag to stop the over lay (#2606)
* added pre tag to stop the over lay

* Break label instead of hiding overflow

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-12-02 06:17:51 +01:00
Paolo D'Amico
2cd87343c9
Update session recording settings (#2609) 2020-12-01 14:23:11 -06:00
Sandeep Guptan
5275a88e6e
modified drop down (#2567)
* modified drop down

* modified drop down

* worked on feed back (Removal of button to text type)

* worked on feed back (Removal of button to text type and made lower case for edit)
2020-12-01 16:47:13 +01:00
Eric Duong
98932d0c3a
1936 retention graph (#2578)
* intiial graph on PG

* initial frontend

* fix filtering and types

* clickhouse working

* change reference date

* fix label and defaults

* fix multiple event retention

* working clickhouse and postgres for multiple events

* remove final

* remove sql parse

* add inital person query

* working clickhouse person query and return testrunner

* implement postgres retrieve person

* add endpoint and pagianted test

* click on datapoint works

* fix params

* fix action handling

* people paginated backend

* finished paginatino frontend logic

* fix variable naming for pg

* working first time persons for clickhouse

* first time people working for pg

* dont replace if recurring

* run again

* fix import

* refactor filter to retention specific and move postgres

* convert clickhouse to use new filter

* move imports

* fix types

* fix types

* fix initial load

* adding to dashboard works

* fixed defaults

* add test for dates

* fix insight panel

* add seert

* fix import

* fix date select for people

* fix chartfilterlogic

* remove unneded comment and import

* split up retention query
2020-12-01 10:15:50 -05:00
Karl-Aksel Puulmann
99a2c60d7d
Show all items at date when hovering a LineGraph (#2600)
This makes it easier to read graphs with multiple lines.

Fixes https://github.com/PostHog/posthog/issues/2597
2020-12-01 15:04:32 +01:00
Karl-Aksel Puulmann
4aedc4317a
Add event (sum of event_property) to event labels on graphs (#2583)
* Use standard jest test formatting

* Use js instead of ts in tests

* Add given2 as dependency

* Document existing behavior of formatLabel()

* Add `event (sum of event_property)` to event labels on graphs

I found the current state impossible to read when trying to see through
session recording metrics
2020-12-01 16:01:36 +02:00
Paolo D'Amico
1f478cea6f
Webhook warning adjustment (#2568)
* webhook availability warning

* add warning to actions too

* Update ActionEditV2.js

* Update WebhookIntegration.tsx

* Prettier

* Sync ActionEdit and ActionEditV2

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-12-01 10:12:28 +01:00
Eric Duong
5ddfe6c30d
Revert "Retention graph and multiple event fix (#2534)" (#2577)
This reverts commit bb076eedad.
2020-11-30 16:40:22 -05:00
Eric Duong
bb076eedad
Retention graph and multiple event fix (#2534)
* intiial graph on PG

* initial frontend

* fix filtering and types

* clickhouse working

* change reference date

* fix label and defaults

* fix multiple event retention

* working clickhouse and postgres for multiple events

* remove final

* remove sql parse

* add inital person query

* working clickhouse person query and return testrunner

* implement postgres retrieve person

* add endpoint and pagianted test

* click on datapoint works

* fix params

* fix action handling

* people paginated backend

* finished paginatino frontend logic

* fix variable naming for pg

* working first time persons for clickhouse

* first time people working for pg

* dont replace if recurring

* run again

* fix import

* refactor filter to retention specific and move postgres

* convert clickhouse to use new filter

* move imports

* fix types

* fix types

* fix initial load

* adding to dashboard works

* fixed defaults

* add test for dates

* fix insight panel

* add seert

* fix import

* fix date select for people

* fix chartfilterlogic
2020-11-30 16:09:23 -05:00
Eric Duong
5967d0397d
Fix unclickable prop filter (#2572)
* fix bug with not being able to click on prop filter

* change cypress test data attr name

* return changes
2020-11-30 15:09:42 -05:00
Paolo D'Amico
395e86c196
Add device type icons to session player page (#2565) 2020-11-30 10:39:20 -06:00
Paolo D'Amico
7c24e8760d
Hover on new navigation menu items (#2563)
Co-authored-by: samcaspus <sandeepguptan1998@gmail.com>
2020-11-30 10:06:03 -06:00
Karl-Aksel Puulmann
73793991a6
Update posthog-js to latest, use (undocumented) option _capture_metrics (#2561)
We'll use these metrics for seeing how session recording is doing.
2020-11-30 16:11:04 +02:00
Karl-Aksel Puulmann
d8c86416e9
Show resolution + duration/date on session player (#2550)
* Update rrweb-player version

* Show resolution + timestamp on the session page

* Make timeline switch the active event immediately

Previously it waited on rrweb
2020-11-30 12:47:14 +02:00
Sandeep Guptan
60072edb7b
Cohort search bar fix (#2557)
* cohort search bar fix

* cohort search bar fix

* Refactor Search/Reset

* Bring back maxWidth: 400

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-30 10:54:18 +01:00
Karl-Aksel Puulmann
b05e2ad1a9
Don't toggle rows when viewing player (#2546) 2020-11-29 13:02:07 +02:00
Tim Glaser
43f93215cb
Fix posthog identify (#2552)
* Fix posthog identify

* Unrelated change
2020-11-27 15:49:36 +01:00
Michael Matloka
412c3809e9
Reworked Teammates page (#2482)
* Improve code quality of org members

* Update global.scss

* Add is_expired to invite serializer

* Refactor members and invites pages

* Make invite creation modal clearer

* Update sceneLogic.ts

* Update commandPaletteLogic.ts

* Refactor members and invites to new files

* Remove Invites from the sidebar

* Simplify ActionsComponent

* Update test_organization_invites.py

* Improve create invite modal looks

* Make Invite Teammate work better with sidebar

* Update Invites.tsx

hide organization invites if there aren't any created

* Move Divider to Invites component

* Clarify copy

* Use moar idiomatic English

* s/Teammate/Team Member/g

* Allow admins to promote others to admin or demote from

* Improve permissions on the backend

* Update user.py

* Fix ownership oversight

* Allow kicking out equals

* Update setup_dev.py

* Fix behavior

* Fix linting

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-11-27 14:47:48 +01:00
Michael Matloka
1a73f8196a
Update SessionsPlayerDrawer.tsx (#2549) 2020-11-27 14:41:45 +01:00
Marius Andra
edea60ce95
Fix celery heartbeat bug, Add redis & plugins to preflight (#2520)
* Fix celery heartbeat bug, Add redis & plugins to preflight

* make celery required
2020-11-27 12:44:05 +01:00
Tim Glaser
944b592804
Closes #2542 remove send event overlay and replace with warning (#2544)
* Closes #2542 remove send event overlay and replace with warning

* Add padding in new design
2020-11-27 12:41:07 +01:00
Paolo D'Amico
c46bae8628
UI improvements to sessions page (#2538)
* move some logic to kea

* sessions loading state

* URL max width & copy to clipboard
2020-11-27 11:39:43 +02:00
Tim Glaser
e8d772f2e4
Fix Not all users have names (#2539) 2020-11-27 10:32:15 +01:00
Paolo D'Amico
5acc9977e0
Session player page (#2479)
Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2020-11-26 16:56:13 -05:00
Tim Glaser
bbd8a9748b
Fix redirecting to /persons after deleting user (#2533) 2020-11-26 16:56:05 +01:00
Tim Glaser
260b999093
Revert "Retention graph and multiple event fix (#2405)" (#2532)
This reverts commit e90857900e.
2020-11-26 15:52:45 +01:00
Eric Duong
e90857900e
Retention graph and multiple event fix (#2405)
* intiial graph on PG

* initial frontend

* fix filtering and types

* clickhouse working

* change reference date

* fix label and defaults

* fix multiple event retention

* working clickhouse and postgres for multiple events

* remove final

* remove sql parse

* add inital person query

* working clickhouse person query and return testrunner

* implement postgres retrieve person

* add endpoint and pagianted test

* click on datapoint works

* fix params

* fix action handling

* people paginated backend

* finished paginatino frontend logic

* fix variable naming for pg

* working first time persons for clickhouse

* first time people working for pg

* dont replace if recurring

* run again

* fix import

* refactor filter to retention specific and move postgres

* convert clickhouse to use new filter

* move imports

* fix types

* fix types

* fix initial load

* adding to dashboard works

* fixed defaults

* add test for dates

* fix insight panel

* add seert

* fix import

* fix date select for people
2020-11-26 15:18:37 +01:00
Karl-Aksel Puulmann
38f8364d7a
Return person data together with session recording (#2528)
* Return person data together with session

This will be used in the new session recording page

* Add names to anonymous types
2020-11-26 16:06:50 +02:00
Karl-Aksel Puulmann
b8fcaf264b
Fix linting errors broken on master (#2529) 2020-11-26 15:33:01 +02:00
Michael Matloka
1ea02827c5
Project Settings cleanup (#2483)
* Fix headings

* Enhance danger zone with overlay

* Fix placement

* Improve styling style

* Extract out of scope changes

* minor copy adjustments

* proposal for locked out danger zone

* adjust copy

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-11-26 13:47:33 +01:00
Michael Matloka
37243eef32
Enhance webhook integration UX (#2488)
* Generalize Team.slack_incoming_webhook to Team.incoming_webhook

* Refactor WebhookIntegration

* Remove extraneous period

* Sprinkle message with some Markdown

* Revert "Remove extraneous period"

This reverts commit 6e6c229f60.

* Remove migration
2020-11-26 13:47:15 +01:00
Michael Matloka
760dd9a6b2
Disallow inviteless signup on initiated self-hosted instances (#2489)
* Add MULTI_TENANCY = False to settings.py

* Add and use permission UninitiatedOrCloudOnly

* Update sceneLogic.ts

* Enhance _preflight endpoint and refactor PreflightCheck logic to TS

* Redirect away form signup on initated self-hosted

* Make redirecting work

* isort

* Format
2020-11-26 13:46:41 +01:00
Karl-Aksel Puulmann
eed1046895
Show session player icons as greyed out if visited (#2517)
* Show session player icons as greyed out if visited

Idea from @hgazim.

* Use <Link /> component over rolling our own
2020-11-26 10:56:07 +02:00
Marius Andra
23f129e083
Require curly brackets around if statements (#2505)
* require curly brackets around if statements

* merge
2020-11-25 17:46:49 +01:00
Michael Matloka
8a9f2c2448
Make Plugins page a bit nicer (#2500)
* Make Plugins page a bit nicer

* Pull in changes from plugin-ordering
2020-11-25 15:57:37 +01:00