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

314 Commits

Author SHA1 Message Date
Paul D'Ambra
bfaa511985
feat: tell clients when they should stop spamming recordings (#23793) 2024-07-22 09:44:42 +01:00
Paul D'Ambra
8b77aaf264
chore: remove tts querying (#23466)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-04 12:04:55 +01:00
Paul D'Ambra
6ca265b9e3
fix: large old replay data splitting (#23454)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-04 11:05:09 +01:00
Zach Waterfield
74e7b3dc4b
chore: remove SUBSCRIBE_TO_ALL_PRODUCTS ff (#23418)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-03 15:43:33 -04: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
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
Zach Waterfield
9ce8bc5d93
chore: add comment about xmlsec and lxml (#23260) 2024-06-28 10:15:34 -07:00
Sandy Spicer
eac199d24a
chore: upgrade python to 3.11 (#23206) 2024-06-27 14:16:27 -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
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
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
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
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
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
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
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
Ben White
c4fee6fc83
feat: Action filtering for webhook apps (#22056) 2024-05-28 10:21:38 +01: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
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
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
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
6bb02c988d
fix: code should never care about anything with session_recording_events (#22206) 2024-05-09 08:39:19 +01: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
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
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
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
Marius Andra
8f4450caac
feat(debug): add query json to debug ch queries (#21634) 2024-04-18 13:51:57 +02:00