0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
Commit Graph

17 Commits

Author SHA1 Message Date
James Greenhill
522a08ac77
chore: bump clickhouse for local dev and ci to 23.6 (#16361)
* chore: bump clickhouse for local dev and ci to 23.6

* test to see if race condition

* it is a race
2023-07-03 19:04:57 -07:00
Raquel Smith
e68d740f50
chore: remove the old billing UI (#15928)
* remove the old billing UI

* fix imports

* Update UI snapshots for `chromium` (1)

* fix billing story data

* return the correct products api response

* autocreate licenses after subing in unlicensed debug

* fix tests

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-12 08:07:52 -07:00
Raquel Smith
91de4af59c
fix: support feature objects from billing (#15243)
* save available_product_features to the org

* use new feature objects and gaurd on limits

* guard playlists based on feature limit frontend

* handle feature limits on backend for playlists

* migrations

* Update query snapshots

* fix a couple things

* fix / add playlist tests

* fix dashboard collab tests

* fix types

* fix some tests

* fix collab test

* fix dashboard collab tests?

* Update query snapshots

* fix migration

* Update query snapshots

* remove default on field

* debug geoip test failure

* remove print

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-27 14:50:17 +00:00
Raquel Smith
d03fa0a953
feat(billing): create product-specific billing page (#15035)
* clean up and organize

* create ff and stub out new product layout

* Split main billing page

* refactor test billing product

* rename table bordered to borderedRows

* Add stealth display to table for minimal styling

* key the logic

* stub addons

* working version connected to api

* accept usage key from custom_limits_usd map
just in case some old ones are left dangling

* consolidate pricing tables and more

* add pricing modal

* avoid errors

* fix

* fix tests

* Handle contact_support products

* Update UI snapshots for `chromium` (2)

* incorporate fixes from em's other PR

* Update UI snapshots for `chromium` (2)

* Fix some tests and type errors

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* more type fixes

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Hide billing limit field if it's open & then unsub

* just say products not your products

* feat: add product comparisons and ingestion styling/logic (#15040)

* add upgrade CTA on plan card

* add a modal to show plan details

* make ingestion view work

* add upgrade all button on ingestion

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `firefox` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `firefox` (2)

* redirect back to ingestion if that's where they were

* stay on billing panel til they are done sub-ing

* upgrade to addons automatically in onbdg

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* only include free tier in gauge if there is one

* use proj_amt_usd instead of calculating on frontend

* usage_key not type

---------

Co-authored-by: Emanuele Capparelli <k@emkpp.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-13 17:43:33 +00:00
Emanuele Capparelli
20881d9701
fix: current_usage wrongly displayed (#15061)
* fix: current_usage wrongly displayed

* fix
2023-04-12 22:54:38 +00:00
Emanuele Capparelli
c86e490bc4
fix: small UI fixes for new billing API (#15024)
* fix: small UI fixes for new billing API

* fix tests

* 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>
2023-04-11 09:52:46 -07:00
Emanuele Capparelli
f489831bc4
fix: improved billing page for yearly plans (#14652)
* fix: show correct billing interval

* fix types and hide billing limits

* fix type

* fix copy

* fix copy
2023-03-09 17:42:48 +00:00
Emanuele Capparelli
7672b3d131
fix: handle billing discounts (#14576)
* fix: handle billing discounts

* 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` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-08 12:01:35 +00:00
Ben White
a69ff2ab13
feat: Track info about quota limiting to posthog (#14340) 2023-02-22 09:34:26 +01:00
Ben White
34ba9ee2e5
chore: Add exception catching if there are no team_tokens (#14246) 2023-02-15 09:02:22 +00:00
Ben White
aeec7ba10c
feat: Added code to sync quota limits when updated (#14227)
* Added code to sync quota limits when updated

* Fixed syncing of rate limited teams

* fix

* Fix types

* Reverse changes

* fix import

---------

Co-authored-by: Emanuele Capparelli <k@emkpp.com>
2023-02-14 19:17:26 +00:00
Emanuele Capparelli
2272fca0b5
fix: avoid sending distinct ids to billing (#14224)
* fix: avoid sending distinct ids to billing

* fix test
2023-02-14 02:38:02 +00:00
Emanuele Capparelli
7a0a7283e0
fix: better billing debug (#14223)
* fix: better billing debugging

* fix error handler
2023-02-13 16:24:16 -08:00
Ben White
3234aaf081
feat: Billing limits take 2 (#14198)
* Revert "revert: Billing change (#14195)"

This reverts commit e0a65353e5.

* Fix up access
2023-02-13 14:43:53 -08:00
Ben White
e0a65353e5
revert: Billing change (#14195) 2023-02-13 08:58:30 +00:00
Emanuele Capparelli
037b635945
feat: chron job to rate limit orgs based on usage (#13521) 2023-02-13 09:03:22 +01:00
Ben White
8ecbf29766
feat: Added quota limiting for capture (#14046) 2023-02-06 10:43:33 +01:00