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

6082 Commits

Author SHA1 Message Date
Michael Matloka
b32a77fb56
Release lemonade for self-hosted users (#7059)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-11-11 12:20:01 -08:00
Michael Matloka
d5c2412edb
Make dashboard item shadow look sleek (#7062)
* Make dashboard item shadow look sleek

* fixes based on Chris's feedback

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-11-11 21:08:58 +01:00
Michael Matloka
4b74b5a11c
Improve insight type tabs (#7071) 2021-11-11 19:49:08 +01:00
Guido Iaquinti
ff07577a47
Move production.Dockerfile from slim to alpine (#6575)
* Move production.Dockerfile from slim to alpine

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Update production.Dockerfile

Co-authored-by: Harry Waye <harry@scalexp.com>

* WIP

* Don't remove 'plugins/node_modules'

Co-authored-by: Harry Waye <harry@scalexp.com>
2021-11-11 10:42:59 -08:00
Eric Duong
d6d924af1d
[funnel] remove funnel persons on data return (#7044)
* remove funnel persons on data return

* remove person checks

* update tests

* remove comment

* add comment

* snapshots
2021-11-11 13:19:20 -05:00
Michael Matloka
b2c730269c
Align dashboard title style with other page titles (#7060) 2021-11-11 17:43:30 +01:00
Michael Matloka
1cd92515f5
Limit auto height of trends graph (#7065) 2021-11-11 17:43:13 +01:00
Michael Matloka
a0ebb9f4f5
Add data-attrs to new sidebar (#7069)
* Add data-attrs to new sidebar

* Small fix
2021-11-11 14:42:12 +00:00
Michael Matloka
bc06c27472
Add sidebar alias from particular feature flag scene to feature flags general (#7067) 2021-11-11 15:02:51 +01:00
Paul D'Ambra
f319948b2e
Add test helper method (#7053)
* add test_helper_methods

* move all the tests where the properties are the same for all events to the journey helper

* compare funnel results without caring about person order

* spell words correcterly

* Revert "spell words correcterly"

This reverts commit befb83b183.

* Revert "compare funnel results without caring about person order"

This reverts commit 268927b8ba.

* correct types for test props
2021-11-11 13:34:13 +00:00
Asher Foa
25611cdf67
Replace usage of str.format w/ f-strings (#6930) 2021-11-11 14:22:52 +01:00
Karl-Aksel Puulmann
9057d6151c
Groups: Capture information when new group types are ingested (#7055)
* Add groups info to first team event ingested event

* Return isInsert from `insertGroupType`

* Capture an event when GroupTypeManager sees an group type for the first time

* Capture events with instance group also set

* Fix group type manager tests

These were 100% broken

* Tests for capture

* Update a test
2021-11-11 14:54:01 +02:00
Neil Kakkar
200caa6b6a
Correlation Persons for properties (#7052)
* Introduce funnel correlation person properties endpoint

* add snapshots

* address comments
2021-11-11 11:31:14 +00:00
Eric Duong
e5503cfd26
remove changing timestamp (#7046) 2021-11-11 11:30:50 +00:00
Asher Foa
f61a15e262
Use generator expressions instead of list comprehension (#6931) 2021-11-11 11:59:56 +01:00
Paolo D'Amico
cd0f06dbe4
Release notes tweaks (#7045)
* if latest version is not available don't treat as if update is available

* open array instead of modal

* remove changelog modal
2021-11-11 11:47:50 +01:00
Karl-Aksel Puulmann
094d4ea2a3
Show person tooltip in insights (#7023)
This was removed by accident with the shared dashboards work I assume?
2021-11-11 11:44:57 +01:00
Asher Foa
16062a0fc9
Use settings via django.conf instead of importing posthog.settings directly (#6929) 2021-11-11 11:00:41 +01:00
Paul D'Ambra
d808165ca1
Corrects the path to search for in list of feature flags (#7038)
* corrects the path to search for in list of feature flags

* actually why not search key and name
2021-11-11 10:52:31 +01:00
Neil Kakkar
d8493fe0eb
fix #7030 (#7047) 2021-11-10 23:42:36 -08:00
Karl-Aksel Puulmann
9ad6e3f271
Groups/Funnels: Use GroupType instead of users in wordings (#7034)
* Show group name in various funnel tables

* Add pluralize option, expand usage

* Update tooltip and table 'users' counts

* Update copy for FunnelCorrelation

* Handle a few more views

* Show count in bar graph

* Update labels

* Update frontend/src/scenes/funnels/FunnelBarGraph.tsx

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2021-11-11 09:33:00 +02:00
Karl-Aksel Puulmann
36452563be
Disable funnel step dropdown if aggregating by groups (#7037)
Since paths is user-based
2021-11-11 09:11:25 +02:00
Eric Duong
243bd9c4d7
replace removed listener (#7043) 2021-11-11 00:46:36 +00:00
Paolo D'Amico
57e6fb5f99
Robust release shipping (#7002) 2021-11-10 16:42:18 -08:00
Eric Duong
74777d1bee
missing indent (#7042) 2021-11-10 23:52:48 +00:00
Alex Gyujin Kim
dfd79e88b2
hide rename filter in table behind FF and fixes (#7040) 2021-11-11 00:45:58 +01:00
Karl-Aksel Puulmann
3a3e8b273e
Groups/FE: Support breakdowns in trends & funnels (#7013)
* Fix: Connect instead of mount

* Refactor TrendTab a bit

* Support breakdowns in trends and funnel FE

* Show group filters in funnels, paths, retention (#7019)
2021-11-10 17:32:13 -05:00
Eric Duong
5d264b6c7d
[insights—persons] Trends person urls (#6966)
* basic backend implementation

* fix backend url formatting

* frontend

* provide params alongside url

* remove console log

* remove load function

* aggregate handling

* aggregate test

* update tests

* add pie handling

* type

* aggregate breakdown

* check jsonextract on properties

* make all tests work

* actionsbarvalue

* use new function

* remove url

* typing and cleanup

* use api.get

* typing

* cumulative

* add breakdown
2021-11-10 16:54:51 -05:00
Li Yi Yu
cd10555607
Groups property values (#6967)
* add groups property values

* update groups property tests

* newline

* fix

* update test

* python black

* clean up tests

* rename to endpoint in operator value select

* add empty property values test

* do not return in an array

* fix
2021-11-10 12:03:17 -05:00
Paul D'Ambra
33f2399981
Do not alter paths data when loading through d3js (#7026)
* d3-sankey alters the object passed into it. we must copy the object we pass to it

* save a path in a test

* don't rely on being able to query the toast when testing if paths saved
2021-11-10 16:58:39 +00:00
Yakko Majuri
fb148d6244
support headers with posthog api util in plugins (#6994)
* support headers with posthog api util in plugins

* type fixes

* update routing

* fix test

* Revert "update routing"
	    super().__init__(a)

This reverts commit c4b67d9107.
2021-11-10 16:50:44 +00:00
Harry Waye
7989fd24b8
Revert "Revert "feat(correlation): use people_url to load people modal (#6992)" (#7029)" (#7032)
This reverts commit de15fcda3f.
2021-11-10 15:50:32 +00:00
Tiina Turban
439c4a9f26
Add new update properties function (#6782) 2021-11-10 16:22:18 +01:00
Karl-Aksel Puulmann
d563a70344
Dont show person modal if aggregating by groups (#7022)
* Trends: Don't show person modal if aggreagating by groups

* Disable person modal in funnels

Not the ideal implementation we still show links but I think good enough
for now

* Only load person modal if not aggregating by groups
2021-11-10 17:05:28 +02:00
Harry Waye
de15fcda3f
Revert "feat(correlation): use people_url to load people modal (#6992)" (#7029)
This reverts commit 7bca1b78c1.
2021-11-10 14:09:45 +00:00
Karl-Aksel Puulmann
be75f5e4d2
Proposal: Don't index shared dashboards (#7018)
Not 100% sure this is the right fix, got it from https://stackoverflow.com/questions/26288329/exclude-directory-completely-from-google-search
2021-11-10 13:48:12 +00:00
Harry Waye
7bca1b78c1
feat(correlation): use people_url to load people modal (#6992)
* feat(correlation): use people_url to load people modal

This change adds a new method to the `personsModelLogic` to allow for
specifying a url to be used to retrieve people from. I've avoided
overloading the existing `loadPeople` and rather added a new one,
`lostPeopleFromUrl`.

Currenlty this is only being used by correlations, but the intention is
to extend it's usage to anywhere else that is performing drilldowns to
people from, for instance, the trends aggregation.

* add paycard back

* make labels look right

* remove unused code

* fix typing in test

* fix typing in personsModelLogic

* refactor to make eventUsageLogic work

* fix typing

* fix typing again

* remove some funnel stories

* get storybook working with paycard

* cleaned up the interface a little

* chore(correlation): use `api.get` for fetching people

This updates to use api.get, and also converts the returned uri from the
correlation endpoint to an absolut uri, instead of just an absolute
path.

The `api.get` method expects either an abolute uri, or a relative path.
I'd rather not use an relative path as it's not obvious what it should
be relative to.

* fix tests

* make storybook uris absolute
2021-11-10 12:54:48 +00:00
Yakko Majuri
cf3e607958
add robots.txt to cloud (#7020)
* add robots.txt to cloud

* remove clearly useless tests
2021-11-10 12:50:27 +00:00
Michael Matloka
ac2c51e451
Rework "On dashboard" button (#6959)
* Rework "On dashboard" button

* Adjust things

* Simplify things

* Update modal text and E2E tests
2021-11-10 13:32:01 +01:00
Michael Matloka
b01c2cdc57
Breadcrumbs (#6770)
* Add new sidebar base with project indicator

* Point TopBar logo to app default path

* Fix sidebar sizing

* Make sidebar toggleable

* Constrain Popup max dimensions for mobile

* Fix `.main-app-content` width

* Put icons story at top level of Storybook

* Add pages to SideBar

* Update HelpButton for Lemon Design

* Use fresh icons

* Add breadcrumbs base

* Fix some edge cases

* Flesh breadcrumbs out

* Fix typing

* Fix identifiers

* Address feedback

* Limit `SceneConfig` additions

* `InstanceLicenses` → `Licenses`

* Improve responsiveness more

* Add `breadcrumbsLogic` `path`

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-11-10 13:18:08 +01:00
Tiina Turban
039c196a43
Person creation to set properties (#6961) 2021-11-10 13:16:22 +01:00
Karl-Aksel Puulmann
87c1644fdf
Align breakdown button correctly (#7014) 2021-11-10 11:29:03 +00:00
Marius Andra
96475c00a7
Unify ViewType and InsightType (#6996)
* release saved insights feature

* remove viewType and add fallback route

* unify ViewType and InsightType into one type now that have the same values

* remove test for insights history

* fix test

* redirect root to saved insights page

* fix tests

* more test fixes

* fix more tests

* try a different fix

* fix missing type

* fix sidebar iteem

* fix type
2021-11-10 12:01:14 +01:00
Marius Andra
d34f2df7b8
Reload saved insights if editing an insight + other fixes (#6932)
* refactor saved insights pagination

* create a system to mark logics as stale

* introduce staleness for feature flags

* reload logic results without a custom abstraction

* add test for saved insight reloads

* remove dead code

* update persons index when editing a person

* scroll to top if the page changed

* do not scroll to top if location changed via back/forward

* sync delete flags

* remove dead code

* remove dead code

* revert change

* use ?page=1

* make test pass
2021-11-10 11:30:11 +01:00
Karl-Aksel Puulmann
8d486f5431
Groups FE: Support aggregating by groups in retention and funnels (#6991)
* Allow string aggregation_group_type_indexes

* Show dropdown for selecting what to aggregate by in Retention

* Support aggregating by groups in funnels

* Improve mixin further

* Improve mixin
2021-11-10 12:09:12 +02:00
Karl-Aksel Puulmann
95b5dccb6c
Don't show event/element properties in FeatureFlag page (#7011)
Noticed this when discussing building out feature flags for groups.
Having these enabled is a bug.
2021-11-10 12:08:20 +02:00
Neil Kakkar
62af72bf22
Paths filtering by Groups backend (#7008)
* Paths filtering by groups backend

* update correlation tests, now that CTEs are included in sqls

* use decorator for materialising to ensure clean up happens

* cleanup offending tests
2021-11-10 09:47:02 +00:00
Neil Kakkar
4794c00bd9
unbeta correlation usage events (#6983) 2021-11-10 06:14:20 +00:00
James Greenhill
7f7af91765
Revert "404 on static assets (#7000)" (#7005)
This reverts commit 6c2444db0a.
2021-11-09 19:53:08 -08:00
Karl-Aksel Puulmann
861c80d426
Groups/Trends FE: Allow selecting unique group in math dropdown (#6985)
* Bugfix: don't show group types in lifecycle yet

* Clean up taxonomicFilterLogic

Extract selector, avoid copy-pasta and unneeded selector

* Fix up types errors and use/name things appropriately

* Simplify

* Simplify further

* Pass group further down the chain in Taxonomic filters

* Push taxonomicGroup deeper

* Pass groupTypeIndex to backend

* Send data to the backend in right format

* CapitalizeFirstLetter

* Don't show any popovers for group properties

* Update ActionFilterRow

* Handle breakdowns

* Update test

* Remove console.trace

* Extract math logic into a logic

* List options for groups

* Add path

* Fix tooltips

mathsLogic is being used in them now, so we need to wrap parent into a
redux provider

* Improve import

* Send correct values to the BE when selecting math

Co-authored-by: Li Yi Yu <li@posthog.com>
2021-11-10 00:29:21 +00:00