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

2626 Commits

Author SHA1 Message Date
Paolo D'Amico
0b755d20bf
Dashboard empty & error states + mobile support (#3666)
* dashboard not found page

* empty dashboard graphics

* move to components (responsive)

* finish empty state component

* update rocket component

* remove unused styles

* fix mobile dashboards

* small fix

* fix cypress
2021-03-22 14:22:00 +01:00
PostHog bot
cd8a0652ef
Update plugin server to 0.14.3 (#3716)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-22 11:37:50 +02:00
Paolo D'Amico
1bd08a3445
Update react-rrweb-player (#3714) 2021-03-22 11:30:18 +02:00
PostHog bot
bd074bbad4
Update plugin server to 0.14.2 (#3715)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-22 08:48:34 +01:00
Karl-Aksel Puulmann
e234b8dbd5
Speed up filtering by events in sessions (#3707)
* restructure the code

* Clean up complicated function using namedtuple

* Speed up action/event filtering in clickhouse

For very rare events, filtering by them in sessions previously was slow.
This was because the the distinct_id query contained a lot of users who
hadn't done the action, resulting in more looping.

This commit speeds things up by querying users who have done any events matching the
event/action filter.
2021-03-19 20:16:27 +02:00
Paolo D'Amico
8c961e2766
bring back individual refresh (#3708) 2021-03-19 10:36:18 -07:00
Michael Matloka
828e0fd5c2
Solidify plugins on Cloud rollout (#3706)
* Better handle extra info buttons during plugin reordering

* Fix UI bug in first time plugin enabling

* Give very new Cloud org config access to plugins

* Add migration
2021-03-19 14:25:09 +01:00
Kunal
3c178620a9
add beta tag to trends, center title (#3704)
Co-authored-by: kunal
2021-03-18 21:41:22 -07:00
Michael Matloka
169c3ba1e4
Better plugin globalization UX (#3702)
* Disallow global plugin uninstallation in the backend

* Rework plugin globalization UX
2021-03-18 23:31:08 +01:00
Yakko Majuri
ed70ddfc0f
Lower the bar to report bugs in plugins (#3699)
* Lower the bar to report bugs in plugins

* remove lingering space

* Fix PluginImage sizing

* Improve ordering tooltip clarity

* Use new ExtraPluginButtons component for About and Feedback

* Reduce large PluginImage size

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-18 21:47:09 +01:00
Yakko Majuri
bbcc096b11
bump version, update changelog (#3697) 2021-03-18 18:14:48 +00:00
Tim Glaser
f7dfc7f7e2
Introduce Dayjs (#3490)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-18 10:49:45 -07:00
Michael Matloka
9f24da6741
Lint Dockerfiles (#3663)
* Lint with Hadolint in Docker test workflow

* Try fixing Hadolint install in workflow

* Try /bin/ instead of /usr/bin/

* Install Hadolint differently

* Install Hadolint differently differently

* Fix Hadolint install properly

* Use chmod +x

* Download Hadolint to workdir

* Update docker-image-test.yml

* Silence curl

* Address production.Dockerfile linter warnings

* Delete obsolete preview.Dockerfile

https://posthog.slack.com/archives/C0113360FFV/p1614948302111800?thread_ts=1614946698.107000&cid=C0113360FFV

* Address dev.Dockerfile linter warning

* Clean up production.Dockerfile
2021-03-18 18:03:42 +01:00
Eric Duong
3536f1895b
Use the correct boolean on cohort update (#3673)
* use the correct boolean

* modify test
2021-03-18 10:56:09 -04:00
Michael Matloka
e16d479e81
Plugins page tiny fixes (#3694)
* Fix SubtitleProps.buttons type

* Improve "Mark as global" styling

* Show globally managed plugins last in the installed disabled list

* Update InstalledTab.tsx

* Add Edit order tooltip
2021-03-18 15:08:02 +01:00
PostHog bot
0820c46747
Update plugin server to 0.14.1 (#3693)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-18 13:31:10 +01:00
Paolo D'Amico
3df295351c
Shared dashboards fix (#3672)
* fix logic unmounted error

* fix dashboards loading with shareToken

* remove unnecessary connect

* hide unused controls on shared dashboards
2021-03-18 12:55:40 +01:00
Michael Matloka
3c571f1312
Different async action mapping approach (#3678)
* Disable useless InsecureRequestWarning

* Disallow ASYNC_EVENT_ACTION_MAPPING on CH and make it default otherwise

* Return early from calculate_actions_from_last_calculation if CH

* Optimize Action.calculate_events and fire hooks from it

* Run calculate_event_action_mappings every 30 s instead of 5 min

* Optimize post_event_to_webhook thanks to new actions approach

* Add Event.site_url field for reworked Postgres webhooks

* Adjust tests by using sync calls to actions calculation

* Update calculate_action.py

* Use assertEntityResponseEqual more

* Update test_capture_new_person for Cloud

* Don't async calculate actions that haven't finished last calculation

* Fix is_calculating condition place

* Improve calculate_actions_from_last_calculation logging

* Clean up event_query, params

* Fix .only usage

* Update migration
2021-03-18 12:30:21 +01:00
Eric Duong
9b652fe092
3682 Various annotation fixes (#3689)
* various annotation fixes

* fix typescript
2021-03-17 15:06:21 -07:00
Eric Duong
341bd600d9
funnel trend fix white screen and remove description (#3686)
* fix white screen and remove description

* move prompt
2021-03-17 16:07:07 -04:00
PostHog bot
ff4a3ca1dd
Update plugin server to 0.14.0 (#3687)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-17 21:33:06 +02:00
Paolo D'Amico
7c6bd06af3
Automatically enable debug mode for posthog-js on SELF_CAPTURE (#3613) 2021-03-17 12:32:20 -07:00
Michael Matloka
6a7cd084fe
Enable PLUGIN_SERVER_INGESTION (#3684) 2021-03-17 16:56:47 +01:00
PostHog bot
9c68afdc00
Update plugin server to 0.13.1 (#3683)
Co-authored-by: Twixes <Twixes@users.noreply.github.com>
2021-03-17 16:52:08 +01:00
Michael Matloka
3c0737f0fd
Plugins access control (#3486)
* Add Organization.PluginsAccess

* Rename PluginsAccess to PluginsAccessLevel

* Use Organization.plugins_access_level in can_…_plugins_via_api

* Add migration for Organization.plugins_access_level

* Remove unused PLUGINS_CLOUD_WHITELISTED_ORG_IDS

* Update access.py

* Add OrganizationPluginsAccessLevel TS enum

* Fix merge

* Disable LocalPlugin UI on Cloud

* Move away from PluginAccess interface

* Extend PluginsAccessLevel range

* Refactor PluginsAccessLevel for brevity

* Remove PluginAccess interface completely

* Add plugins managed globally

* Update migration

* Show managing org name in "Managed" plugin tag

* Smoothen some rough edges

* Smoothen more edges

* Restore correct MULTI_TENANCY default

* All the edges

* Fix most existing tests

* Remove PLUGINS_*_VIA_API env var support

* Update pluginsNeedingUpdates

* Remove can_*_plugins_via_api from instance status page

* Add tests and polish permissioning

* Update migration

* Fix typing

* Make plugin drawer UI less intrusive

* Update migration

* Fix Uninstall button condition

* Use unified _preflight status endpoint instead of the custom plugins one

* Fix plugin update label condition

* Fix "Check for updates" button condition

* Explain PluginsAccessLevel choices with comments

* Hide global plugin installation option on self-hosted

* Don't actions.loadRepository() as install org

* Improve permissioning with tests

* Satisfy mypy

* Add plugins access level to admin and fix org admin

* Check plugins access level more

* Rename endWithPeriod

* Refactor FE access control checks to accessControl.ts

* Deduplicate permissioning

* Add exception message

* Align backend and frontend plugins access level helpers

* Add plugins access level helper tests

* Fix ChartFilter
2021-03-17 15:01:55 +01:00
PostHog bot
d3a999a3e9
Update plugin server to 0.13.0 (#3681)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-17 16:01:24 +02:00
Karl-Aksel Puulmann
591bd65f98
Revert "Revert "Revert "Revert "Disable PLUGIN_SERVER_INGESTION (#3645)" (#3648)" (#3674)" (#3677)" (#3680)
This reverts commit 19e21fa199.
2021-03-17 15:39:50 +02:00
Karl-Aksel Puulmann
19e21fa199
Revert "Revert "Revert "Disable PLUGIN_SERVER_INGESTION (#3645)" (#3648)" (#3674)" (#3677)
This reverts commit cd77cb1b35.
2021-03-17 09:21:01 +02:00
Karl-Aksel Puulmann
cd77cb1b35
Revert "Revert "Disable PLUGIN_SERVER_INGESTION (#3645)" (#3648)" (#3674)
This reverts commit 05abb369ba.
2021-03-16 20:40:40 +02:00
PostHog bot
83f373792a
Update plugin server to 0.12.0 (#3669)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-16 17:21:12 +01:00
Yakko Majuri
e8332ca16e
update docker compose dev port (#3650) 2021-03-16 16:06:18 +00:00
Tim Glaser
e7c0f5f8cf
Enable event property usage env vars (#3664) 2021-03-16 11:27:58 +01:00
Marius Andra
f2cebf2b3f
Notice in toolbar if could not get a unique selector for the element (#3635)
* Show notice if could not get a unique selector for the element

* Remove redundant value fallback

* Clarify tip

* Prettier

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-16 01:35:26 +01:00
Michael Matloka
b55c3b43dc
Expire Celery tasks after 4 days instead of 1 (#3662) 2021-03-16 01:30:11 +01:00
Sandeep Guptan
a3f50f65cd
fixed y axis color issue (#3653) 2021-03-16 00:44:16 +01:00
Paolo D'Amico
27a8aa9c59
Fix system status page plugin metrics (#3658)
* Fix plugin metrics on system status

* remove unused import

* Remove plugins can_* entries in system status

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-16 00:16:35 +01:00
Paolo D'Amico
e5a0cd518e
Dashboard hotkeys (#3623)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-15 16:10:14 -07:00
Michael Matloka
79fc6203c9
Add support for SOCIAL_AUTH_REDIRECT_IS_HTTPS (#3652)
* Add support for SOCIAL_AUTH_REDIRECT_IS_HTTPS

* Use IS_BEHIND_PROXY as SOCIAL_AUTH_REDIRECT_IS_HTTPS default

* Use DEBUG in SOCIAL_AUTH_REDIRECT_IS_HTTPS default

* Disuse IS_BEHIND_PROXY as SOCIAL_AUTH_REDIRECT_IS_HTTPS default
2021-03-15 16:09:30 -07:00
Tim Glaser
17c90ad3df
Default event property usage to false (#3655)
* Default event property usage to false

* fix type errors and wording
2021-03-15 19:43:39 +01:00
Paolo D'Amico
b27dace009
Dashboard Improvements I (#3608) 2021-03-15 11:41:48 -07:00
PostHog bot
316e2a6f4d
Update plugin server to 0.11.9 (#3651)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-15 14:28:34 +01:00
Karl-Aksel Puulmann
05abb369ba
Revert "Disable PLUGIN_SERVER_INGESTION (#3645)" (#3648)
This reverts commit 5525a47c15.
2021-03-15 10:46:16 +02:00
PostHog bot
01ed9eb218
Update plugin server to 0.11.8 (#3649)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-15 10:40:56 +02:00
Michael Matloka
5525a47c15
Disable PLUGIN_SERVER_INGESTION (#3645) 2021-03-14 19:08:53 +01:00
Tim Glaser
3b2ceee89e
Fix organization settings (#3643)
* Fix organization settings

* add test

* fix
2021-03-14 17:12:56 +01:00
Kunal
4210717922
Fix Funnel rendering on dashboards (#3641)
* use the same logic within a component instance

* cleanup value unpack

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-03-12 23:15:12 +01:00
PostHog bot
fa5da57d7e
Update posthog-js to 1.9.5 (#3640)
Co-authored-by: Twixes <Twixes@users.noreply.github.com>
2021-03-12 21:35:42 +01:00
PostHog bot
e9a4df6ce0
Update plugin server to 0.11.7 (#3634)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-12 16:03:56 +01:00
Marius Andra
8c98e4f61d
Toolbar Date Filter, remove react-hot-loader, fix dashboard date filter URL (#3586)
* dropdown and datepicker z-index

* remove dead code

* pass getPopupContainer to range picker

* make DateFilter's custom time range work in a shadow root

* close after selecting

* show date filter instead of date range

* skip updating url on date filter change in toolbar

* actually filter the dates

* fix flickering (always show map)

* refactor date filter component

* upgrade to webpack 5 and @posthog/react-rrweb-player module

* disconnect dashboardLogic from dateFilterLogic (remove broken url changes, etc)

* add bundle tracker

* remove react-hot-loader

* Revert "add bundle tracker"

This reverts commit e59bcfa8

* remove bundle tracker

* remove updatePath

* fix code quality complaints

* revert @cypress/webpack-preprocessor version

* try different cypress webpack plugin

* add crypto-browserify

* add crypto-browserify

* revert to webpack 4

* revert to webpack 4

* revert to webpack 4

* implement feedback and remove debug stuff

* move insights date filter logic out of lib/

* rename DateFilterComponent to DateFilter

* rename DateFilterCustom to DateFilterRange

* Remove hot from new code
2021-03-12 14:54:29 +01:00
Yakko Majuri
37b11ac20b
Support all event properties in webhook message (#3629) 2021-03-11 19:06:46 +01:00