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

786 Commits

Author SHA1 Message Date
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
GalDayan
000f76a5bd
2094 too many distinct (#2480)
* BUGFIX: re adding feature flag after deleting

* Suppport max array length and show more when need

* refactor

* added 3 distint id to user

* 2 users

* Revert "BUGFIX: re adding feature flag after deleting"

This reverts commit bf9b019b9e.

* added more distinct

* added data-cy and person tests

* fixed tab

* added search for person if not first
2020-11-25 11:12:22 +01:00
Karl-Aksel Puulmann
8fe26f37b2
Use our own session recording player (Revert-revert) (#2491)
* Revert "Revert "Use our own session recording player (#2470)" (#2477)"

This reverts commit c601024e4d.

* Update player package

* Explicitly include rrweb styles

It seems like our package isn't bundling them properly - this should fix
things.

* Manage session player css via scss
2020-11-25 11:50:21 +02:00
Michael Matloka
96e4ee8512
Nest endpoints of project-based models under /api/project/ – LITE (#2485)
* Nest endpoints under /project/ with StructuredViewSetMixin

* Rewrite URLs

* isort

* Update utils.py

* Fix errors

* Fix almoast all the errors

Last left to do: shared dashboards and permission classes.

* isort

* Adjust for master

* Add compatbility with shared dashboards

* Debug ClickHouse

* Remove some # type: ignores

* Simplify CursorPagination

* Move test base from posthog.api.test to posthog.test

* Improve API structure

* Bring back legacy endpoints

* Fix legacy compatibility

* Fix bugs and typing

* isort

* Fix hooks test

* Try fixing errors

* Fix oversight

* isort

* Fix problems

* isort

* Be more tolerant

* Fix naming and remove redundant code

* Fix imports

* Update deleteWithUndo

* Roll back

* Roll back more

* Update .gitignore

* Rollll back

* Rollllllll

* back

* Betterify

* Address feedback
2020-11-24 23:26:28 +01:00
Tim Glaser
4ef642e9ad
Fix various caching issues (#2496)
* Don't return last refresh if no cache

* Add filters_hash, fix caching

* Add migration

* fix tests
2020-11-24 21:09:58 +01:00
Tim Glaser
f47e8b97ae
Combine events and actions into select box (#2394)
* WIP combine events and actions

* Alignment

* Keyboard navigation select box

* Fix enter and other small issues

* add icons

* fix renderinfo

* Hide scrollbar

* Refactor

* Fix cypress test

* fix cypress test
2020-11-24 18:28:44 +01:00
Paolo D'Amico
bbd2cf2a27
Refactor camelCase util (#2487)
* refactor camelCaseToTitle

* Rework identifierToHuman

* Test identifierToHuman with Jest

* Add Jest to frontent CI

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-24 16:07:36 +01:00
Michael Matloka
c29ed53c69
Add Table rowKey where missing and unify style (#2486) 2020-11-24 10:14:11 +01:00
Adam Boaler
433a37c482
Show gradient on scrollable Select elements (#2453)
* Add SelectGradientOverflow component

* Add gradient to the bottom of some long Select elements

* Improve style and add top scroll gradient

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-24 09:59:59 +02:00
Michael Matloka
454161db57
Fix organization/project creation when organization-/project-less (#2484)
* Make ProjectMembershipNecessaryPermissions only run on detail views

* Hide close button when not needed

* Add Cypress test

* Update project deletion+creation test

* Update projectSettings.js

* Update E2E test

* Run Cy with DEBUG

* Delete Cypress test

* Revert "Run Cy with DEBUG"

This reverts commit d0f29a353c.
2020-11-24 08:51:33 +01:00
Paolo D'Amico
4251e5447c
Refactor scene configuration logic (#2478)
Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-23 18:42:52 -05:00
Tim Glaser
e4842f7fed
Feature flag table improvements (#2448)
* Feature flag table improvements

* sorter created by

* fix cypress test
2020-11-23 19:43:03 +01:00
Paolo D'Amico
c601024e4d
Revert "Use our own session recording player (#2470)" (#2477) 2020-11-23 13:22:42 -05:00
Michael Matloka
7e779a72bb
Make note that webhook integration is unavailable for Cloud now (#2476)
* Make note that webhooks aren't working on Cloud for now

* Improve project settings page
2020-11-23 17:56:46 +01:00
Karl-Aksel Puulmann
7a0ba0afa2
Use our own session recording player (#2470) 2020-11-23 09:08:44 -05:00
Yakko Majuri
671d1febee
Fix Feature Flags typo (#2463) 2020-11-23 12:07:43 +01:00