264 Commits

Author SHA1 Message Date
Milan Pavlik
c031a86064 [usage] Handle Stripe customers with zero subscriptions 2022-10-04 09:30:20 +02:00
Milan Pavlik
865cc2c5a7 [usage] Simplify UpdateInvoices handling 2022-09-29 15:11:29 +02:00
Milan Pavlik
3d017c0951 [usage] Remove 'Get or create CostCenter' log 2022-09-29 10:16:29 +02:00
Christian Weichel
d6023c989a Revert "Switch to Go workspaces"
This reverts commit 6bc34cf17512cb0a10a3a6cce44141b1f06b624e.
2022-09-29 05:28:29 +02:00
Christian Weichel
174a09222f Revert "Run go work sync"
This reverts commit 6b23167e09f74062b31150d4044a8fe7cacbc34b.
2022-09-29 05:28:29 +02:00
Christian Weichel
6b23167e09 Run go work sync 2022-09-28 08:45:28 +02:00
Christian Weichel
6bc34cf175 Switch to Go workspaces 2022-09-28 08:45:28 +02:00
Milan Pavlik
4a2648eea8 Revert "[usage] Use DefaultClientOptions when creating grpc client connection"
This reverts commit 0f5d689ce5af15e87f2c16a82f644c66b531cbd4.
2022-09-23 10:40:23 +02:00
Sven Efftinge
5670a5500e [usage] show sum of usage not balance
fixes #13067
2022-09-23 10:03:24 +02:00
Milan Pavlik
0f5d689ce5 [usage] Use DefaultClientOptions when creating grpc client connection 2022-09-23 09:22:23 +02:00
Sven Efftinge
1b995ef47f [usage] introduce getBalance API 2022-09-23 07:34:23 +02:00
Milan Pavlik
c7efb44985 [usage] Use credit cents when computing listed usage balance 2022-09-21 14:57:22 +02:00
Milan Pavlik
6f461f5714 [baseserver] Track metrics for HTTP requests automatically 2022-09-20 09:05:21 +02:00
Sven Efftinge
4d35f4db8f [usage] remove unused GetUpcomingInvoice 2022-09-19 11:22:20 +02:00
Milan Pavlik
23419beead [usage] Remove BillingService.SetBilledSession proto 2022-09-16 17:20:17 +02:00
Sven Efftinge
22aa488131 Simplify deploying usage in preview 2022-09-16 16:24:17 +02:00
Sven Efftinge
65812bf67f [usage] implement CancelSubscription 2022-09-16 16:24:17 +02:00
Milan Pavlik
686963ba63 [usage] Fix stripe invoice finalization 2022-09-16 14:37:17 +02:00
Milan Pavlik
42224aeee9 [baseserver] Add metric with version of the server, use in public api and usage 2022-09-16 14:20:17 +02:00
Milan Pavlik
a26a070e45 [usage] Remove verbose log 'searching for customer with query' 2022-09-16 13:50:17 +02:00
Milan Pavlik
d9f460b6ee [billing] Remove implementation of SetBilledSession RPC 2022-09-16 13:16:18 +02:00
Sven Efftinge
2701ec7bdc [usage] added costcenter nextBillingTime 2022-09-15 19:18:16 +02:00
Milan Pavlik
f591c88da5 [usage] Run go mod tidy 2022-09-15 08:40:16 +02:00
Milan Pavlik
075d856f42 [usage] Track last compelted ledger job time 2022-09-15 08:23:16 +02:00
Milan Pavlik
08650a7b75 [usage] Remove stopped without stopping time detector, temporarily 2022-09-14 12:18:15 +02:00
Milan Pavlik
0d757c4cd3 [usage] Add periodic job to detect invalid workspace instances in usage 2022-09-14 10:08:15 +02:00
Milan Pavlik
936c4f2687 [usage] Remove unused WorkspaceInstanceUsage model 2022-09-14 09:07:15 +02:00
Milan Pavlik
c3673e3fdc [usage] Rename ReconcileUsageWithLedger to ReconcileUsage 2022-09-13 15:55:14 +02:00
Milan Pavlik
8dcbb578db [usage] Refactor controller package into scheduler 2022-09-13 11:17:14 +02:00
Milan Pavlik
24c50d2e44 # This is a combination of 2 commits.
# This is the 1st commit message:

[usage] Refactor controller package into scheduler

# This is the commit message #2:

[usage] Refactor controller package into scheduler
2022-09-13 11:17:14 +02:00
Jan Keromnes
7a23e97cf6 [server][dashboard][protocol] Remove deprecated Project DB config feature 2022-09-13 07:50:14 +02:00
Milan Pavlik
e85ad2a595 [usage] Remove unused config and functions 2022-09-12 08:35:13 +02:00
Sven Efftinge
343c462098 [usage] added a test for ListUsage 2022-09-09 12:26:24 +02:00
Sven Efftinge
74bc751ec7 [cost center] Add save API 2022-09-09 11:25:24 +02:00
Milan Pavlik
51245afbd4 [usage] Include drafts when listing usage summary 2022-09-09 11:03:24 +02:00
Milan Pavlik
43e526b1d6 [stripe] Finalized invoce debits, do not set credits to negative when updating 2022-09-09 09:27:24 +02:00
Milan Pavlik
066b577b6d [usage] Remove unused RPCs from proto 2022-09-09 07:19:23 +02:00
Milan Pavlik
9329939388 [stripe] Use attributionId in stripe queries 2022-09-09 07:18:23 +02:00
Milan Pavlik
9cab00ae89 [biling] Remove UpdateInvoices - old reconciler 2022-09-08 16:38:23 +02:00
Milan Pavlik
9f132579bc [usage] Fix negative credits 2022-09-08 16:26:23 +02:00
Milan Pavlik
0a8e3dcbd3 [usage] Ignore running instances before August 2022 2022-09-08 13:35:23 +02:00
Sven Efftinge
a2ee46bba7 [usage] make tests robust
... against parallel DB changes
2022-09-08 12:31:23 +02:00
Milan Pavlik
cd087fe9f0 [usage] Instantiate now after we've collected all usage data 2022-09-08 11:01:23 +02:00
Milan Pavlik
e937ca78e8 [usage] Remove old controller & report generator 2022-09-08 09:56:23 +02:00
Sven Efftinge
5e72785abc [usage] remove ListBilledUsage API 2022-09-08 08:54:23 +02:00
Sven Efftinge
249a563c48 [dashboard] Use new usage API for team-usage 2022-09-07 19:00:22 +02:00
Sven Efftinge
1fe5162c9f [usage] store more data for in usage entry 2022-09-07 17:10:22 +02:00
Milan Pavlik
52279b12ab [billing] Implement ReconcileInvoices 2022-09-07 14:34:22 +02:00
Milan Pavlik
de49aa319b [billing] Trigger ReconcileInvoices in ledger reconciler 2022-09-07 13:42:22 +02:00
Milan Pavlik
9cd730ebdb [billing] Implement FinalizeInvoice with usage ledger 2022-09-07 12:46:22 +02:00