10 Commits

Author SHA1 Message Date
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
16960334b2
[usage] cleanup after org-only mig (#18023) 2023-06-23 20:09:13 +08: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
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
7252b10b78 [usage] reduce possibility for races in ResetUsage 2022-11-28 11:02:57 -03:00
Laurie T. Malau
ee08e7863c [db] Move db models to gitpod-db/go module 2022-11-21 08:37:50 -03:00