15 Commits

Author SHA1 Message Date
suchsoon
a307738d04
remove repetitive words (#19527)
Signed-off-by: suchsoon <silverjadebeauty@gmail.com>
2024-03-25 12:07:34 +01:00
Sven Efftinge
0a3e22ba3d
[usage] track email for free allowance (#19303)
* [usage] track email for free allowance

* [db] d_b_free_credits: Add indexes for userId and email

---------

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2024-01-04 10:49:41 +02:00
Sven Efftinge
c6e90d48cc
[stripe] reconcile missing invoices (#18810) 2023-09-26 18:39:05 +03:00
Sven Efftinge
fb0b7c4980
[usage] compute correct spending limit (#17947) 2023-06-20 17:39:10 +08:00
Sven Efftinge
20fda4dab5
[usage] restore previous spending Limit (#17945) 2023-06-15 16:24:05 +08:00
Sven Efftinge
256c896891 [db] handle race in gorm.Save
when calling `gorm.Save` concurrently, we see duplicate entry errors
because gorm is only trying to update and if that doe not succeed does
an insert.
2022-12-15 07:14:24 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Sven Efftinge
aa4a5cafb6 [usage] make increment billing cycle more robust 2022-12-07 05:54:17 -03:00
Sven Efftinge
57593bfedd [usage] increment cycle on finalize invoice 2022-12-06 05:24:16 -03:00
Sven Efftinge
a5d67448b2 Revert "[usage] handle reset usage for chargebee" 2022-12-02 11:47:01 -03:00
Sven Efftinge
2eead4a625 [usage] handle reset usage for chargebee
chargebee subscriptions that are cancelled get a dedicatd cost center
2022-11-30 09:08:00 -03:00
Sven Efftinge
c381daac25 [usage] only reset to max spendingLimit 2022-11-30 04:14:59 -03:00
Sven Efftinge
7252b10b78 [usage] reduce possibility for races in ResetUsage 2022-11-28 11:02:57 -03:00
Sven Efftinge
8027a1e195 [usage] don't reset usage limit 2022-11-24 11:14:53 -03:00
Laurie T. Malau
ee08e7863c [db] Move db models to gitpod-db/go module 2022-11-21 08:37:50 -03:00