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

1841 Commits

Author SHA1 Message Date
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