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

3885 Commits

Author SHA1 Message Date
Manish Rastogi
7b30a4aa84
Closes #4987 sets page title to dashboard name whenever a dashboard is visited (#5822)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-09-07 11:44:20 +02:00
Michael Matloka
ef86c9fa08
Actually disable stale bot for issues (#5832) 2021-09-07 11:16:06 +02:00
Marius Andra
a4221e4499
Onboarding storybook (#5827)
* remove stories folder

* return `null` like a component type can

* un-default exports

* add onboarding stories
2021-09-07 11:05:35 +02:00
PostHog bot
c37ee244c3
Update plugin server to 1.6.0 (#5830) 2021-09-07 09:44:07 +01:00
posthog-contributions-bot[bot]
0b76d839b5
🤖: Add manish001in as a contributor 🎉 (#5828) 2021-09-07 09:41:27 +01:00
Karl-Aksel Puulmann
17836f80f5
Add command for materializing columns (#5816)
* Add command for materializing columns

Expecting this to get used in both dev as well as when improving
upstream installations

* No clashes in tests

* Solve for feedback

* Comments for clarity
2021-09-07 07:56:29 +00:00
Karl-Aksel Puulmann
35813b3b49
Refactor breakdowns to work with materialized person columns (#5807)
* Make breakdown join with person if needed

* Refactor trends to be purely class-based, don't rely on wonky inheritance

* Extract method

* Improve person join behavior

* Remove unneeded parameter

* Mark a function thats always passed as such

* Add test case demonstrating previous non-join case

* Unify two get_breakdown_prop_values methods

* Add test for materialized columns

* Simplify trends breakdown query

* Unify _breakdown_prop_params for events/person breakdowns

* Use shared column_optimizer

* Typing fix

* Cleanup

* Code style cleanup

* Code style cleanup

* Fix param ordering
2021-09-07 09:05:13 +03:00
Michael Matloka
c318815a4b
Persons modal polish (#5769)
* Use built-in Button component loading state

* Improve person modal header wording for funnel case

* Make use of `PersonHeader` in `PersonModal`
2021-09-06 16:05:31 +02:00
Karl-Aksel Puulmann
5d6b083c90
Fix uses_elements_chain (#5810)
Closes https://github.com/PostHog/posthog/issues/5808

I'd love to fix this at the schema level but looked into it for ~20
minutes and it didn't seem like there's a pretty solution that allows to
pass `None` to .objects.create and for the default to be used.

Other solutions would be even more invasive and require manipulating
serializers.

Best leave this to when we refactor all of out `properties` JSONFields
since they all have this issue
2021-09-06 16:55:54 +03:00
dependabot[bot]
3658872199
Bump tar from 6.1.3 to 6.1.11 in /plugins (#5774)
Bumps [tar](https://github.com/npm/node-tar) from 6.1.3 to 6.1.11.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v6.1.3...v6.1.11)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-06 14:31:44 +02:00
PostHog bot
c6836f8dab
Update plugin server to 1.5.1 (#5791)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-09-06 13:36:19 +02:00
PostHog bot
68e4407da2
Update posthog-js to 1.13.7 (#5811) 2021-09-06 10:30:07 +01:00
Karl-Aksel Puulmann
0df87579ab
Add more materialized column settings (#5806) 2021-09-04 18:07:20 +03:00
Sam Winslow
4758e66790
Highlight the active item (#5800) 2021-09-02 16:08:56 +01:00
Sam Winslow
86b34eda27
Dive button styling (#5798) 2021-09-02 15:49:56 +01:00
Tiina Turban
4a39032ba6
Add dive_source_item to dashboard results (#5784) 2021-09-02 15:17:09 +01:00
PostHog bot
7266e32e16
Update posthog-js to 1.13.3 (#5795)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-09-02 15:36:51 +02:00
Sam Winslow
05e00bd618
Pass dive_source_id to the dashboard item api call (#5794) 2021-09-02 13:52:42 +01:00
Neil Kakkar
cfd7e586ac
use to step when not looking for all steps (#5793) 2021-09-02 08:14:33 -04:00
Tiina Turban
9e2ff189f7
Add removal for dive dashboard link (#5790) 2021-09-02 12:51:16 +01:00
Tiina Turban
603b31a301
Make us write the linked dashboard to the db too (#5792) 2021-09-02 12:42:44 +01:00
PostHog bot
ec8fd48c31
Update posthog-js to 1.13.2 (#5789)
* Update posthog-js to 1.13.2

* update sentry to fix TS error

Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-09-02 11:22:49 +01:00
Tiina Turban
ce30c2b178
add a way to set dive dashboards (#5787) 2021-09-02 11:02:49 +01:00
Sam Winslow
88a0b38267
Dashboard View and Dive buttons (#5785) 2021-09-02 10:36:47 +01:00
Sam Winslow
aedd207a78
Add dive dashboard to model + API (#5779)
* add key for dive dashboard to model

* simplify API & add dive dashboard to it

* walk back sketchy api changes
2021-09-01 22:17:06 +01:00
Eric Duong
33a3c0e238
try to remove redundant filtering (#5782) 2021-09-01 15:40:27 -04:00
Eric Duong
4ac73045de
add missing table name in query (#5781) 2021-09-01 13:51:33 -04:00
Sam Winslow
407a78fd14
Remove restriction that multivariate flags should not be returned in v1 (#5766) 2021-08-31 08:12:40 +01:00
posthog-contributions-bot[bot]
f34cc1ca0f
🤖: Add xahhy as a contributor 🎉 (#5773) 2021-08-30 16:53:34 +01:00
James Greenhill
9a65de76c6
Attempt a fix for building xmlsec python wheel (#5768) 2021-08-28 13:47:25 +02:00
Karl-Aksel Puulmann
8d8705d1bb
Materialize person columns automatically (#5760)
* Hotfix: Use materialized columns on cloud

This was broken since default_kind was different on Distributed tables
on cloud

* Improve __init__.py

* Make reverting DEFAULT column async, only ON CLUSTER for events table
2021-08-28 12:14:30 +03:00
Paolo D'Amico
82453beec1
Random improvements (#5755) 2021-08-27 15:46:06 -07:00
Karthikeyan Singaravelan
122aee8104
Remove unused call to distutils which was deprecated in Python 3.10. (#5765) 2021-08-27 15:38:19 -07:00
Neil Kakkar
9e909855a0
Treat URLs with trailing slash as equivalent in Paths computation, and some bug fixes (#5763)
* fix some path bugs

* cleanup

* dont remove / when only /

* use appendTrailingChar

* revert back

Co-authored-by: eric <eeoneric@gmail.com>
2021-08-27 15:28:01 -04:00
Eric Duong
8709e17c77
Path end point target (#5746)
* make functions dynamic

* add end test

* add adjustments

* remove reverse
2021-08-27 14:38:19 -04:00
Paolo D'Amico
bcf9837e38
SAML - frontend & enforce (#5758) 2021-08-27 09:37:30 -07:00
PostHog bot
8eccd180bf
Update plugin server to 1.5.0 (#5764) 2021-08-27 17:11:51 +01:00
Paolo D'Amico
627d493817
SAML support (#5681) 2021-08-27 07:20:49 -07:00
Cory Watilo
6e4c918065
make utility links block-level to increase clickability (#5662) 2021-08-27 09:45:20 +02:00
Marius Andra
a9f098a659
Storybooks via Chromatic (#5736)
* add chromatic

* install chromatic only in a github action

* remove chromatic script (published via github action)
2021-08-27 09:43:15 +02:00
Alex Gyujin Kim
117e18a786
Custom step range picker for funnels time conversion (#5704)
* change steps dropdown selector to custom step picker

* move steps picker to options tab

* make funnels horizontal

* move exclusion filter to horizontal tab

* fix conversion window trigger bugs, update copy for steps picker

* move saved funnels to tab

* move to graph

* give divider some height

* FF it

* fix white screen bug; fix step range default bug

* clamp funnel step range

* remove console

* remove console

* fix reducer
2021-08-27 05:11:52 +00:00
Karl-Aksel Puulmann
b2fe0868d7
Proposal: Set mutations_sync in client.py instead of docker config (#5748)
This avoids weird divergence with prod that we need in ee tests but don't
want in e.g. plugin server tests or while developing.
2021-08-26 20:32:01 -07:00
Paolo D'Amico
e61f7ed9a7
Prefer "team members" (American English) (#5754) 2021-08-26 23:15:49 +02:00
Karl-Aksel Puulmann
0d5df5d3ba
Hotfix: Use materialized columns on cloud (#5753)
This was broken since default_kind was different on Distributed tables
on cloud
2021-08-26 21:29:00 +03:00
Karl-Aksel Puulmann
a8a33251a9
Use materialized person properties in trends & funnels (#5705)
* ColumnOptimizer: Add functionality for person materialized columns

* WIP: Use person properties in trends/funnels

* Test person materialized props in trends cohort breakdown query

* Make use of materialized person properties in breakdowns

* Mark some cases working with materialized columns

* Test and fix breakdown by person props without filtering

* Make filtering by entity/person props on a join work better

By not assuming everything is under `properties`

* Add test case around breakdown with person properties

* Add test cases around materialization

* Add another materialization test

* Test cohorts and fix breakdowns with person filter

This exposes a limitation in the current implementation

* Fix some cohort tests

* Fix event query tests

* Get a funnel materialized column test running

* Cover more funnel breakdown tests with materialized

* Handle person property breakdowns in funnels

* Fixup funnel typo

* Add tests, fix an indentation issue

* TestFunnelPersons with materialized columns

* Test funnels against actions with person filters

* Add failing test for entity filtering failing

* Add test case for filtering with entity properties

* Show my 'broken' test is actually doing a subquery

* Resolve linting issues
2021-08-26 18:00:49 +00:00
Alex Gyujin Kim
2f885e11b3
Make funnels query bar horizontal again (#5730)
* make funnels horizontal

* move exclusion filter to horizontal tab

* move saved funnels to tab

* FF it
2021-08-26 17:48:53 +00:00
Michael Matloka
84dc2b0324
Rework SessionsPlayerButton and clean up Sessions UI (#5745)
* Refactor `PersonModal` and clean related components up a little

* Improve footer button conditions

* Remove unused vars

* Clean up session recordings table

* Rework `SessionsPlayerButton`

* Fix color of play button for viewed recordings

* Fix typing issue

* Fix tests

* Update Sessions.cy-spec.js

* Address feedback

* Simplify button styles

* Add tooltip
2021-08-26 19:17:30 +02:00
Karl-Aksel Puulmann
10a26d3e17
Automatically create materialized properties (#5744)
* Avoid naming collisions when materializing columns

1. Prefix person properties differently. Mixing them up can break
ambigious column issues
2. When name already exists, suffix with random junk :)

* Implement analyze.py

* Add `suggested_columns_to_materialize`

* Add code to backfill a materialized column

* Add tests for backfilling data

* Cleanup

* Add tests for analyze

* WIP: Crontab for materializing columns

* Nooped task for materializing properties

* Use mutations_sync=0 for column tests

* Add comment
2021-08-26 18:48:57 +03:00
Sam Winslow
5b589c5765
Multivariate flags UI (#5725)
* selector for boolean/variant

* update frontend forms

* persist updated values for flag variants

* input validation && error msgs

* add/remove variants

* change behavior of adding variant

* focus new field on add

* more focus management

* popconfirm to avoid losing data

* button to distribute variants equally

* hide multivariate UI behind feature flag

* change FF name
2021-08-26 14:59:01 +00:00
Michael Matloka
7f605c8bd9
"Personalize" "people" and "users" (#5739)
* Refactor `PersonModal` and clean related components up a little

* Improve footer button conditions

* Remove unused vars

* "Personalize" "people" and "users"
2021-08-26 12:33:36 +00:00