0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
Commit Graph

6008 Commits

Author SHA1 Message Date
Marius Andra
26a3b06445
Add paths to logics (#6945)
* add typegen with path writing support

* toolbar paths

* scene paths

* all other paths

* revert deleted comments

* add two missing paths
2021-11-09 07:59:21 +00:00
Alex Gyujin Kim
b11c4421ee
fix buffer bug (#6969) 2021-11-08 16:36:38 -08:00
Alex Gyujin Kim
23ce7aaf16
Fix seekbar dragging outside of click handler boundaries (#6962) 2021-11-08 14:37:37 -08:00
Rick Marron
b78499d61a
Ingest window_id for recordings (#6806)
* add window-id to ingestion

* move window_id into snapshot data

* Add tests

* add window_id to snapshot_data only if included in the event

* add window_id to session_recording_events table

* revert ph-js downgrade

* fix data generator

* remove partition change

* update window_id defaults for tests

* missed one window_id default

* rename migration for conflict
2021-11-08 14:29:54 -08:00
Paolo D'Amico
0a13e18430
Fix member join email template (#6958)
Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-11-08 16:11:24 -06:00
Rick Marron
f7d7a3b005
Player tweaks and fixes (#6928)
* fix player close button position

* reduce player padding

* allow recording on seek bar

* remove skip inactivity toggle

* style fix

* update rrweb

* add svg for remvoed content

* add ts ignore to legacy files
2021-11-08 13:49:55 -08:00
Paolo D'Amico
b017209a6e
Fix help button alignment (#6956)
* Fix help button alignment

* remove unused button block
2021-11-08 20:12:36 +01:00
Michael Matloka
edf6c9b1e9
Unify Insight page background/shadow/border style with rest of app (#6943)
* Unify Insight page background/shadow/border style with rest of app

* Reduce main area padding to 32px
2021-11-08 19:23:17 +01:00
Eric Duong
06bdd1d486
[local testing] Track executed migrations when locally testing (#6915)
* experiment with saving a migrations table

* change flow

* change names

* missing var
2021-11-08 10:40:05 -05:00
Paolo D'Amico
4dfac0a639
New billing pages UI (#6753) 2021-11-08 08:54:22 -06:00
Karl-Aksel Puulmann
a39596c092
Groups: Use materialized columns for groups (#6938)
* Migration to use materialized columns for groups

Workaround for https://github.com/PostHog/posthog/issues/6422

* Use groups materialized columns in queries

* Update mat column creation tests

* Simplify aggregation_target_field

* Fix migration

* Update snapshots
2021-11-08 15:49:39 +02:00
Marius Andra
5c6a9c62b8
New insight through insightRouter (#6924)
* route new insight through insight router

* remove comments
2021-11-08 14:15:54 +01:00
Neil Kakkar
d2fe491bfc
Funnel Groups: Rename person_id to aggregation_target (#6939)
* smallest change to make aggregation work

* address comments

* add snapshot

* move function to groups model

* update funnel snapshot

* rename person_id to aggregation_target

* update snapshots as well

* dont support persons query mods for now

* update snapshot

* make array orders deterministic
2021-11-08 14:45:13 +02:00
Neil Kakkar
a400296266
Backend: Groups Aggregation on Funnels (#6937)
* smallest change to make aggregation work
* use team in filter
2021-11-08 11:29:56 +00:00
Neil Kakkar
1896364b4f
Fix issues with correlation instrumentation (#6921)
* Fix issues with instrumentation

* rm extras
2021-11-08 11:28:25 +00:00
Paul D'Ambra
4780a0acf3
New UI shows status as danger (#6927)
* lemonade shows status as danger because status check assumes only people with access to status metric will see it

* reverse boolean in name to reflect actual value
2021-11-08 09:01:52 +00:00
Karl-Aksel Puulmann
0353b2f26f
BE (Groups/Trends): Testing follow-up PR (#6923)
* Improve process_math

* Add test for overlapping group keys

* Improve event query tests

* Add test for filtering by person properties together with groups

* Avoid flaky tests due to cohort_id changing

* Update queries and snapshots
2021-11-08 10:52:10 +02:00
Michael Matloka
cca9bcc226
Style links in Announcement based on :visited (#6815) 2021-11-08 09:29:45 +01:00
Karl-Aksel Puulmann
7493f76802
BE (Groups/Retention): Support aggregating by groups (#6922)
* Add groups stuff

* Rename column from person_id to `target` in retention queries

No behavioral change, preparing for groups work :)

* Remove dead if statement

* WIP: Retention aggregation by groups

* Handle aggregation by groups in retention

Also handles the case where not every event has a property defined

* Test groups validation mixin

* Reformat

* Improve test for aggregation in retention
2021-11-08 09:23:02 +02:00
PostHog bot
dd9493a430
Update posthog-js to 1.16.2 (#6933) 2021-11-07 17:16:10 +00:00
Michael Matloka
4587cfe186
Lemonade polish (#6925)
* Add Billing button

* Instrument `data-attr`s analogous to old UI

* Hide sidebar in fullscreen

* Fix issues mentioned in standup

* Remove unused imports
2021-11-05 19:18:14 +01:00
Karl-Aksel Puulmann
d5d5fcd32b
WIP: Groups FE filtering (#6764)
* Add /api/projects/@current/groups/property_definitions

To load property definitions for groups

* Add routes for fetching group types

* FE: Group analytics feature flag

* FE: Group analytics base types for properties

* FE: Initial implementation of fetching logics

* add group tabs to filter

* make sure group properties populate and refactor things

* prettier

* disable unused vars

* allow indexing objects by number

* mount group properties logic

Co-authored-by: Li Yi Yu <li@posthog.com>
2021-11-05 10:21:28 -04:00
Michael Matloka
e0e1f789dc
Add feature flag-based lemonade opt-in (#6914)
* Add feature flag-based lemonade opt-in

* Add a `posthog.capture`

* Only show `RedesignOptIn` on cloud or in dev

* Polish `RedesignOptIn`

* Add `LemonSwitch`

* Add `LemonSwitch` loading state
2021-11-05 14:04:26 +00:00
Marius Andra
f3f204d303
Feature flags turbo mode (#6895)
* rename "experimentation" to "feature flags"

* remove BackTo from flags

* make feature flags turbo-mode compatible

* fix feature flags loading

* fix bug if object exists and returns None

* update url when saving

* update index when saving

* take data from featureFlagsLogic if mounted

* sync values with form both ways
2021-11-05 14:01:55 +01:00
Karl-Aksel Puulmann
ea956fecae
Support filtering by group properties in retention (#6904) 2021-11-05 13:56:27 +02:00
Neil Kakkar
0d08ffa2dd
Enable excluding event properties (#6820)
* Enable excluding event properties

* some cleanup

* clean things up

* add tests

* further simplification

* rename exclude event

* address comments
2021-11-05 11:49:48 +00:00
Karl-Aksel Puulmann
42192e07c7
BE (Groups/Trends): Make breakdowns work with groups (#6899)
* Extract GroupsJoinQuery

* Add test for breakdown filtering

* Unify breakdown mixins

* Allow passing breakdown_type == 'group' with breakdown_group_type_index

* Allow breakdown by group props in trends

* Add tests for trends breakdown_props function on group breakdowns

* Solve common issues

* Output snapshot diff into console

* Clean up materialized columns after tests

* Add zero protection

* Solve test failure
2021-11-05 13:47:41 +02:00
Michael Matloka
e7b74ca1ba
Fix Popup styling (#6920) 2021-11-05 12:22:18 +01:00
Karl-Aksel Puulmann
fa79f8ea67
BE (Groups/Trends): Allow aggregating by groups (#6894)
* Type math in Entity

* Allow passing group_type_index from FE to BE

* Get a initial query running

* Add group value filter if aggregating by groups

* Add snapshot testing for trends queries

* isort

* Update tests

* Add test for column_optimizer

* Update ee/clickhouse/queries/trends/util.py

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

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2021-11-05 13:08:32 +02:00
Michael Matloka
ea91f461db
Fresh pinned dashboards (#6912)
* Add `LemonButtonWithPopup`

* Add `sameWidth` option to `Popup`

* Add New project button

* Hide project switcher on click inside

* Unify `LemonButton` and `LemonButtonWithPopup` for extensibility

* Refactor for future pinned dashboards

* Refactor for future pinned dashboards

* Add pinned dashboards to the sidebar

* Fix minor issues
2021-11-05 10:58:18 +00:00
Marius Andra
c0eb611202
fix feature flag sync script with local deleted flags (#6919) 2021-11-05 10:45:54 +00:00
Marius Andra
ab3d52004e
Instrument saved insights (#6901)
* instrument saved insight filters

* instrument saved insight filters even more

* mount the logic

* new insight opens URLs

* instrument "new insight" button

* fix capitalization
2021-11-05 11:43:33 +01:00
Alex Gyujin Kim
90df82a7e7
Show session events in seekbar (#6756)
* rename sessionRecording to session-recording

* logic for new player

* move rrweb-player into repo

* remove awkward wrapper and fix time not updating bug

* chunk load meta timing

* fix duration setting bug

* update icons and styling for controller

* styling icons

* slider styling

* ugly slider

* remove consoles

* sonarqube

* typescript

* typescript

* implement working seekbar

* fix time mismatches

* remove hardcode

* Fix icon from merge

* move report usage back to sessionsplaylogic

* refactor to seekbar

* implement real time seek time

* play on paused fixed

* paginate recording compression

* some tests

* bug with play pause

* more accurate duration calculation

* implement event fetching from frontend

* add tests and types

* fix buffer play state bug

* add comments back

* remove consoles and revert limit

* remove empty file

* tons of decompression fixes

* rename test file to avoid conflict

* move decompression to helper

* add test for helper

* type fix

* rename method

* simplify paginated decomression

* address feedback

* handle case where offset exceeds length

* clean up

* test fixes

* fix scrubbing issue and onclick lag

* remove console

* clean up on aisle 12

* Add surrounding object for metadata response

* split out endpoint consumption

* fix cypress tests

* use kea-window-values plugin and remove isTouchDevice check

* remove todo

* report usage refactor

* set buffering on last time catch up

* clamp buffer ms

* add logic tests

* fix eventusage

* finish up tests

* remove console

* update duration on first pain

* split out v1 and v2 sessionsPlayLogic and cleanup logic

* revert ts

* remove defaults from tests

* Move mocks into session-recording folder

* fix test

* rename to sessionRecordingLogic

* kea

* rename to sessionRecordingLogic

* cherry pick rename

* update yarn.lock

* prettier

* revert lockfiles

* create seekbar markers selector

* order events ascending

* add tick styling

* fix time buffer

* add events to seekbar

* prettier broke sass

* comment out testing

* fix event click when paused

* fix events next_url

* add info bubble to ticks

* fix existing logic tests

* fix tests

* remove commented out line

Co-authored-by: Rick Marron <rcmarron@gmail.com>
2021-11-05 11:37:20 +01:00
Marius Andra
2b2fdd5494
Fix undefined error in extractObjectDiffKeys (#6807)
* fix undefined error

* remove duplicate check
2021-11-05 10:33:40 +00:00
Michael Matloka
6f74a1ff20
Don't GET licenses endpoint every time SitePopover is opened (#6913) 2021-11-05 11:23:37 +01:00
Asher Foa
a66a5df500
Cleanup unused python imports (#6911) 2021-11-05 11:23:03 +01:00
dependabot[bot]
0231e9e093
Bump color-string from 1.5.4 to 1.6.0 (#6908)
Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.4 to 1.6.0.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Qix-/color-string/compare/1.5.4...1.6.0)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-05 11:08:02 +01:00
Paul D'Ambra
41f4cd9fc1
Adds popup styling so that the filter list popup has a background (#6916)
* adds popup styling so that the filter list popup has a background and drop shadow

* add break word overflow wrap to pop-ups
2021-11-05 10:56:21 +01:00
Marius Andra
33d37cd79a
fix cypress funnel tests, volkswagen style (#6906) 2021-11-05 10:55:18 +01:00
Marius Andra
877eca5feb
Fix signup css (#6905) 2021-11-05 10:05:37 +01:00
Harry Waye
4b88acf6e0
Add event exclusion correlation config to project page (#6817)
* feat: add project level event exclusion settings controls

This doesn't add the actual exclusions to the correlations, which will
be done in a separate PR.

It also doesn't try to unify the `PersonPropertySelect` and
`EventSelect` components, although this seems likely a good idea,
although possibly there will be some specifics that come up in review
that highlight differences required between them. If not then worth a
followup PR to merge.

* Fix typing of `EventDefinition.description`

This previously was required string, but it seems that the backend does
not return anything for this field in some (all?) cases

* update styling in line with person props

* Update correlation config

* use excluded names in funnel correlation

* make description non-optional again

It causes type error in other places by doing this, to I've just
modified the api response.

* Make tests work with paywall

* factor out config update logic

* chore: clean up EventSelect to not be explicitly about exclusions

* fix storybook typing
2021-11-05 07:23:56 +00:00
Yakko Majuri
e4fd5c5774
Plugin server tests CI (#6897)
* remove workflows from plugin server subdir

* wip plugin server ci tests

* prettier

* add ignore paths

* update paths
2021-11-04 15:03:28 -07:00
Eric Duong
964da375ab
[trends] don't allow persons on formula (#6830)
* don't allow persons on formula

* format
2021-11-04 18:31:13 +00:00
Yakko Majuri
7a3e25742d
Fix pre-commit hook (#6902)
* pre commit hook

* final config options

* try new approach

* update prettierignore
2021-11-04 17:09:40 +00:00
Asher Foa
ad3445ee47
Cleanup unused python imports (#6695)
* Cleanup unused imports

* run black

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-11-04 16:16:05 +00:00
Eric Duong
d423a3ad09
[proposal] suggestion for reducing runtimes (#6725)
* suggestion for reducing runtimes

* refactor tests ingestion

* django tests

* fix types

* add comment
2021-11-04 11:34:40 -04:00
Eric Duong
039c283b1c
fix: Aggregate viz all time (#6824)
* populate 'all' when there's no dates

* populate 'all' when there's no dates
2021-11-04 11:22:21 -04:00
Eric Duong
d631de1c37
[funnel ui] make sure interval state updates (#6717)
* make sure state changes

* change reducer to selector

* use existing debounce dependency to debounce the local state change of conversion window

Co-authored-by: Paul D'Ambra <paul.dambra@gmail.com>
2021-11-04 14:06:37 +00:00
Marius Andra
f6b39690b7
fix funnelLogic key (#6900) 2021-11-04 12:52:10 +00:00
Marius Andra
60bf741ff5
Show spinner if the scene's JS takes more than a second to import (#6898)
* show spinner if the scene takes more than a second to import

* down to 500
2021-11-04 12:09:11 +00:00