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

2478 Commits

Author SHA1 Message Date
Paolo D'Amico
4e8ccbc2b6
Rename posthog-production to posthog-cloud (#3460) 2021-02-24 16:20:05 -06:00
Michael Matloka
b9f00b2710
Fix webhooks specifity (#3463)
* Fix webhooks specifity

* Make REST hook firing monitoring better reflect reality
2021-02-24 23:14:02 +01:00
PostHog bot
76b3a7d002
Update plugin server to 0.9.29 (#3459)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-02-24 19:53:27 +01:00
Paolo D'Amico
64bbc9240d
Clean-up post-migration of invite signup (#3353) 2021-02-24 10:29:24 -06:00
Eric Duong
9514e290a2
Static cohort on person modal (#2952)
* Upload static cohort using CSV, closes #2868

* fix tests

* Fix tests

* Fix e2e test

* Avoid double inserts

* Speed up query

* Move to params

* fix tests

* initial cleanup

* initial scaffold for cohort static logic

* intiial frontend changes

* initial working

* fix error on iterable

* stickiness people func refactor

* Use JSON instead of protobuf

* stickiness working

* clickhouse route

* unused import

* move button

* make interface easier to user

* clickhouse support

* restore cache decorator

* endpoint adjustment

* adjust how clickhouse handles inserting for static cohorts

* split out processing into pg

* use worker for clickhouse querying too

* add pg test

* ee test

* add input for cohort naming

* add stickiness test

* condition for when to show save cohort

* fix types

* minor fix

* remove repeats

* remove hardcoded id

* add date handling to trends cohort func

* remove print

* add link on success creation

* cohort working

* fix backend test

* fix cohort typescript

* remove unnecessary kafka topic

* remove brackets

* shift default

* raise exceptions when debug or test is true

* remove test flag

* move trends insight related components to different folder

* change get_earliest_timestamp

* remove extraneous condition

* fix test call

* put behind ff

* fix test x2

* fix tests

* restore exceptions hog

* fix tests

* restore exceptions hog

* fix test x20

Co-authored-by: Tim Glaser <tim@glsr.nl>
2021-02-24 09:59:13 -05:00
PostHog bot
3aaba31c8d
Update plugin server to 0.9.28 (#3456)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-02-24 12:49:49 +01:00
Yakko Majuri
56fb1f49f1
Set props to user on any event (#3444) 2021-02-24 12:22:54 +01:00
Tim Glaser
28dc79adf6
Improve django admin for organizations (#3405)
* Improve django admin for organizations

* link from user

* remove permissions fields which we don't use

* add org count to avoid confusion

* simplified org billing link as it's OneToOne ID is the same

* add nice arrow

* remove stale import

* fix typing

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-24 12:09:48 +01:00
Marius Andra
0e6f00db94
Send all events to plugin server (#3452) 2021-02-24 12:08:50 +01:00
Karl-Aksel Puulmann
28b44e9b7a
Fix setting up test databases on clickhouse (#3451)
This was used by plugin server
2021-02-24 11:58:01 +02:00
PostHog bot
3d3d0f92cf
Update plugin server to 0.9.26 (#3450)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-02-24 10:03:33 +01:00
Marius Andra
3b83b54313
Send 90% of events to plugin server (#3449) 2021-02-24 09:18:33 +01:00
Karl-Aksel Puulmann
24de8b55e4
Run tests via pytest (#3417)
* Compile requirements-dev.txt with latest pip-tools

* Install pytest

* Avoid picking up factories as tests

* New runner

* Always set TEST env variable running tests

Some of our tests rely on it.

* Remove repetition

* Fix a broken test

* Cut down noise from bin/tests

* Rename test factory

* Fix stickiness filter

* Skip a broken test

This has been broken since numpy removal PR. Sadly tests were not
running for this submodule

* Fix import on ee

* Run ee tests properly

The django_db_setup fixture will be automatically run when running ee/
module tests.

* Make tests run on CI

* Include REDIS_URL, fix cloud

* Set TEST env variable

* Hack cloud tests to work

* Attempt at workflow fix

* Import Person model when running ee tests

This module implicitly adds hooks, so this is needed when running tests

* Respect reuse-db for clickhouse

* Add custom markers to avoid warnings

* pytest: use ch test database always

Accidentally wiped by ch setup a few times without this. Oops

* Remove repetition in tests

* Pytest: Always run migrations

Testing a state cleanup fix

* Use same DB in conftest and main code

* Pytest: autoset TEST setting without env variable

* fix broken test

Co-authored-by: eric <eeoneric@gmail.com>
2021-02-24 09:32:44 +02:00
PostHog bot
e4c8923a75
Update plugin server to 0.9.25 (#3447)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-02-23 21:53:56 +01:00
Eric Duong
c22f59eb52
change frequency and interval (#3446) 2021-02-23 15:36:57 -05:00
PostHog bot
146469770b
Update plugin server to 0.9.24 (#3445)
* Update plugin server to 0.9.24

* Add more hook metrics in Python

Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-23 18:07:06 +01:00
Eric Duong
23a7c9e2df
Fix clicking datapoint with multiple entities (#3428)
* remove unnecessary condition

* change all refs

* fix switched params

* remove targeet entity from filter
2021-02-23 11:03:14 -05:00
Michael Matloka
36bc39b09b
Add telemetry for the hooks task (#3442) 2021-02-23 16:56:21 +01:00
Marius Andra
1601740bda
add : in front of password for ioredis (#3439) 2021-02-23 13:04:33 +01:00
Marius Andra
35644dc390
Send 50% of events to plugin server (#3441) 2021-02-23 12:50:18 +01:00
Marius Andra
1dec262684
Send 33% of events to plugin server (#3440) 2021-02-23 12:19:14 +01:00
Karl-Aksel Puulmann
f4039003e1
Dashboards: allow changing date filters & refresh (#3363)
* DashboardHeader to ts

* Convert files to typescript

* Use BindLogic instead of passing logics as arguments

* Improve typing for dashboards

* Fix DashboardHeader types

* Improve typing: DashboardItem

* Fix InsightHistoryPanel, SharedDashboard types

* Add WIP code for date ranges on dashboards

* DateFilter/dateFilterLogic to typescript

* Show 'Custom' daterange by default on a dashboard

* Border for dates in Dashboard

* Add dashboard.filters field

* Populate dashboard.filters, use it in code

* Fix some type errors in dashboardItemsModel

* Fetch dashboard items again on date change

* Make dashboard items refresh as dashboard gets updated

* Add refresh button to DashboardHeader

* Make saving dashboard items work again

* Update dashboard type

* Don't update URL in DateFilter

* Update selected time range on load

* Avoid flickering in DateFilter

* Only show 'Custom' in dashboards

* Show calendar icon next to date filter in dashboard

* Avoid double-loading results due to date change

* Kill some duplicated code

* Avoid cache when filters change

(datefilters on dashboard)

* Test individual update_cache method

* Add test for import_from and attributes being updated

* Fix typing errors

* Update api/dashboard tests

* Avoid redirects when changing date range for funnels or retention

Previously funnelLogic might be mounted in the background, causing a
reload

* Add a missing breakpoint

* Reformat with black
2021-02-23 12:19:36 +02:00
Marius Andra
817e117da1
Send 20% of events to plugin server (#3437)
* send 20% of events to plugin server

* add ioredis debug
2021-02-23 10:26:26 +01:00
PostHog bot
22010c1b13
Update plugin server to 0.9.23 (#3436)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-02-23 10:09:21 +01:00
PostHog bot
4f69b8142c
Update plugin server to 0.9.22 (#3435)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-02-23 09:34:53 +01:00
Paolo D'Amico
348b50f73f
Fix authenticated invite signup (#3433) 2021-02-22 14:55:02 -06:00
Paolo D'Amico
8cf616643c
Fix find_key_with_source (2231571657) (#3429) 2021-02-22 11:27:09 -08:00
PostHog bot
a65e7c83b9
Update plugin server to 0.9.21 (#3430)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-02-22 20:24:17 +01:00
Michael Matloka
edbc547d73
Support POSTHOG_REDIS_* vars in bin/plugin-server (#3426) 2021-02-22 19:15:45 +01:00
Michael Matloka
ce91a06e12
Separate stricter team model migration into two (#3424) 2021-02-22 14:04:25 +01:00
Yakko Majuri
28b548f72c
Rename DAU -> Active Users (#3420)
* Rename DAU -> Active Users

* update test
2021-02-22 12:48:45 +00:00
Michael Matloka
65e5878683
Stricter Team model (#3252)
* Remove deprecated Team.opt_out_capture

* Remove obsolete and unused Team.users

* Make Team.organization, api_token and name stricter

* Add migration

* Add Team.api_token min length

* Adjust 0124_stricter_team for opt_out_capture removal

* Don't remove Team fields

* Update migration

* Update migration

* Set org ID of orgless teams to first org instead of deleting

* Update migration

* Fix

* Ensure that each project has a name before migration

* Rename prepare_teams
2021-02-22 13:14:53 +01:00
PostHog bot
c1bcfe1fcf
Update plugin server to 0.9.20 (#3419)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-02-22 13:02:26 +01:00
Michael Matloka
aec2081e33
Revert "Reuse Postgres connections in Celery (#3379)" (#3418)
This reverts commit 06cf919b4a.
2021-02-22 10:09:32 +01:00
Michael Matloka
06cf919b4a
Reuse Postgres connections in Celery (#3379) 2021-02-22 09:18:13 +01:00
Michael Matloka
52cc8b3124
Fix "Finish setup" button (#3416) 2021-02-22 09:11:37 +01:00
Yakko Majuri
4783b80841
Finish the purge on curly-less if statements (#3414) 2021-02-22 08:36:08 +01:00
Paolo D'Amico
e35ef9df80
Migrate team invite signup to React - Part II (Front-end) (#3300)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-19 16:53:01 -06:00
Karl-Aksel Puulmann
e50980c06a
Improve reordering funnel steps (#3412)
You can now drag the whole "row" not just by the handle

distance now needs to be set not to interact badly with dropdown menus -
by default it would eat all the clicks.

Fixes #3410
2021-02-19 16:20:54 -05:00
Paolo D'Amico
b25a72d0cf
Support client-side compact number formatting & instrumentation (#3360) 2021-02-19 11:58:00 -06:00
Yakko Majuri
33c989721f
Add created by tag to individual dashboards (#3367)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-19 05:50:18 -06:00
Michael Matloka
cb3127ea3b
Fix tooltips over property type icons (#3404)
* Fix lack of rowKey on EventsTable

* Fix tooltips over property type icons
2021-02-19 13:41:30 +02:00
Karl-Aksel Puulmann
279ab4dd8a
Fix breaking down by "all" cohorts when no other cohorts (#3374)
Fixes https://sentry.io/organizations/posthog/issues/2213824556/?project=1899813&query=is%3Aunassigned+is%3Aunresolved
2021-02-19 09:36:41 +02:00
Karl-Aksel Puulmann
07d6974d08
Add some missing team_id filters (#3372)
Tested out a solution for #3085 - result is super noisy but helped me
find some bad queries.
2021-02-19 08:49:09 +02:00
Marius Andra
8ef54b3a51
plugin server 0.9.14 (#3403) 2021-02-19 02:27:31 +01:00
Marius Andra
d82226cae7
plugin server 0.9.12 (#3401) 2021-02-19 01:28:04 +01:00
Michael Matloka
acdea023fa
Update plugin server to 0.9.11 (#3400)
Co-authored-by: mariusandra <mariusandra@users.noreply.github.com>
2021-02-19 00:40:08 +01:00
Tim Glaser
1770520a10
Order distinct ids by anonymous (#3392)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-18 17:22:52 -06:00
Tim Glaser
ed919918b3
Fix unselecting fields in action (#3352)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-18 17:09:56 -06:00
Michael Matloka
44441226a4
Update plugin server to 0.9.7 (#3398)
Co-authored-by: mariusandra <mariusandra@users.noreply.github.com>
2021-02-18 23:50:58 +01:00