0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-29 19:16:37 +01:00
Commit Graph

3330 Commits

Author SHA1 Message Date
Paolo D'Amico
50ef5bea19
Remove legacy code for previous insights’ UI (#4852)
* remove legacy vertical tabs

* remove a bunch of more legacy code

* remove crosshair from lifecycle chart

* bring back changes from #4845

* fix trends tests

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-24 17:14:08 +02:00
Tim Glaser
845117cd8e
Fix people csv download (#4804)
* Fix downloading person CSV in clickhouse

* add properties

* Fix exceptions

* add properties
2021-06-24 17:12:04 +02:00
Alex Gyujin Kim
8121a4d933
Fix and standardize multiple table UI inconsistencies (#4727)
* fix multiple table bugs and standardize table overflows

* support more es2019 functions like Object.fromEntries

* simplify getting active breakout value

* unset maxWidth for resizable cols by default

* fix feature flag key cutoff and empty description bug

* ellipsify feature flag table

* labels or dates or days

* fix bugs; refactor table scroll

* fix double key and increase the width just a bit

Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-06-24 17:09:41 +02:00
Marius Andra
4c921aa7be
force some keypresses (#4867) 2021-06-24 16:30:46 +02:00
Li Yi Yu
b759e15f7e
pass in cohort id not name as value (#4866) 2021-06-24 16:21:29 +02:00
Li Yi Yu
dc3caac3b1
fix cohort filter bug (#4861) 2021-06-24 09:15:35 -04:00
Marius Andra
14e3eb6ddf
Remove non null assertions (#4862)
* upgrade typegen

* remove non-null assertions

* fix small type bug

* fix sessions ts errors
2021-06-24 10:00:59 +02:00
Li Yi Yu
24fd3a54ff
Event definition drawer properties (#4722)
* wrap css classnames and allow for property definition filtering

* event properties section

* properties stats table and object tag functionality

* property descriptions and save all descriptions button

* fix description editing on the table

* fix test failures

* debouncing input is weird

* split up components

* refactor definition drawer kea file

* drawer should only open for taxonomy feature users

* lint errors

* prettier

* property definition filter backend test

* fix test

* populate test with definitions..

* clean up

* clean up property drawer interactions

* fix everything but scroll top issue

* test scroll issue

* table state wip

* update logic after typegen

* prevent undefined error

* only make the clickable rows clickable, not the entire table

* upgrade typegen and fix error with feature flags

* move to reducers and rename action

* update blacklist

* fix event properties description bug

* update typegen once more

* fix editing for events table

* fix editing for properties table

* add script to clean typegen

* update ts blacklist

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-24 09:00:59 +02:00
Buddy Williams
d9de6186d2
Funnels reorganization, persons pagination, and conversion window support (#4810)
* wip: pagination for persons on clickhouse funnels

* wip: added offset support for getting a list of persons; added support for conversion window;

* fixed mypy exception

* helper function to insert data for local testing

* moved generate code into separate class for more functionality later

* corrected person_distinct_id to use the person id from postgres

* minor corrections to generate local class along with addition of data cleanup via destroy() method

* reduce the number of persons who make it to each step

* moved funnel queries to a new folder for better organization; separated funnel_persons and funnel_trends_persons into individual classes;

* funnel persons and tests

* invoke the funnel or funnel trends class respectively

* mypy corrections and PR feedback

* corrected tests

Co-authored-by: eric <eeoneric@gmail.com>
2021-06-23 21:49:39 -04:00
Yakko Majuri
6c9bb2db0f
Update token gen (#4832)
* use base36 for random tokens

* Use prefix + base62

* add migration

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-23 13:19:05 -03:00
Marius Andra
4228d99689
prevent undefined error (#4857) 2021-06-23 11:47:56 +02:00
Marius Andra
eb559c8c74
Fix saving paths to dashboard with horizontal UI (#4845)
* few more TS conversions

* type IntervalFilter

* type a few dashboard logics

* add chart display types, fix some others

* fix few types

* fix bug uncovered by TS conversion

* fix regression

* type PropertyFilter

* fix more types

* correct test account filter type

* fix even more types

* fix issue with updateUser type

* fix issue with updateUser type

* fix issue with filters on paths

* extract "isFilledPropertyFilter" method
2021-06-22 22:35:13 +02:00
Eric Duong
d31220e85d
Make event query class inheritable (#4720)
* make query class inheritable

* swap out class

* move trend event query to separate file and replace date_filter func

* prune imports and fix test

* add type

* remove imports
2021-06-22 11:44:55 -04:00
Yakko Majuri
a71a1eac96
add metrics to plugin table (#4783) 2021-06-22 11:07:05 -03:00
Marius Andra
faa105e935
Property filter types (#4843)
* few more TS conversions

* type IntervalFilter

* type a few dashboard logics

* add chart display types, fix some others

* fix few types

* fix bug uncovered by TS conversion

* fix regression

* type PropertyFilter

* fix more types

* correct test account filter type

* fix even more types

* fix issue with updateUser type

* fix issue with updateUser type
2021-06-22 15:55:52 +02:00
Marius Andra
6396d52074
Plenty-o-types (#4842)
* few more TS conversions

* type IntervalFilter

* type a few dashboard logics

* add chart display types, fix some others

* fix few types

* fix bug uncovered by TS conversion

* fix regression
2021-06-22 15:29:45 +02:00
Yakko Majuri
31f1440a5d
In product $plugins_xxxx docs (#4807)
* In product $plugins_xxxx docs

* Update frontend/src/lib/components/PropertyKeyInfo.tsx

Co-authored-by: Michael Matloka <dev@twixes.com>

* Update frontend/src/lib/components/PropertyKeyInfo.tsx

Co-authored-by: Michael Matloka <dev@twixes.com>

* Update frontend/src/lib/components/PropertyKeyInfo.tsx

Co-authored-by: Michael Matloka <dev@twixes.com>

* Fix closing tags

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-22 12:47:38 +02:00
PostHog bot
d5c7655ddb
Update plugin server to 1.0.0 (#4836)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-06-21 23:28:02 +02:00
Alex Gyujin Kim
8e30172600
Fix bug where we can't see counts in Insight Table (#4706)
* pass filters through context

* add tests and totalcount prop

* generalize tests

* remove feature flag
2021-06-21 23:21:00 +02:00
Marius Andra
3c691f4f5c
Funnels API GET -> POST|GET - Frontend + Clickhouse (#4789)
* Revert "Revert "[Frontend Change] Funnels API GET -> POST|GET (#4769)" (#4777)"

This reverts commit dab41f0f6a.

* Add POST support to clickhouse funnels

* run funnel tests on clickhouse
2021-06-21 13:13:08 -07:00
Alex Gyujin Kim
631f901ae6
switch copy icon in feat flag table (#4835) 2021-06-21 22:04:27 +02:00
posthog-contributions-bot[bot]
1ee1615738
🤖: Add pietrodevpiccini as a contributor 🎉 (#4827) 2021-06-21 16:29:13 +01:00
Dimitris Mazarakis
4a7ef81649
Add Auto-Refresh toggle button #1687 (#4773)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-21 16:36:22 +02:00
Michael Matloka
c2f02a7bdf
Plugin server action matching as default (#4829)
* Set PLUGIN_SERVER_ACTION_MATCHING default to 1

* Set PLUGIN_SERVER_ACTION_MATCHING default to 2

* Remove `TestSendToSlack`

Now handled by the plugin server.
2021-06-21 16:19:36 +02:00
PostHog bot
3d0eeb05f3
Update plugin server to 0.21.27 (#4830) 2021-06-21 15:15:37 +01:00
Tim Glaser
ebe7b47e62
closes #4824 Fix formula (#4825) 2021-06-21 15:14:04 +02:00
Kunal
1679494b6a
Add viewport keys to special prop list (#4796)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-21 08:00:24 +02:00
PostHog bot
27144478f5
Update plugin server to 0.21.26 (#4809) 2021-06-19 02:40:49 +02:00
Li Yi Yu
56ea8042c0
display small yaxis values better (#4808) 2021-06-18 14:15:14 -07:00
Karl-Aksel Puulmann
0f36e7bad1
Include instance realm and version in various events/posthog.people.set calls (#4800)
Related issue: https://github.com/PostHog/company-internal/issues/313

Aside: It's kind of wierd how few person properties we're setting. Is
that intentional?
2021-06-18 23:44:22 +03:00
Michael Matloka
69afc5abc2
Set PLUGIN_SERVER_ACTION_MATCHING to 0 (#4805) 2021-06-18 15:08:50 +00:00
Michael Matloka
5394533bde
Don't fire webhooks and Zapier in case of PLUGIN_SERVER_ACTION_MATCHING (#4794)
* Don't fire webhooks and Zapier in case of PLUGIN_SERVER_ACTION_MATCHING

* Add PLUGIN_SERVER_ACTION_MATCHING to settings

* Add PLUGIN_SERVER_ACTION_MATCHING to ECS task defs

* Remove leftover print

* Update `AsyncActionMappingNotice`

* Remove stale import
2021-06-18 16:32:29 +02:00
PostHog bot
a039ffa2f1
Update plugin server to 0.21.25 (#4803) 2021-06-18 16:31:55 +02:00
Marius Andra
cd94d2d464
Kea-typegen auto-import (#4801)
* fix a lot of types

* fix another bunch of types

* update typegen to beta, patch last types

* fix introduced bug

* fix a few errors

* update ts blacklist
2021-06-18 12:22:10 +02:00
Paolo D'Amico
e8f0f6466c
Fix broken color issue (#4790) 2021-06-18 12:16:20 +02:00
Paolo D'Amico
3185a91835
Fix cypress component tests (#4736)
* Fix cypress component tests

* fix removeEventListener 🤞

Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-06-18 12:08:35 +02:00
Neil Kakkar
4097b7bcf9
New doc links + copy for Plugins in Source Editor (#4755)
* fix merge

* copy update + links

* Proposed updates to #4755 (#4792)

* Reword Plugins header caption a bit

* Update `defaultSource` slightly (functioning `runEveryHour`)

* Update source editor help wording

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-18 11:23:57 +02:00
Kunal
85c90fa8d5
Encode filter search params (#4798)
Co-authored-by: kunal <kunal@kunals-MacBook-Pro.local>
2021-06-17 14:39:53 -07:00
Michael Matloka
0aa5e0a319
Remove faulty repo-dependent Cypress test (#4793) 2021-06-17 20:36:43 +02:00
dependabot[bot]
5249fff5c4
Bump postcss from 7.0.35 to 7.0.36 (#4784)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.35 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.35...7.0.36)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-17 18:42:49 +02:00
Tim Glaser
b821b845a6
Remove free clickhouse license (#4788) 2021-06-17 16:47:04 +03:00
Paolo D'Amico
c89f19d616
Improve action creation process for elements (#4759)
* clarify elements in toolbar

* clarify match group page
2021-06-17 13:16:36 +02:00
Tiina
0bb9108b6d
api/user endpoint deprecation notice to direct to api/users/@me (#4780)
* api/user endpoint deprecation notice to direct to api/users/@me

* nuke change_password param

* remove endpoint & tests

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-17 12:45:08 +02:00
Paolo D'Amico
65500612dc
Tooltips improvements III (#4751)
* adjust tooltip position

* fix crosshair snap

* allow clicking the correct datapoint

* optimize InsightTooltip

* fix no background colors in bar value chart

* fix positioning for bar value chart

* fix display on bar value charts with breakdown

* use custom chart.js

* add slight animation to tooltip position

* use posthog chartjs with "nearestX" mode

* update to a unborked @posthog/chart.js

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-17 12:06:55 +02:00
Michael Matloka
4bd79a27b7
Fix CI on forks (#4754)
* Remove commented out test

* Update VERSION

* Don't run the automerge job on forks

* Revert "Update VERSION"

This reverts commit dc37f20133.

* Change automerge condition

* Change automerge condition a bit more

* Try scrolling

* Scroll by more

* Stop GitHub complaining about no jobs ran in a workflow

* Search for a different event name

* Try a different operator

* Don't default branch push jobs on forks

* Move clicks around

Co-authored-by: PostHog Bot <hey@posthog.com>
2021-06-17 00:22:23 +02:00
Sam Winslow
e737947d35
Use ellipsis for insight titles & make Reset, Save buttons less verbose (#4778)
* Shorten default titles && add tooltips to Reset, Save btns

* Hide tooltip when SaveToDashboard modal shows

* Adjust flexbox && hide btn titles on sm screens
2021-06-16 14:56:18 -07:00
Tiina
1ed333365a
Add .yaml files to be linted with prettier too (#4771) 2021-06-16 18:04:51 +02:00
Alex Gyujin Kim
dab41f0f6a
Revert "[Frontend Change] Funnels API GET -> POST|GET (#4769)" (#4777)
This reverts commit bbf7af2920.
2021-06-16 08:45:02 -07:00
Neil Kakkar
4080c5a02d
Resolve /decide endpoint errors due to invalid token (#4772)
* update token cleaning code

* add test
2021-06-16 14:10:06 +00:00
Yakko Majuri
c0106b1fcc
Allow passing project api key to api/feature_flag (#4764)
* allow passing project api key to api/feature_flag

* remove log

* handle GET requests appropriately

* add special handling

* nicer GET check

* remove special handling at routing level
2021-06-16 15:09:08 +02:00