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

1980 Commits

Author SHA1 Message Date
Sandy Spicer
39a4d278ec
fix: reduce cohort calculation memory usage (#23419) 2024-07-02 23:32:32 +00:00
Zach Waterfield
c62058c33f
feat: add a portal redirect endpoint (#23375)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Eric Duong <eric@posthog.com>
Co-authored-by: Dylan Martin <dylan@posthog.com>
Co-authored-by: Sandy Spicer <sandy@posthog.com>
Co-authored-by: Robbie <robbie.coomber@gmail.com>
Co-authored-by: Xavier Vello <xavier.vello@gmail.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: Marcus Hof <13001502+MarconLP@users.noreply.github.com>
Co-authored-by: Juraj Majerik <juro.majerik@gmail.com>
Co-authored-by: Tom Owers <tom@posthog.com>
Co-authored-by: Phani Raj <phani@posthog.com>
2024-07-02 15:25:04 -04:00
Zach Waterfield
d80e3eb10e
fix: add missing billing tests (#23408)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-02 14:16:29 -04:00
timgl
8c6b3b974a
perf: Materialize elements_chain (#23170)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
Co-authored-by: Julian Bez <julian@posthog.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Tom Owers <tom@posthog.com>
Co-authored-by: Eric Duong <eric@posthog.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: Robbie <robbie.coomber@gmail.com>
Co-authored-by: Tomás Farías Santana <tomas@tomasfarias.dev>
Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com>
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
Co-authored-by: Sandy Spicer <sandy@posthog.com>
Co-authored-by: Zach Waterfield <zlwaterfield@gmail.com>
Co-authored-by: Dylan Martin <dylan@posthog.com>
Co-authored-by: Phani Raj <phani@posthog.com>
Co-authored-by: David Newell <d.newell1@outlook.com>
Co-authored-by: Nikita Vorobev <nikitaevg@google.com>
Co-authored-by: PostHog Bot <69588470+posthog-bot@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-02 17:40:15 +01:00
Dylan Martin
c7e80168d2
fix(experiments): provide required_scope for experiments API (#23385)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-02 11:41:25 -04:00
Paul D'Ambra
a3a6964081
feat: sample message too large to s3 (#23374)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-02 12:43:24 +01:00
Paul D'Ambra
dd4be4fc3f
feat: remove non-hogql replay filtering (#23345)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-02 09:46:15 +01:00
Sandy Spicer
3994a91d8c
fix: add experimental settings to actors_query_runner (#23380) 2024-07-02 08:16:24 +01:00
Eric Duong
27506a89d3
fix(data-warehouse): schema status optional type (#23379)
* should be optional

* adjust test to account for null status

* Update query snapshots

* Update query snapshots

* func name

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dylan Martin <dylan@posthog.com>
2024-07-01 20:09:09 -04:00
Zach Waterfield
31bb9132ed
chore: remove deprecated billing v2 (#23303)
* Remove deprecated billing v2

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 19:57:45 +00:00
Dylan Martin
93f1261971
fix(filters): Don't match on an invalid filter condition; if such a condition exists, fail the match (#23297)
* saving work

* cleaned up tests

* this test condition no longer passes

* Update query snapshots

* saving work

* cleaned it up

* better comments

* Update query snapshots

* Update query snapshots

* delete unused snapshot

* Update query snapshots

* Update query snapshots

* relevant test condition

* I think I covered everything

* accidental commit

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 14:41:30 -04:00
Zach Waterfield
9ce8bc5d93
chore: add comment about xmlsec and lxml (#23260) 2024-06-28 10:15:34 -07:00
Marius Andra
0db8b489d4
feat(hog): autocomplete (#23332) 2024-06-28 18:13:24 +02:00
Marius Andra
c73fde6ea2
feat(hog): dict globals in autocomplete (#23288) 2024-06-28 15:56:10 +02:00
Sandy Spicer
a02e9c6faa
feat: bigger ast (#23300) 2024-06-28 07:59:08 +00:00
Sandy Spicer
eac199d24a
chore: upgrade python to 3.11 (#23206) 2024-06-27 14:16:27 -07:00
Eric Duong
8d7d525419
chore(data-warehouse): use new event to denote usage (#23295)
* clean slate

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-27 15:08:33 -04:00
Raquel Smith
8b3b31a0fa
fix: cache key interpolation bug (#23200)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-27 10:29:49 -07:00
Nikita Vorobev
6144971d1d
feat(insights): Log scale option in Trends (#22995) 2024-06-27 14:57:10 +02:00
Julian Bez
6c95fd18ba
chore(ruff): Add ruff rules for exception handling (#23251) 2024-06-27 12:39:21 +01:00
Sandy Spicer
635e08ce3a
feat(performance): query improvements for trends (load less people) (#23135) 2024-06-25 15:08:45 -07:00
Sandy Spicer
6c23c9bd89
revert: "chore: upgrade python to 3.11 🐍" (#23198)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 11:50:48 -07:00
Julian Bez
5617963e7a
chore: Update pyproject.toml for Python 3.11 (#23181) 2024-06-24 15:42:47 +01:00
Michael Matloka
077b2759fd
chore(insights): Yeet the unbaked groups-on-events (#22764)
* chore(insights): Yeet the unbaked groups-on-events

* Update TestAutoProjectMiddleware

* Update verifiedDomainsLogic.test.ts.snap

* Update funnel_correlation.py

* Update test_property.py

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 16:38:42 +02:00
Sandy Spicer
23a789d9fe
chore: upgrade python to 3.11 🐍 (#22932)
🐍
2024-06-21 16:45:42 +00:00
Zach Waterfield
99767a50c2
feat(billing): subscribe to all products (client side) (#22768)
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-21 09:04:10 -07:00
Paul D'Ambra
837fe038ed
fix: avoid person_distinct_id table when PoE is active (#23068)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-19 08:29:09 +00:00
Paul D'Ambra
b7f21e8efa
fix: PoE replay support with HogQL (#23051)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-18 20:28:50 +01:00
Paul D'Ambra
f5dcb192c5
fix: filtering out replays with no URL (#23032)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-18 08:50:48 +01:00
Paul D'Ambra
6133af0e35
fix: ignore replays with null first url (#22975)
* fix: ignore replays with null first url

* Update query snapshots

* update tests

* fix tests

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-14 13:17:50 +01:00
Michael Matloka
255229bd5b
fix(experiments): Prevent HogQL-only PoE modes breaking legacy insights (#22886)
* fix(experiments): Prevent HogQL-only PoE modes breaking legacy insights

* Actually leave `PERSON_ID_OVERRIDE_PROPERTIES_ON_EVENTS` alone
2024-06-11 23:08:08 +02:00
Bianca Yang
7bf5bddf49
feat: Revert changes to /billing page month-to-date dollar amount calculation (#22863)
* revert any changes to local updates to current_amount_usd, keep changes in current_usage accumulation

* fix tests

* add some text saying the dollar values update once daily

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* add in banner about tiers data

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-11 12:35:30 -07:00
Thomas Obermüller
8ab8741e63
chore(refactor): pythonic schema (#22573) 2024-06-10 15:19:20 +02:00
Marius Andra
3791562e18
fix(hog): modify global objects (#22800) 2024-06-10 09:47:34 +02:00
Bianca Yang
78d7daa3fc
fix: Billing product card display issues (#22767)
* fix the upgrade card?

* fix the month to date dollar amount display?

* Update frontend/src/scenes/billing/BillingProduct.tsx

* Update UI snapshots for `chromium` (2)

* fix tests

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-07 20:58:52 +00:00
Paul D'Ambra
e12566c62e
feat: move session replay pinned persistence to its own queue (#22765) 2024-06-07 09:14:33 +01:00
Zach Waterfield
738e54a9da
chore: updating /activation endpoint to /activate (#22779)
* Move /activation -> /activate

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-06 19:50:48 -04:00
Zach Waterfield
c5a4af4970
chore: updating activation endpoint to be activate (#22719)
* /activation -> /activate

* update the billing activate viewset actions

* update billing
2024-06-06 13:17:47 -04:00
timgl
1ec3b5fd41
feat: Always use person_distinct_id_override (#22347) 2024-06-05 12:51:54 -07:00
Sandy Spicer
09b6933032
feat(dev): add xdist for local concurrency in pytest (#22684) 2024-06-05 12:32:02 -07:00
Paul D'Ambra
48f67195d4
feat: turn on optimizing joins in replay by flag (#22714) 2024-06-05 16:48:24 +00:00
Bianca Yang
0a72f26df8
fix: /billing page usage calculations (#22696) 2024-06-05 08:18:08 -07:00
Zach Waterfield
2fbc4e1647
chore: improve billing activation/deactivate tests and view validation (#22663)
* improve billing activation/deactivate views'

* Improve billing testing

* add failure test for activation

* improve plan error hanlding
2024-06-05 10:18:46 -04:00
Thomas Obermüller
905f08ff14
fix(actions): display more than 100 actions (#22692) 2024-06-04 21:23:15 +00:00
Bianca Yang
5d2639606c
fix: Add in checks on dictionary accessors when updating local usage information in posthog (#22688)
* fix the dictionary accessors

* lint
2024-06-04 12:28:16 -07:00
Bianca Yang
ff5b2f1782
feat: Current bill value should respect usage limits (#22597)
* have current usage dollar value respect billing limits

* add test

* update according to pr feedback
2024-06-04 10:49:12 -07:00
timgl
aa036060cb
feat: Improve materialize command (#22666) 2024-06-04 16:03:19 +01:00
Bianca Yang
1eb6661c7e
fix: Patch the usage_summary value for rows_synced (#22600)
* patch the usage_summary value for rows_synced

* break up code for readability
2024-06-03 21:27:17 +00:00
Bianca Yang
6acfaf55f5
feat: Final piece of deprecating available features, DB references (#22402)
* remove db ref

* update the migration

* remove referencess from test fixture jsons

* some more removals

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* fix migration

* add reverse sql

* fix the migration

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* i think i finally fixed the migration issue

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* update migration post merge

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-30 16:41:22 +00:00
Ben White
f930bf59cd
chore: Swap to just /api/billing (#22545) 2024-05-30 13:25:02 +01:00
Ben White
76ddfec198
feat: Add plugin config filtering (#22469) 2024-05-30 10:23:03 +01:00
timgl
fb22a36ea8
feat: Debug CH query improvements (#22505)
* feat: Debug CH query improvements

* add
2024-05-29 13:00:15 +00:00
Bianca Yang
9dd22a3757
feat: Deprecate available_features pt 2 (#22373)
* everything except plugin server and sync_available_features

* sync_available_features_done, some plugin_server done?

* and a tiny bit more

* linting

* try to fix some tests

* more test fixes/

* clean up typos

* weed wacking bugs

* more test shenanigans

* fix plugin server

* actually fix plugin server test?

* still fixing tests

* another attempt

* some pr feedback

* small fix

* fix database query accessor

* fix functional tests

* fix tests

* Update query snapshots

* Update query snapshots

* Update query snapshots

* update some comments and fxn names

* fix plugin server test

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-28 17:29:24 -07:00
Marius Andra
45d275c4ee
feat(not-defining): Hog (#22336) 2024-05-28 14:51:45 +02:00
Ben White
c4fee6fc83
feat: Action filtering for webhook apps (#22056) 2024-05-28 10:21:38 +01:00
Bianca Yang
0ffd1b78ba
fix: Trust score update in quota_limiting was using the wrong key (#22535)
* fix dict update

* add test
2024-05-27 20:55:08 -07:00
Bianca Yang
db8b0033c2
fix: Fix customer_trust_score dict update (#22530)
* fix the trust_score dict updater

* fix test
2024-05-27 21:39:09 +00:00
Sandy Spicer
08e0480b92
fix(exports): long running exports are failing (#22489) 2024-05-24 07:25:32 -07:00
Zach Waterfield
a5375dfa0d
feat: send updated owner/admin emails to billing (#22374)
* Send updated admin emails to billing

* add tests

* sync when a user is removed from an org

* fix the admin email filter

* sync admin emails on level change

* add more tests
2024-05-22 15:49:13 -04:00
Zach Waterfield
187c1265c0
fix: make sure available features get set (#22423)
make sure available features get set
2024-05-22 10:48:24 -04:00
Joe Martin
11f39694b4
chore: Remove user email opt-out from customization options (#22388) 2024-05-22 12:59:16 +02:00
Michael Matloka
64aff85b35
fix(insights): Make async query execution use the same cache as sync (#22234)
* Add `test_insight_refreshing_query_async`

It's red.

* Allow `enqueue_process_query_task` short circuit if cache warm

* Make cache key consistent between sync and async execution

* Remove obsolete comment

* Fix test_execute_async.py

* Fix `execute_process_query` call

* Fix `enqueue_process_query_task` call

* Update expected cache keys

This is to be expected, because now `get_cache_key()` returns the _full_ cache key, i.e. including f"...._{self._limit_context_aliased_for_cache}_v2".

* Update mypy-baseline.txt

* Make `process_query_...` return actual model instances

This makes `CacheMissResponse` checks easy and obvious.

* Fix post-refactor issues

* Stabilize `test_create_two_similarly_named_organizations`

It looks like we're calling `random()` at some point now, which causes the test to see a different disambiguated org slug than before. But this test should not rely on that – `choice()` just needs to be mocked.
2024-05-21 19:22:21 +00:00
Ben White
ed25f62a0b
feat: Hedgehog Mode 2.0 (#22334) 2024-05-21 15:17:01 +02:00
Bianca Yang
008698a785
feat: remove most frontend references to available_features (#22337)
* remove most frontend references to available_features

* some more

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* adding back some items, fix tests

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* fix test

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-20 14:24:32 -07:00
Ben White
33a0757a7c
fix: Loading of embedddings (#22260) 2024-05-20 16:26:22 +01:00
Abenezer Belachew
318cae0ea2
Duplicate "user" in read_only_fields (#22314)
The read_only_fields list contains "user" twice
2024-05-20 12:48:33 +02:00
Paul D'Ambra
e0b0c98cb5
chore: put session summaries back (#22307)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-16 11:40:12 +03:00
Michael Matloka
5b808407e6
fix(insight): query support for InsightCachingState mechanism (#22151) 2024-05-15 14:22:25 +00:00
Bianca Yang
cb95d71723
fix: Fix dict accessor for subscription status on addons (#22280)
* fix dict accessor

* more comprehensive fix
2024-05-14 15:06:51 +00:00
Bianca Yang
6b42259376
fix: isinstance check on get_invoices error handler was backwards (#22255)
the isinstance check was wrong
2024-05-14 16:30:01 +03:00
Ben White
7f02e6a46d
feat: Re authenticate for certain endpoints after expiry (#22179) 2024-05-10 12:46:31 +02:00
Ben White
400c615d4c
feat: Deprecate ActionSteps (#22093) 2024-05-10 11:50:46 +02:00
Paul D'Ambra
4fba6a63e3
fix: last timestamp in tests (#22230)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-09 17:21:07 +00:00
Tom Owers
11ac42dbdc
fix(data-warehouse): Fixed insight filter caching for data warehouse nodes (#22220)
* Fixed insight filter caching for data warehouse nodes

* Fixed tests

* Fixed test
2024-05-09 17:31:40 +02:00
Paul D'Ambra
6bb02c988d
fix: code should never care about anything with session_recording_events (#22206) 2024-05-09 08:39:19 +01:00
Bianca Yang
8af7c7ea5f
fix: Use safer dict accessor when computing tiers information (#22203)
change dict accessor
2024-05-08 23:32:21 +00:00
Bianca Yang
d039cf6144
feat: Add warning that we will autopay open invoices to unsubscribe modal (#21953)
* add warning about auto paying open invoices on unsubscribe modal

* Update frontend/src/scenes/billing/UnsubscribeSurveyModal.tsx

Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>

* undo lemoncollapse

* wip

* some small tweaks

* Update UI snapshots for `chromium` (1)

* some dict accessor wrappers just in case

* add fix for sentry error

* wrong syntax for raising exception

---------

Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-08 21:02:23 +00:00
Raquel Smith
b52532c567
chore: remove team collab feature (#22170)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-08 13:00:02 -07:00
Bianca Yang
69dfe43e8a
feat: Block subscriptions if there are open invoices on the customer (#22057)
* retrieve open invoices as part of /billing loading, show warning

* small fixes

* address pr feedback

* small grammar update

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-08 10:30:53 -07:00
Bianca Yang
a266ffc60e
feat: Update tiers usage information with local org usage information (#21957)
* update tiers usage with local org usage information

* type finagling

* update addon tiers as well

* test

* Update ee/billing/billing_manager.py

* update tests

---------

Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
2024-05-07 23:25:22 +00:00
Ben White
cc9cb45d58
feat: Action steps refactor (attempt 2) (#22137) 2024-05-07 15:25:19 +02:00
Ben White
0fc2c9eccd
revert: "feat: Action steps refactor (part1) (#22091)" (#22136) 2024-05-07 12:32:41 +02:00
Ben White
776298d2a8
feat: Action steps refactor (part1) (#22091) 2024-05-07 12:08:13 +02:00
Paul D'Ambra
c82ba3baf8
fix: being tired of instance settings flapping snapshots (#22042)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-03 09:37:00 +01:00
David Newell
2dd5c1aeb1
feat: port new HogQL filters (#22009) 2024-05-01 13:38:44 +00:00
Paul D'Ambra
1cedcd95cb
feat: explicit screenshot support in the mobile replay schema (#21965)
Co-authored-by: David Newell <d.newell1@outlook.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-30 11:43:17 +01:00
Julian Bez
e522d9d7ee
fix(subscriptions): Fix possibly flapping test (#21934) 2024-04-29 10:22:52 +00:00
Ben White
450501ad14
feat: Enforce usage of parent functions for main viewset (#21730) 2024-04-29 11:45:16 +02:00
Xavier Vello
d956515939
chore(capture.py): remove the sha key code path (#21892) 2024-04-29 11:11:05 +02:00
Julian Bez
304540f0ce
fix(tasks): Add autoretry for too many simultaneous queries error in some tasks (#21895)
* Add autoretry for too many simultaneous async queries

Fixes POSTHOG-DNR

* Use for update_cache

Fixes POSTHOG-DNR

* Use for export_asset

Fixes POSTHOG-TMV
2024-04-29 08:35:03 +01:00
Bianca Yang
d785d8cbe2
fix: Use requests.exception.JSONDecodeError in try/except for billing service errors (#21907)
silence mypy error about exception not existing
2024-04-26 21:45:39 +00:00
Bianca Yang
5f296b44b3
fix: Adds fallback to res.text in billing error handler (#21904)
* add fallback to res.text

* lint
2024-04-26 11:56:30 -07:00
Bianca Yang
f4fe46378c
feat: Show error messages from server on billing page (#21765)
* show error messages on billing page

* some more updates

* extraneous exception and pr feedback

* Move error display into the unsubscribe modal
* Only show link to stripe if the error detail is about open invoices

* Update frontend/src/scenes/billing/billingLogic.tsx

Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>

* remove opensupportform from billingLogic

---------

Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
2024-04-25 19:50:55 +00:00
Julian Bez
9576fab1e4
chore: Add Pyupgrade rules (#21714)
* Add Pyupgrade rules
* Set correct Python version
2024-04-25 08:22:28 +01:00
David Newell
d1f1691ac8
fix: replay web schema (#21764) 2024-04-23 16:44:22 +00:00
Julian Bez
a0fc086175
chore(deps): Upgrade ruff (#21648) 2024-04-19 14:19:10 +02:00
Michael Matloka
b7add1d252
refactor(querying): Consolidate PersonOnEventsMode and PersonsOnEventsMode (#21628)
* Consolidate `PersonOnEventsMode` and `PersonsOnEventsMode`

* Fix multi-line imports too

* Fix member casing

* Fix typing

* Fix some more and update baseline

* Fix `PersonsOnEventsMode` member capitalization
2024-04-19 10:06:55 +02:00
Julian Bez
475fee5ca6
fix: Fix subscriptions sending twice (#21581) 2024-04-18 17:38:57 +00:00
Neil Kakkar
9f43a3f4cd
feat(ci): split out temporal, make tests faster (#21636) 2024-04-18 16:25:33 +01:00
Marius Andra
8f4450caac
feat(debug): add query json to debug ch queries (#21634) 2024-04-18 13:51:57 +02:00
Neil Kakkar
b7c2d36f34
fix(ci): Show docker compose logs only when tests don't run (#21613) 2024-04-17 22:50:09 +01:00
Neil Kakkar
703e0b8f66
fix(cohorts): Restrict query by time range (#21621) 2024-04-17 18:20:42 +00:00
Neil Kakkar
dc514fb213
feat(experiments): Add exposure cohort flow (#21474) 2024-04-17 15:09:17 +01:00
Juraj Majerik
4d7e9d6da6
feat(experiments): no results Trends diagnostics (#21558) 2024-04-16 13:04:58 +00:00
Julian Bez
dc0cf33e8e
chore(deps): Upgrade to Django 4.2 (#18653)
* Upgrade dependencies

* Fix middleware error

Among
https://docs.djangoproject.com/en/4.2/releases/4.0/#features-removed-in-4-0

* Upgrade psycopg

We need to be on >= 3.1.8

Locally there is an additional problem that somehow psycopg2
seemingly overshadows psycopg, making it appear that 3.1 works.

Had to install pip install "psycopg[binary,pool]==3.1.2" to
recreate the problem.

* Go to Django 4.1 because of problems with psycopg3

We use custom SQL that somehow doesn't get formatted in the right way
using server or client side cursors.

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Switch TaggedItem tests to assert ValidationError

Because full_clean validates since Django 4.1, see
https://docs.djangoproject.com/en/4.2/releases/4.1/#validation-of-constraints

* Remove type: ignore comments

Come up as
error: Unused "type: ignore" comment

* Update query snapshots

* Figure out psycopg problem and try Django 4.2 again

* Update query snapshots

* Fix other IN errors

* Fix getting status

* Fix psycopg3 issues

* Fix psycopg issues

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update deps

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Fix more tests

* Adjust baseline

* Remove sqlcommenter (should be PostgresQL only anyways)

* Fix file

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Fix queries

* Fix query

* Revert

* Update requirements.in

* Remove restore-virtualenv

Because not maintained anymore

* Revert "Remove restore-virtualenv"

This reverts commit c2a7ef8a1e.

* mypy

* Adjust num queries

* Adjust num queries

* Adjust num queries

* Update query snapshots

* Add to updated_fields

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2024-04-16 10:53:32 +01:00
Juraj Majerik
5128d29bae
feat(funnel experiment): no results diagnostics (#21400) 2024-04-16 07:07:15 +02:00
Neil Kakkar
de511eeb89
feat(cohorts): Allow adding property filters to events in cohorts (#21375) 2024-04-15 13:08:17 +01:00
ted kaemming
8e2986b521
feat(hogql): Update modifiers and schemas to reflect person-on-events modes from #21455 (#21504) 2024-04-12 15:26:13 -07:00
timgl
6cf85db922
fix: Three clear options for persons on events (#21455)
* Revert "feat(hogql): Add feature flag for opting queries into v3 persons-on-events (#21150)"

This reverts commit 205376b86e.

* fix: Three clear options for persons on events

* Update UI snapshots for `chromium` (1)

* use UUID to target feature flag

* fix

* add missing option

* fix

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update posthog/models/team/team.py

Co-authored-by: ted kaemming <65315+tkaemming@users.noreply.github.com>

* Update posthog/models/team/team.py

Co-authored-by: ted kaemming <65315+tkaemming@users.noreply.github.com>

* fix schema

* fix

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ted kaemming <65315+tkaemming@users.noreply.github.com>
2024-04-11 18:58:35 +01:00
Juraj Majerik
ed0abf2d6f
feat(experiments): explore results in an insight (#21235)
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2024-04-11 11:05:41 +02:00
timgl
cfcbfadb1b
fix: Fix subscription deliveries happening multiple times (#21419) 2024-04-09 08:03:20 +01:00
Julian Bez
487ca39064
chore: Enable more ruff rules (#21043) 2024-04-08 16:21:51 +01:00
David Newell
4b1c253759
chore: upgrade rrweb for playback (#21368) 2024-04-08 11:37:09 +01:00
Zach Waterfield
056300f635
chore: add groups to billing limit events (#21307)
* Add groups to billing limit events

* Use the groups function

* make sure team exists
2024-04-03 18:49:33 -04:00
Michael Matloka
1dcffffa0b
feat(dev): Show Celery cohort queries in CH debug modal (#21173)
* feat(dev): Show Celery cohort queries in CH debug modal

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Add test for `user_id:{self.user.id}`

* Fix args

* Update query snapshots

* Fix typing

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-02 17:56:51 +00:00
David Newell
140dfbceda
fix: sparkline generation (#21274) 2024-04-02 16:17:16 +01:00
Michael Matloka
68795d0e20
fix(debug): Restore order to CH query debug modal list (#21221)
* fix(debug): Restore order to CH query debug modal list

* Fix non-aggregated value usage
2024-03-28 18:25:36 +01:00
David Newell
4e22252235
chore: run clustering in background task (#21080) 2024-03-28 12:12:51 +00:00
timgl
68181ad0d6
fix: Fix single property materialization command (#20798)
* fix: Fix single property materialization command

* default to 0
2024-03-28 11:04:00 +00:00
Paul D'Ambra
0892e5ba24
feat: use existing placeholder background in mobile replay (#21170)
* feat: use existing placeholder background in mobile replay

* fix
2024-03-27 09:29:05 +00:00
Michael Matloka
200f68ac56
feat(dev): Show in-progress queries in query debug modal (#21160)
* feat(dev): Show in-progress queries in query debug modal

* Remove needless block

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-26 21:44:11 +01:00
Paul D'Ambra
e5bec128fc
fix: invalid text node should not render (#21093) 2024-03-22 17:48:43 +00:00
David Newell
6b6d40a666
feat: sparkline errors (#21081)
* feat: errors page playlist link

* feat: create playlist from errors

* remove sample data

* update title

* add frontend protection to samples

* feat: sparkline errors
2024-03-22 10:20:37 +00:00
David Newell
21922ff9e3
feat: create playlists from errors (#21037) 2024-03-21 16:59:21 +00:00
Raquel Smith
da97985276
fix: allow reads/writes to description without team collab feature (#21027)
* remove check for org feature for dashboard descriptions

* use normal upgrad modal for editableField paywall

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-20 16:05:43 -07:00
Paul D'Ambra
235f7c643b
fix: padding reset for mobile replay (#21041)
* fix: padding reset for mobile replay

* fix

* updat snapshot
2024-03-20 12:52:34 +00:00
Paul D'Ambra
1a6948eb04
feat: support padding for mobile replay styling (#21020)
* feat: support padding for mobile replay styling

* fix

* schema
2024-03-20 07:50:47 +00:00
David Newell
088399bbe0
feat: error clustering UI (#20958) 2024-03-19 16:02:07 +00:00
Michael Matloka
b6162a686f
fix(elements): Avoid matching element tag on classes (#20533)
* fix(elements): Avoid matching element tag on classes

* Update test_property.py

* Make test a bit more robust

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-19 13:59:01 +01:00
Ben White
69b2bece50
fix: Deleting role members (#20928) 2024-03-18 10:09:35 +01:00
Michael Matloka
97e66607a5
chore(api): Expose dashboard collaborator and org invite endpoints (#20874)
* chore(api): Make dashboard collaborator and org invite endpoints public

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-15 18:51:21 +01:00
Thomas Obermüller
2ade0951de
refactor(style): do not use star imports for locals (#20915) 2024-03-14 13:55:52 +01:00
David Newell
8b92cd1c62
fix: picking embedding input samples (#20913) 2024-03-14 09:12:13 +00:00
David Newell
6b4a9f20b1
chore: include input in fetched data (#20908) 2024-03-13 16:52:55 +00:00
David Newell
dc0faa5a79
chore: add input to clickhouse rows (#20901) 2024-03-13 15:57:22 +00:00
David Newell
428c48084b
fix: error clustering data shape (#20859)
* fix: error clustering data shape

* use new input column

* remove logger
2024-03-13 14:49:20 +00:00
Michael Matloka
12447e6ea3
chore(environments): Add Project model (#20783)
* chore(environments): Add `Project` model

* Add tests and ensure project creation

* Make mypy happy

* Unify default `Team` name capitalization

* Update text in tests and improve code readability

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Add docstring on `Project`

* Add tests for transactionality

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-13 14:58:21 +01:00
Paul D'Ambra
ef3b213738
feat: keyboard color matches nav bar color (#20842)
* feat: keyboard color matches nav bar color

* update snapshots

* don't set colours unless they're provided
2024-03-12 08:03:24 +00:00
David Newell
6251ed481f
feat: error clustering UI (#20823) 2024-03-11 18:00:35 +00:00
Paul D'Ambra
b09417fdb1
fix: browser css reset for mobile replay (#20822)
* fix: browser css reset for mobile replay

* wat

* update snapshots
2024-03-11 14:53:19 +00:00
David Newell
a677a3fd64
fix: embeddings runner variable name (#20802) 2024-03-08 20:43:41 +00:00
David Newell
1d3c7417fb
fix: add labelnames to prometheus metrics (#20800) 2024-03-08 19:32:29 +00:00
David Newell
0c1c05e38c
feat: cluster errors (#20779) 2024-03-08 18:16:24 +00:00
David Newell
ea340fc765
feat: embed errors (#20752) 2024-03-08 18:12:06 +00:00
Bianca Yang
376fb232ae
feat: Implement Quota Limiting Suspension Strategy (#20469)
* add db field, add automatic scoring mechanism, update billing response types

* implement score override system

* add migration file, small change

* add model fields, fix ff implementation

* add is_hipaa field to organization
* fix ff quota_limiting implementation so only not already limited orgs have limiting suspended

* update automatic limiting logic, existing tests

* update ff test

* beefing up tests

* Update query snapshots

* Update query snapshots

* Update query snapshots

* rebase upon customer score pr

* Update query snapshots

* typo fix

Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>

* remove needs_save, claen up migration

* Update query snapshots

* Update query snapshots

* another set of small cleanup

* Update query snapshots

* Update query snapshots

* fix type errors

* Update query snapshots

* tests and typing

* actually fix tests

* Update query snapshots

* Update query snapshots

* Update query snapshots

* update fields to match backend

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* some pr comments

* undo migrations as they are moved to another pr

* undo model changes to organization

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
2024-03-07 10:15:11 -08:00
Neil Kakkar
575684fe1c
fix(experiments): Respect test account filters setting (#20730) 2024-03-06 14:52:45 +00:00
David Newell
6c5ad0c414
fix: return most not least similar recordings (#20693) 2024-03-05 16:29:05 +00:00
Bianca Yang
ca4f1d4203
feat: add field for customer_trust_scores (#20695)
* extracing just the migrations

* actually do the migration right

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-04 15:21:25 -08:00
Raquel Smith
a018d0a8a0
feat: add feature gating for teams plan (#20435) 2024-03-04 07:07:09 -08:00
Paul D'Ambra
776e0e1c38
feat: fewer tokens sent to embed from urls (#20680)
* feat: fewer tokens sent to embed from urls

* need to stringify the input before logging it
2024-03-03 17:23:00 +00:00