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

328 Commits

Author SHA1 Message Date
Michael Matloka
954852f08b
feat(environments): Environment switcher, behind flag (#25009)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-01 17:08:37 +02:00
Michael Matloka
86231b3a2d
fix(projects): Fix project creation when access_control set (#24988) 2024-09-16 13:43:32 +00:00
Zach Waterfield
862082f10d
revert: revert the revert for annual credits (#24898) (#24900) 2024-09-11 10:38:03 -04:00
Michael Matloka
f2522de038
feat(environments): Add new environments endpoint and move /projects to Project (#24154)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-11 14:05:56 +02:00
Zach Waterfield
f01b44db05
revert: "feat: annual credit purchases (#24691)" (#24898) 2024-09-10 16:30:15 -07:00
Zach Waterfield
0240afc6d3
feat: annual credit purchases (#24691) 2024-09-10 17:51:17 -04:00
Juraj Majerik
1bc6264854
fix(api): fix KeyError in _filter_queryset_by_parents_lookups (#24693) 2024-09-03 09:47:53 +02:00
Julian Bez
1e1a740b6b
chore: Revert "chore(deps): Upgrade to Django 5" (#24668) 2024-08-29 10:51:36 +00:00
Julian Bez
9418235763
chore(deps): Upgrade to Django 5 (#23626) 2024-08-29 10:56:28 +01:00
Marius Andra
b7105b6af5
feat(hog): bytecode versions (#24584) 2024-08-27 17:04:54 +02:00
timgl
b0b4a69971
fix(docs): Remove responses from all actions (#24548)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-23 14:06:27 +01:00
Michael Matloka
94d0d32b3c
chore(environments): Add project_id-based filtering to API (#23246)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-19 17:56:47 +02:00
Ben White
ad54f11504
feat(cdp): Migrate action webhooks (#24326) 2024-08-15 10:46:47 +01:00
Michael Matloka
8233b4f5a0
feat: Uploadable organization logo (#24213)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-08 16:30:59 +02:00
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