0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-27 16:26:50 +01:00
Commit Graph

3248 Commits

Author SHA1 Message Date
Alex Kim
f6afb1fc01 fix multiple table bugs and standardize table overflows 2021-06-11 21:01:48 -07:00
Alex Kim
321d71f6cf generalize tests 2021-06-11 14:38:12 -07:00
Alex Kim
56e8703663 add tests and totalcount prop 2021-06-11 07:48:44 -07:00
Alex Kim
5e475faab3 pass filters through context 2021-06-10 16:17:43 -07:00
Marius Andra
1db9d5d996
Keep toolbar closer to the screen edge (#4684) 2021-06-10 17:54:51 -04:00
Eric Duong
946435a752
Revert "Change funnels API from GET to POST|GET (#4670)" (#4702)
This reverts commit 4a8151bd4e.
2021-06-10 17:03:20 -04:00
PostHog bot
5cf45a5c69
Update plugin server to 0.21.20 (#4701) 2021-06-10 22:58:47 +02:00
Paolo D'Amico
fd24056e20
Fix NPS reporting bug II (#4695)
* Fix NPS metrics

* make logic explicit

* dismissing after answering one question

* fix typo
2021-06-10 11:55:04 -07:00
Eric Duong
3fe1d29ca6
Event query class (#4649)
* first try

* add entity query

* fix type issues

* used in trends

* fix test

* change select format

* change var

* add cohort filter

* add cohort conditions

* change pdi to distinct_ids
2021-06-10 14:47:33 -04:00
PostHog bot
0158ef0e54
Update plugin server to 0.21.19 (#4693) 2021-06-10 17:03:27 +02:00
Tim Glaser
6545648d1e
Fix breakdown value containing event_ (#4692) 2021-06-10 16:44:10 +02:00
Alex Gyujin Kim
4a8151bd4e
Change funnels API from GET to POST|GET (#4670)
* change get to post api

* tests

* fixed bug

* isort

* make funnels endpoint backwards compatible, add test to check this

* descriptive comment

Co-authored-by: Alex Kim <alexkim@Alexs-MacBook-Pro-2.local>
2021-06-10 16:09:30 +02:00
Karl-Aksel Puulmann
e6b1aec81b
Send duration + pathname for failed requests (#4691)
Duration measure/verify a hypothesis - are we seeing some (> 500) errors
due to them taking too long?

Previous full url was useless due to search parameters
2021-06-10 16:02:15 +02:00
Karl-Aksel Puulmann
bfc28332f1
Reduce db queries made on capture by 50% if no feature flags used by team (#4687)
This reduces load on our dbs
2021-06-10 15:43:36 +02:00
Karl-Aksel Puulmann
054ee6e57b
Add reload all dashboard items, fix reloading internal dashboards (#4598)
* Re-add refresh button, respect refresh in API

Also `internal` dashboard always refreshes all.

How it works under the hood - if refresh param is passed, we call cache
updating code before returning the cached results. This bypasses the
need to fetch data from /api/insight and other endpoints which are not
embedding-aware

Mostly solves https://github.com/PostHog/posthog/issues/3609 and
provides a workaround for https://github.com/PostHog/posthog/issues/4587

* Show "last refresh time" in dashboard.

* Remove individual refresh buttons according to TODO

* Add tests

* mypy fix

* fix UI

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-10 15:43:52 +03:00
Alex Gyujin Kim
b2baa5aebc
don't use date range from data points (#4676) 2021-06-10 12:35:22 +02:00
Alex Gyujin Kim
fed96420e5
remove filterlength check (#4672) 2021-06-10 12:29:58 +02:00
Kunal
91dbaaa1da
fix result reporting (#4678)
Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-06-10 12:23:10 +02:00
Marius Andra
22c1c92595
Disable auto-extending toolbar buttons (#4674) 2021-06-09 20:35:46 -07:00
Alex Gyujin Kim
a64212d3f5
Use trends legend graph everywhere (#4646)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-09 20:30:51 -07:00
Li Yi Yu
6f6b126f22
Event/property taxonomy frontend (1/3) (#4591)
* split up files and organize code

* set up definition drawer and logic and add tagging

* add change owner selection

* definition description editing working

* definition drawer graph and events table

* remove graph logic for now

* small fixes

* property definition doesn't have an owner

* minor tweaks

* lots of small fixes

* show tags on table, disable editing for posthog events, fix tags autocomplete

* fix font sizes and alignment

* allow event limiting and hide behind feature flag again

* linter things

* test fix

* lint

* clean up events limit

* limitOffsetPagination in events

* ignore type

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-09 19:45:42 -04:00
Sam Winslow
f6d24270d3
Revert "Fix paths start element selector" (#4668) 2021-06-09 11:25:30 -04:00
Marius Andra
ef2b6acda0
Misc fixes from 4571 (#4658)
* simplify cypress nav menu clicks

* clean unused annotations code

* don't blank all cohorts when deleting one

* add data-test-filters-loading to better target loading indicators in tests
2021-06-09 16:58:34 +02:00
Michael Matloka
adefe429c4
Set PLUGIN_SERVER_ACTION_MATCHING to 1 (#4664) 2021-06-09 15:29:54 +02:00
PostHog bot
f27d0fc4b2
Update plugin server to 0.21.18 (#4663) 2021-06-09 15:00:07 +02:00
Yakko Majuri
6e650752de
Fix paths start element selector (#4662) 2021-06-09 09:58:16 -03:00
PostHog bot
be447b0811
Update plugin server to 0.21.17 (#4660) 2021-06-09 13:06:41 +02:00
PostHog bot
57a9ebef34
Update plugin server to 0.21.16 (#4657) 2021-06-09 11:38:16 +02:00
Marius Andra
a9fae11074
App context + persist feature flags + joy (#4652)
* preload user via django

* create django app context

* persist feature flags in localStorage

* add preflight into app context

* return undefined if no context

* keep user as `null`, it'll be overriden before anything renders anyway via `afterMount`

* remove broken and unused user code

* call `registerInstrumentationProps` when preloading `preflight`

* for cypress premium tests: add a search param to opt-out of using the preloaded context, so we could intercept the users api call
2021-06-09 11:08:49 +02:00
Marius Andra
0ce09ce4ee
No login flash (#4642)
* move scene override to sceneLogic to prevent seeing the login screen when logged in

* open the next scene if login has an url

* merge if to avoid bug

* minor comment clarifications

* refactor afterLoginRedirect()

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-09 10:01:47 +02:00
Marius Andra
82c5891e65
fix demo error (#4650) 2021-06-08 21:12:25 -07:00
Paolo D'Amico
d0c93fa589
Upgrade to Django 3.1.12, urllib & requests (#4639) 2021-06-08 14:19:32 -07:00
Sam Winslow
2ad5115ce0
Prevent auto-focused menus from covering controls (#4600)
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-08 16:11:12 -04:00
Alex Gyujin Kim
50e1241049
Revert "Change funnels API from GET to POST (#4602)" (#4645)
This reverts commit b87f79dd41.
2021-06-08 19:08:53 +00:00
Alex Gyujin Kim
b87f79dd41
Change funnels API from GET to POST (#4602)
* change get to post api

* tests

* fixed bug

* isort

Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2021-06-08 11:20:47 -07:00
Eric Duong
8cc90dff67
make sure to add table name to prop clauses on breakdown query (#4607)
* make sure to add table name to prop clauses so that event/person properties column isn't vague

* pass table name when formatting breakdown query

* add test
2021-06-08 13:45:55 -04:00
Buddy Williams
bdc1ab6c4b
Support funnel trends conversion window (#4618)
* added conversion window in days to funnel trends

* convert floats to ints so that the query doesn't break

* use kea breakpoints instead of debouncing lib

* put conversion input behind ee check
2021-06-08 13:40:05 -04:00
Tim Glaser
82128252f2
Remove annotations from stickiness (#4616)
* Remove annotations from stickiness

* clarify intent behind line

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-08 16:59:36 +00:00
Sam Winslow
902eb77396
Base tooltips refactor (#4529)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-08 09:18:23 -07:00
Karthikeyan Singaravelan
ce8fae4f2b
Handle invalid JSON passed through properties. (#4634)
* Handle invalid JSON passed through properties.

* Throw a validation error

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-08 17:30:10 +02:00
Eric Duong
16f3d8caea
Make sure event prop breakdowns return correct people (#4638)
* make sure event prop breakdowns return correct people

* add clause to postgres

* fix test
2021-06-08 10:57:48 -04:00
Sam Winslow
9411a55858
Coerce possibly undefined values in insights filters to [] (#4636) 2021-06-08 10:32:17 -04:00
Marius Andra
3e65af436d
Frontend Models (persistent logic) (#4627)
* move event and property definitions to models, refactor models to import via component if user present

* rename Logic to Model

* add personPropertiesModel

* refactor sessionFilters to use personPropertiesModel

* remove personProperties from inside propertyFilterLogic and use the model

* break ternary

* fix cohort and feature flag tests (for virutalized lists)
2021-06-08 15:16:10 +02:00
Marius Andra
f2744edeb1
Cypress component test fix + style refactor (#4628)
* clean up styles into a folder

* fix cypress helper styles
2021-06-08 14:33:51 +02:00
Michael Matloka
2db1924303
Replace distutils.strtobool with our own (#4631)
* Replace `distutils.strtobool` with our own

* Add docstring

* Don't wrap str_to_bool in bool needlessly anymore

* Don't wrap str_to_bool arg in str needlessly anymore

* Move `print_warning` to `utils`
2021-06-08 14:31:46 +02:00
Marius Andra
99b2f5aea1
Various frontend fixes for App and sceneLogic (#4614)
* remove unused export

* better feature flag logic connection

* hide development overlay until CSS loads

* refactor the way feature flags are loaded for the app

* show a spinner only after a second

* type fix

* simplify active scene

* allow copy/pasting from dev bar

* explain why not to use sceneLogic

* rename file to ts

* create appLogic

* clean up empty component

* remove unused path splitting code (`/url1|/url2`)

* add preflight check to App from AppScene
2021-06-08 10:35:47 +02:00
Sam Winslow
37d061b2c9
hotfix: fix 'cannot read length of undefined' (#4617) 2021-06-08 09:35:34 +02:00
Eric Duong
3eeb770e0b
Use cohortpeople table for queries (#4622)
* use cohortpeople table for queries

* add check

* make sure timestampe is offset aware
2021-06-07 19:16:03 -04:00
Paolo D'Amico
a0df9b7fe1
NPS adjustment & release (#4623) 2021-06-07 12:42:04 -07:00
Alex Gyujin Kim
cbf98eb6fd
Fix padding bug in popovers (#4619) 2021-06-07 12:21:59 -07:00