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

10818 Commits

Author SHA1 Message Date
Paul D'Ambra
00543e0a8a
fix: turbo mode persist dashboard filters (#14403) 2023-02-27 10:22:54 +00:00
Paul D'Ambra
61f2860bad
fix: background color when fullscreen (#14412) 2023-02-27 10:20:33 +00:00
Thomas Obermüller
f1283d1682
test(data-exploration): add more funnel data logic tests (#14358) 2023-02-27 09:27:03 +00:00
Paul D'Ambra
8b32db086a
chore: upgrade cypress (#14402)
Problem
We're two major versions of Cypress behind. They claim the newer versions are faster

Changes
dependency updates
a few fixed tests for new syntax
2023-02-25 10:25:54 +00:00
Alex Gyujin Kim
63d644c547
fix(recordings): start at specific time from url param (#14401) 2023-02-24 20:17:53 +00:00
Raquel Smith
bc9b449ae5
fix: set msclkid on person like gclid (#14386)
* set msclkid on person like gclid

* fix typos (thx copilot)
2023-02-24 19:35:35 +00:00
Michael Matloka
1c2d74fe8b
test(frontend): Automatically update UI snapshots in CI (#14391)
* Update UI snapshots with comment instead of failing on change

* Make a few stories more reliable

* Remove unused snapshots in CI

* Update query snapshots

* Update `webkit` UI snapshots

* Update `chromium` UI snapshots

* Update `firefox` UI snapshots

* Shard visual regression tests

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Fix remaining issues

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Improve reliability of insights snapshots

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Improve reliability of login/signup snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update .github/workflows/storybook-chromatic.yml

Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
2023-02-24 19:33:39 +00:00
Li Yi Yu
192af8212a
fix(roles): validation for role names is per organization (#14399)
* fix(roles): validation for role names is per organization

* original test correct
2023-02-24 19:17:50 +00:00
Raquel Smith
3899cd35cf
fix: hide tag in org settings behind feature flag (#14398)
hide tag in org settings behind feature flag
2023-02-24 18:34:01 +00:00
Raquel Smith
1d5181fce5
feat: verify email addresses on signup (#13632) 2023-02-24 09:19:35 -08:00
Paul D'Ambra
e04f7210e1
chore: pycharm run config after updating to 3.10 (#14369)
* chore:pycharm run config after updating to 3.9

* now for 3.10
2023-02-24 14:23:33 +00:00
Yakko Majuri
95670dc70b
fix(sampling): ensure funnel correlation results get corrected for sampling (#14382)
* fix(sampling): ensure funnel correlation results get corrected for sampling

* adapt signature to round return

* update
2023-02-24 09:18:58 -03:00
Harry Waye
0682422d8e
fix(plugin-server): default to 1 concurrency for Piscina (#14396)
We're defaulting to the number of cores, which is particularly dangerous
on e.g. K8s where we'll end up thinking we have, like, 64 cores but
that's shared with 100 pods.

It also makes it highly likely that you'll get OOM'd and makes it hard
to set sensible K8s resource limits.
2023-02-24 11:36:30 +00:00
Harry Waye
d0512aec84
feat(recordings): add RECORDING_PARTITIONS_CONSUMED_CONCURRENTLY (#14395)
Allow recordings consumer to be configured to consume multiple
partitions concurrently. This should allow use to use a smaller
deployment for session recordings. It's pretty much mostly IO except for
the JSON marshalling/unmarshalling.
2023-02-24 10:51:30 +00:00
Harry Waye
da14313811
feat(plugin-server): add analytics-ingestion and recordings-ingestion modes (#14357)
* feat(plugin-server): add env SESSION_RECORDING_PROCESSING_ENABLED

This allows us to enable/disable session recording processing in the
plugin server, which is useful such that we can be very specific about
which  workloads run on which e.g. K8s deployments.

* perf: avoid loading piscina if not needed

* fix test

* remove env var, use modes

* wip
2023-02-24 10:19:04 +00:00
Xavier Vello
681ee37ede
chore(ingestion): have populateTeamDataStep log team resolution mismatches (#14376)
* chore(ingestion): have populateTeamDataStep log team resolution mismatches

* fix check condition
2023-02-24 10:59:46 +01:00
Paul D'Ambra
294148a296
feat: use autocapture augment (#14392) 2023-02-24 10:24:58 +01:00
Frank Hamand
0dfc549f96
chore: Python 3.10 (#14360)
* Python 3.10

Performance gains go brrr

* Add missing SAML deps

* Add missing dep to dockerfile

* Update mypy to 0.981 for 3.10.7 compatibility

Needed this bug to be fixed: https://github.com/python/mypy/issues/13627

This also incidentally fixed the mypy bug in csv_exporter.py

* bump to 3.10.10
2023-02-24 09:14:09 +00:00
Paul D'Ambra
7ae7ef6093
feat: move control of insight nav active view out of insight logic (#14371)
Moves activeView, setActiveView, and knowledge of what should change when the view changes out of insightLogic and into a new insightNavLogic
2023-02-24 08:54:32 +00:00
Eric Duong
677a0de9a1
chore: add beta tag to ff usage tab (#14384)
add beta tag
2023-02-23 18:27:30 -05:00
Raquel Smith
539173ed7e
fix: adjust attribution type language again (#14352)
adjust language again
2023-02-23 14:00:18 -08:00
Raquel Smith
18a6729d19
fix: forgive missing methods (#14381)
forgive missing methods
2023-02-23 21:59:53 +00:00
Ben White
eccb4ed267
feat: Delete individual recordings (#14159)
Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2023-02-23 11:21:48 -05:00
Michael Matloka
2e2c3a6038
fix(lemon-ui): Restore Popover's appearance animation (#14248)
* `fix(lemon-ui): Restore `Popover`'s appearance animation

* Use `CSSTransition` after all

* Update react-transition-group

* Change approach with `CSSTransition`

* Remove meaningless change
2023-02-23 14:16:34 +01:00
Tomás Farías Santana
8bd68dc293
chore(overflow): Instrument on capacity overflow in plugin-server (#14366)
* chore(overflow): Instrument on capacity overflow in plugin-server

* refactor(overflow-metrics): Do not rate limit counter
2023-02-23 11:37:20 +01:00
camerondeleone
05cf5ef7d7
docs: remove enterprise self-hosted from readme (#14255)
Update README.md
2023-02-23 09:27:49 +00:00
Yakko Majuri
f6c7d83e5f
feat(performance): sampling support for funnels (#14373)
* working lifecycle sampling

* add test and snapshot

* update tooltip

* add feature flag

* update wording

* add result postprocessing

* wip funnel sampling

* wip

* some progress

* tests + snapshots

* update

* match signatures

* create sampling util

* Update snapshots

* fix

* schemas

* allow sampling factor of 1

* Update snapshots

* Update frontend/src/scenes/insights/EditorFilters/SamplingFilter.tsx

Co-authored-by: Paul D'Ambra <paul@posthog.com>

* fix

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2023-02-22 19:53:25 -03:00
Eric Duong
bf5552e761
fix(instrumentation): change feature flag property undefined to false (#14262)
change undefined to false
2023-02-22 17:14:26 -05:00
Yakko Majuri
77c0e9459a
feat(insights): experiment with the refresh insight button placement (#14189)
* feat(insights): experiment with the refresh insight button placement

* fix incorrect merge

* address review

* fixes

* Update frontend/src/queries/nodes/DataNode/dataNodeLogic.ts

* Update frontend/src/scenes/insights/insightLogic.ts

* update refresh btn ui to old one

* fix

* fix

* fix

* update snapshots

* fixes

* update snapshot again because ofc
2023-02-22 18:15:36 -03:00
Paul D'Ambra
7b20e8579f
feat: selector picker for when auto-detection is unique over meaningful (#14194)
The toolbar lets you pick selectors for elements to create actions. The library we use (and others out there) concentrates on choosing a unique selector. But sometimes the unique selector is not the meaningful one.
2023-02-22 20:43:19 +00:00
PostHog bot
a4c39e73d4
chore(deps): Update posthog-js to 1.46.2 (#14372) 2023-02-22 13:02:22 -05:00
Marius Andra
9a6da61ed6
feat(hogql): intervals (#14370)
feat(hogql): support intervals
2023-02-22 16:39:42 +01:00
Marius Andra
036c1cfbf2
feat(hogql): asterisk expander (#14271) 2023-02-22 15:34:02 +01:00
Paul D'Ambra
1bf4b66b20
fix: file the corners down (#14361) 2023-02-22 14:09:11 +00:00
Karl-Aksel Puulmann
dc075e13b2
fix: Update 0009 async migration error handling (#14367)
* Bump timeouts

* Capture async migration errors to sentry
2023-02-22 15:46:15 +02:00
Xavier Vello
25cb653c1b
feat(ingestion): run all analytic events through populateTeamDataStep (#14341)
* team-manager: expire negative lookups after 5 minutes, improve docs
* populateTeamDataStep: don't drop token, keep team_id from capture if present, report results
* ingestEvent: run all analytic events through runLightweightCaptureEndpointEventPipeline
* continue accepting events with no token but a team_id
2023-02-22 14:24:05 +01:00
Paul D'Ambra
7402439c61
fix: use plugin's 'auto' setting to avoid overlapping values (#14364) 2023-02-22 12:59:28 +00:00
Ben White
c5c18f4e15
feat: Make recorder-v2 available (#14363) 2023-02-22 11:55:04 +00:00
Raquel Smith
0221a25e5d
fix: react error if no country code (#14354)
fix react error if no country code
2023-02-22 11:39:07 +00:00
Neil Kakkar
736638828f
fix(webapp): Cache isn't updated on update() (#14345) 2023-02-22 11:18:43 +00:00
Paul D'Ambra
19f17fac16
fix: insight display config layout (#14355)
* keep right-hand items on right as they wrap

* a little vertical padding when the left-hand config wraps

* update snapshots
2023-02-22 10:51:28 +00:00
Paul D'Ambra
4ea39301ac
chore: refactor insight logic to depend on active view less (#14348) 2023-02-22 09:53:04 +00:00
Marius Andra
1456301b8d
feat(hogql): HogQLQuery node and data table support (#14265) 2023-02-22 10:25:01 +01:00
Frank Hamand
1d7afd3352
chore: Python 3.9 (#14336)
* Update to python 3.9

* Update pytest

6.2.2 doesn't support python 3.9+

* Add missing saml dependencies

* Update snapshots

* Update snapshots

* Update snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-22 09:23:22 +00:00
Ben White
a69ff2ab13
feat: Track info about quota limiting to posthog (#14340) 2023-02-22 09:34:26 +01:00
Thomas Obermüller
6dc2bb475c
test(data-exploration): add basic tests for funnel data logic (#14339)
* scaffold funnel data logic test

* test funnel viz types defaults when not funnel query

* test funnel viz types

* add empty funnel tests
2023-02-21 22:51:32 +00:00
Paul D'Ambra
77efebf809
feat: values on chart series (#14337)
Problem
We added values to piecharts but there are more charts than that!

A first run at this in #14317 got bogged down in the difference between data exploration on and off states.

Changes
adds the ability to configure values on series for most trends, stickiness, and lifecycle insights
defaults pie-charts to showing values and all other valid types to not showing values
Will follow-up with the data exploration enabled version

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-21 22:14:56 +00:00
timgl
c3bc8d21ee
feat(Authentication): Support 2FA (#14284)
* feat(Authentication): Support 2FA

* Fix imports

* Fix requirements

* Add throttling and remembering cookie

* fix reqs

* Update snapshots

* fix quality issues

* Update snapshots

* fix tests

* Downgrade version b/c https://github.com/jazzband/django-two-factor-auth/issues/587

* make field nullable

* fix type issues

* fix issues

* fix tests

* small fixes & UX improvements

* Update snapshots

* forgot to commit

* fix

* fix tests

* fix snapshot

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Emanuele Capparelli <k@emkpp.com>
2023-02-21 19:10:44 +00:00
Emanuele Capparelli
293ea87ebd
fix: register billing props (#14350) 2023-02-21 18:40:30 +00:00
Emanuele Capparelli
f19edfd8a9
fix: improve usage report task handling (#14344)
* fix: improve usage report task handling

* fix tests

* fix type

* fix type
2023-02-21 18:10:05 +00:00