0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
Commit Graph

6288 Commits

Author SHA1 Message Date
Karl-Aksel Puulmann
7de761dff0
Update BE tracking to use groups (#7355)
* Update some posthoganalytics.capture calls

* Update report_user_logged_in tracking

* Update report_team_member_invited

* Update report_bulk_invited

* Update report_org_usage

* Update AnalyticsDestroyModelMixin

* Update action creation/updating tracking

* Update annotations tracking

* Update cohort tracking

* Update dashboards tracking

* Update feature flags tracking

* Update imports, sessions tracking

* More typeignores

* Default properties blank

* update metadata default

* Stringify

* Fix some tests

* Kill debug code

* Update FF tests

* Update test_organization

* Update test_organization_invites

* Update test_user

* Fix org usage report

* update test_send_license_usage

* Update organization tests

* Respect dry-run on errors as well, log

* Update organization properties on report

* Assert organization props

* Remove dead imports

* Fix test
2021-11-30 10:58:37 +02:00
Paolo D'Amico
87e91e1352
Remove legacy sessions (#7401)
Co-authored-by: Rick Marron <rcmarron@gmail.com>
2021-11-29 21:11:10 -08:00
Rick Marron
fd150761ec
Materialize has_full_snapshot in session_recording_events (#7281)
* materialize has_full_snapshot

* add basic backfill command

* some clean up

* bug fix

* use comment function

* remove unneeded column check

* add to test for get_materialized_columns

* update test

* ClickhouseDestroyTablesMixin resets session_recording_events

* remove backfill command
2021-11-29 16:18:08 -08:00
posthog-contributions-bot[bot]
b7b37c2754
🤖: Add abtinmo as a contributor 🎉 (#7413) 2021-11-29 19:34:59 +00:00
Michael Matloka
71e302529b
Refresh persons modal (#7396)
* Refresh persons modal

* Fix a value

* Rename `PersonModal` to `PersonsModal`
2021-11-29 18:39:43 +00:00
Karl-Aksel Puulmann
a188b9d594
Don't count 0 release percentage as 100% (#7407)
Discovered by weyert in users chat
2021-11-29 19:59:20 +02:00
Paul D'Ambra
97cb55c13a
Use the primary blue in the posthog checkbox (#7404)
* use the primary blue in the posthog checkbox

* improved comment in vars files to call out manual duplication

* improved comment in vars files to call out manual duplication

* use css var instead

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-11-29 16:58:54 +00:00
Neil Kakkar
2b526a2190
Fix Correlation Properties Dropdown (#7405)
* style correlation properties box

* style correlation properties box

* style correlation properties box
2021-11-29 16:42:37 +00:00
Marcus Hyett (PostHog)
6320038aa0
Show 'match by' for projects with single group type (#7403) 2021-11-29 16:14:23 +02:00
Karl-Aksel Puulmann
1593de3599
Proposal: _always_ include default released feature flags (#7356)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-11-29 06:06:58 -08:00
Yakko Majuri
f919392e44
Historical export support for elements_hash (#7261)
* handle elements hash

* fixes, add tests

* better caching

* clean up db

* remove comment
2021-11-29 11:04:29 -03:00
Yakko Majuri
aedb28f12a
support uuid in event payloads (#7226)
* support uuid in payloads

* typing shenanigans

* add statsd metric
2021-11-29 13:12:51 +00:00
Karl-Aksel Puulmann
065947877e
Groups: Make test_account_filters work with groups (sessions, lifecycle support) (#7387)
* Extract common subquery into a variable

* BE: handle group properties in more cases

* Add tests for lifecycle and sessions query changes

* Better docs

* Stable date range
2021-11-29 14:41:10 +02:00
Michael Matloka
d99f171e76
Pagination improvements (#7391)
* Fix table pagination in a few places

* Store current table sorting in the URL for shareability

* Remove stale `data-attr`

* Make empty states smarter too

* Improve things
2021-11-29 13:13:28 +01:00
posthog-contributions-bot[bot]
8ab49c82f9
🤖: Add k4kuz0 as a contributor 🎉 (#7395) 2021-11-29 10:25:41 +00:00
Paul D'Ambra
e83c7e5d9f
iterate all series from the API response (#7389) 2021-11-26 16:46:09 +00:00
Michael Matloka
79e7f6c652
Fix adding members to private projects (#7388) 2021-11-26 17:35:28 +01:00
Michael Matloka
0ba1713c10 Fix property-filters margin universally 2021-11-26 17:34:54 +01:00
Neil Kakkar
1636121a0d
Don't encode distinctIDs for person links (#7378)
* dont encode distinctIDs for person links

* update wip

* clean up

* rm other debug

* add test

* fix command pallete too

* address comment

* id->urlId
2021-11-26 17:32:17 +01:00
Paul D'Ambra
3ceb234e37
938 wire in the FE for multi property breakdown funnels (#7353)
* wip

* normalise to breakdown and breakdowns on the way out of the API

* read from breakdowns or breakdown property of filters

* wip

* wip

* delete a console.log

* remove console.log and speculative multi breakdown changes

* remove empty test

* remove console log

* more tidying

* more tidying

* more tidying

* simplify funnel logic slightly

* a test for the data transformations with no breakdown

* can test data transformation with a single property breakdown

* keep expanding the test to see why multi prop doesn't display

* don't throw key error if there is no breakdown property to pop from the multi property API response

* funnel step table can detect breakdown without relying on filter

* try to highlight the differences in the paths through TaxonomicBreakdownFilter

* better behaviour when adding and removing multi property breakdowns

* displays multi property breakdown in old style steps funnel views

* it is safe to always show breakdown in new vertical layout

* resolve multi property breakdown typehinting

* updates comment

* updates comment

* don't print breakdown value twice

* tooltip for long values and prettier pill

* convert tests to journeys_for

* fix multi breakdown helper

* better behaviour when navigating between trends and funnels

* Refactor the multi property breakdown helper to calm the mypy type checker down

* safer access to dict in multi property helper

* makes clean filters feature flags aware and keeps breakdown values when switching between trends and funnels

* test fix

* remove overly verbose data tests

* add some more specific tests to multi prop breakdown

* obey mypy

* remove the breakdown type from the backend which was causing serialization issues
2021-11-26 15:42:33 +00:00
Paul D'Ambra
269791de4e
Give the user better feedback when they click export events (#7130)
* disables the event export button to show that something has happened

* give user feedback in a toast
2021-11-26 15:28:30 +00:00
Michael Matloka
07ee361e07
Add cursor: pointer to search box (#7379) 2021-11-26 15:30:23 +01:00
Michael Matloka
2e49f4ebde
Refresh cohorts list (#7381)
* Refresh cohorts list

* Tune page sizes

* Update cohorts.js

* Restore recordings link
2021-11-26 15:29:30 +01:00
Michael Matloka
e48c80430a Tiny taxonomic filter tab sizing polish 2021-11-26 14:56:16 +01:00
Karl-Aksel Puulmann
69af35b247
Fix antd taxonomic filters whitespace regression (#7384) 2021-11-26 15:52:34 +02:00
Michael Matloka
5f45a1e498 Fix property-filters margin 2021-11-26 14:46:14 +01:00
Michael Matloka
fcea8cbbf6
Slightly improve positioning of various things (#7383) 2021-11-26 13:43:28 +00:00
Michael Matloka
6fffbaad16
Update properties table (#7377)
* Update properties table

* Fix E2E test
2021-11-26 13:00:37 +01:00
Karl-Aksel Puulmann
fcb92d2e1c
Make HTTP tests not log spam (#7380)
currently running any tests that hit the API results in logspam which
makes the test output unreadable. This silences that.
2021-11-26 13:55:27 +02:00
Karl-Aksel Puulmann
ed5f06303f
Silence warning in tests/debug mode (#7358)
Issue was introduced in https://github.com/PostHog/posthog/pull/7283

This is causing /bin/tests, mypy and others to spam unneeded messages
every time these utilities are needed.
2021-11-26 11:22:35 +00:00
Karl-Aksel Puulmann
e3cda5f831
Handle groups in /my_flags endpoint and toolbar (#7361)
This fixes https://github.com/PostHog/posthog/issues/7360

The two-way data communication here is a bit iffy but /shrug
2021-11-26 12:12:41 +02:00
Marius Andra
6ac71e0a07
Fix layout saving bug (#7366) 2021-11-26 10:08:13 +00:00
Karl-Aksel Puulmann
99931d9b3f
Groups: Feature flag validation + analytics property (#7363)
* Track if group analytics is used on feature flags

* Add validation to feature flags BE logic

* Add tests
2021-11-26 09:38:40 +02:00
Paolo D'Amico
0032ce6c28
Fix correlation matrix component build (#7375) 2021-11-25 17:31:07 -08:00
Paolo D'Amico
933243ee28
Funnel correlation matrix (#7220)
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2021-11-25 16:53:39 -08:00
Paolo D'Amico
f27bc8c12b
Product cue to funnels (#7301) 2021-11-25 11:32:46 -08:00
Paolo D'Amico
2638174909
Fix recording close layout (#7367) 2021-11-25 11:02:32 -08:00
Michael Matloka
2191af4de4
Unify Insights table with refreshed style (#7297)
* Unify Insights table style with refreshed style

* Fix sorting tooltip edge case

* Run prettier

* Refactor sorting for clarity

* Fix missing type import

* Run prettier

* Put Last modified after Created

* Fix typing and remove useless styles

* Address feedback

* Fix position indicator

* Fix sorting indicators

* Fix typing

* Fix `createdByColumn`

* Improve small things post-merge

* Fix typing

* Fix annotations table

* Unify Persons table with refreshed style (#7320)

* Use new table in Persons

* Finish move

* Highlight unfold less icon

* Don't use bug-prone tooltip

* Update groups as well

* Fix unused import

* Clean up top part

* Update Persons.cy-spec.js

* Further improve top part

* Update component test

* Remove unused imports

* Update persons.js

* Remove extra margin-bottom

* Add background to row expansion for differentiation

* Update components.tsx

* Use feedback

* Improve things post-merge

* Fix tests
2021-11-25 19:25:58 +01:00
Michael Matloka
b8ad1f7a4a
Better size feature flags table (#7323)
* Better size feature flags table

* Remove unused import

* Delete PropertyFiltersDisplay.tsx

* Update FeatureFlags.tsx

* Update FeatureFlags.tsx

* Update featureFlags.js

* Improve blue pills' use of space

* Align read-only and read-write property filters styling

* Throw in a few additional pixels

* Update featureFlags.js
2021-11-25 19:05:52 +01:00
Michael Matloka
92d9975d6d
Fix lint-staged globs (#7362) 2021-11-25 14:59:32 +00:00
Marius Andra
fbba78718c
Insight URL cleanup (#7201)
* insight route refactor, part 1

* add fromItem to get redirects

* fix some tests

* adjust many more paths

* fix test

* move new insight creation into insight logic

* fix a noisy test

* simplify one test

* open the url with the right filters

* null fix

* fix some more noisy tests

* move saved insights to `/insights`, fix logic tests

* fix cypress urls

* fix some tests

* fix even more insight urls

* wait a bit longer

* add old saved_insights redirect

* this might not be there yet

* rename newInsight -> insightNew

* rename Scene.Insights -> Scene.Insight

* also redirect old searches without fromItem

* fix link

* fix TS merge bugs

* fix import

* fix imports

* fix tests

* fix test

* Run prettier

* fix changes after merge

* switch to a simpler scene

* fix another test

* fix "save as" reset

* rerun tests

* Insight Short URLs (#7259)

* convert a bunch of things to user short_id instead of id

* fix more TS errors

* fix test

* fix jest tests

* various fixes

* add wise words

* type InsightShortId-s to make life easier

* reduce a bit of test noise

* use the InsightShortId in the URL

* fix type

* fix test

* fix insight url preloading

* pass dive dashboards as having insight short ids

* fix short url redirect

* mock scenelogic api

* better types and tests

* type fixes

* fix bug of linking to ourselves

* add back "id"

* get rid of some "getInsightId" calls

* two more

* few more

* refactor last usage of getInsightId

* move files around and improve errors

* make it simpler

* small fixes

* redirect to new url from old hashParam=42

* fix regression

* alert the user if we could not find an insight with the old ID format

* switch to a simpler scene

* fix another test

* Fix annotation creation

* Make short ID friendlier

* remove comments

* simplify insight links from dashboards and saved insights

* remove insight router

* fix TS

* Revert "remove insight router"

This reverts commit e52f474949.

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

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-11-25 15:39:49 +01:00
Karl-Aksel Puulmann
2d919d6120
Groups/Feature flags: Allow choosing to aggregate by groups in UI (#7322)
* Update breadcrumb text

According to https://www.figma.com/file/gQBj9YnNgD8YW4nBwCVLZf/PostHog-App?node-id=5346%3A28614

* Extract code snippets to their own files

* Start refactoring/rewording feature flags pages

* Play with spacing

* Tags, add new and margins

* Delete match group button + margin on save button

* Update UTM_TAGS import

* Add duplicate option

* Update spacing

* update some actions naming

* Show group type(s) selection when groups enabled

* Remove the slider

* Add a new color

* Add grey badges to feature flags page

* Grey badges on FF page

* Toggle taxonomic groups based on dropdown selection

* Reset filters when group type changes

* Update wording

* Handle key change

* More consistent update when Match By changes
2021-11-25 16:29:04 +02:00
Karl-Aksel Puulmann
82bb4797a5
Groups: Hide some property definitions from the API (#7328)
* Hide some property definitions from the API

https://github.com/PostHog/posthog/issues/7126

* Update the test
2021-11-25 14:17:57 +02:00
Karl-Aksel Puulmann
9abb59e561
Update posthoganalytics version to 1.4.4 (#7354) 2021-11-25 13:10:38 +02:00
Karl-Aksel Puulmann
4797857ec1
Better placeholders for taxonomic filters (#7352)
Previously for groups they got listed as `Search `, now it will be
`Search company properties`
2021-11-25 12:50:31 +02:00
Karl-Aksel Puulmann
55bf75a40a
Make KAFKA_EVENTS_PLUGIN_INGESTION_TOPIC configurable (#7349)
This is for razorpay - they're planning to hook into this with spark
2021-11-25 11:47:20 +01:00
Michael Matloka
dd14bb3729
Move annotations to new table style (#7344)
* Move annotations to new table style

* Improve columns

* Fix minor issues

* Add a relevant empty state

* Improve a bit more
2021-11-25 11:16:06 +01:00
PostHog bot
4c9f2dbb58
Update posthog-js to 1.16.7 (#7350) 2021-11-25 08:13:16 +00:00
Michael Matloka
c8072bdaa1
Refactor App for better integration of new navigation (#7329)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-11-24 18:20:50 -08:00
Paolo D'Amico
a89cb52586
Funnels simple mode (#7252)
Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2021-11-24 15:11:14 -08:00