3526 Commits

Author SHA1 Message Date
Milan Pavlik
8b88f26cb6 [usage] Use workspace class when computing credits used 2022-06-30 20:41:38 +05:30
Gero Posmyk-Leinemann
2cb9ed7150 [server] Tone down "Bearer auth error" 2022-06-30 19:51:38 +05:30
Gero Posmyk-Leinemann
d3b2239398 [server] Tone down "found more than one active token" 2022-06-30 19:51:38 +05:30
Gero Posmyk-Leinemann
1450e1a9b5 [server] Reduce bytes logged around incremental prebuilds 2022-06-30 19:51:38 +05:30
André Duarte
5b22357e73 Update "Inactive Workspaces" description copy 2022-06-30 19:04:39 +05:30
André Duarte
578bbaeb06 Clarify meaning of "Inactive Workspaces" 2022-06-30 19:04:39 +05:30
Milan Pavlik
e6602f7ffa [usage] Refactor server start into a function, specify config 2022-06-30 17:58:39 +05:30
Milan Pavlik
7c567bfa19 [usage] Refactor credit calculation into a WorkspacePricer 2022-06-30 17:30:38 +05:30
Milan Pavlik
70150e2893 [usage] Add WorkspaceClass field to WorkspaceInstance model (in go) 2022-06-30 17:19:38 +05:30
Gero Posmyk-Leinemann
564a6923c9 [bridge] Remove timeout for 'stopping', as that is responsibility of ws-manager 2022-06-30 17:08:38 +05:30
Gero Posmyk-Leinemann
52a42c3d6e [bridge] Move MetaInstanceController into Bridge.controlInstances 2022-06-30 17:08:38 +05:30
Sven Efftinge
663e22a550 [server] store cancel reason 2022-06-30 12:01:38 +05:30
Sven Efftinge
ba78bd4d08 [server] abort running prebuilds on same branch 2022-06-30 11:40:38 +05:30
Gero Posmyk-Leinemann
3133297106 [dashboard] Fix PrebuildLogs layout 2022-06-29 23:47:38 +05:30
Gero Posmyk-Leinemann
d873fe78bc [server] Guard prebuild-related APIs with GuardedPrebuild resource 2022-06-29 23:47:38 +05:30
Laurie T. Malau
59bb214a25 use prebuildlogs instead 2022-06-29 23:47:38 +05:30
Andrea Falzetti
1e256ee345 chore(dashboard): adjust prebuild table col width 2022-06-29 19:11:38 +05:30
Milan Pavlik
3cd0cf270d [usage] Ensure controlle ticks are not concurrent 2022-06-29 16:44:37 +05:30
Milan Pavlik
b5afbce0cc [usage] Expose metrics for reconciles started and duration 2022-06-29 16:12:37 +05:30
Jan Keromnes
1c72fca51a [server] When a team enables usage-based billing, automatically re-attribute member usage to that team when the member has no explicit 'usageAttributionId' yet 2022-06-29 15:10:37 +05:30
Jan Keromnes
b730785677 [server] When a user attributes all their usage to a team, but then leaves that team, reset their selected 'usageAttributionId' 2022-06-29 15:10:37 +05:30
Jan Keromnes
2afad515b2 [server] When a user with no explicit 'usageAttributionId' joins a team with usage-based billing enabled, automatically re-attribute usage to that team 2022-06-29 15:10:37 +05:30
akosyakov
bd5d3ea95b [jb] fix #10694: respect GW user settings 2022-06-29 14:21:37 +05:30
Gero Posmyk-Leinemann
097abd8179 [server] Align workspaceLog access semantics 2022-06-29 13:17:37 +05:30
Gero Posmyk-Leinemann
5e212889ca [server] Introduce GuardedPrebuild and allow access akin to WorkspaceLog/Snapshots 2022-06-29 13:17:37 +05:30
Jan Keromnes
d96dedc188 [gitpod-db] Drop deprecated 'attributedTeamId' column from workspace instances 2022-06-29 12:59:37 +05:30
Anton Kosyakov
a26a9bc414 [jb] add track for sent closed heartbeat 2022-06-29 12:11:37 +05:30
Manuel Alejandro de Brito Fontes
65384dbc13 [supervisor] Check if git repository is shallow before running --unshallow 2022-06-29 10:03:37 +05:30
Manuel Alejandro de Brito Fontes
6ee9b23ed4 [supervisor] Remove common warnings 2022-06-29 09:21:37 +05:30
Pavel Tumik
b81c3d60be [content-service] change log message from Warn to Debug 2022-06-29 02:00:37 +05:30
Thomas Schubart
637f360b70 [supervisor] Use workspace info 2022-06-28 22:45:37 +05:30
Thomas Schubart
da3de1691e [workspacekit] Expose workspace info 2022-06-28 22:45:37 +05:30
Thomas Schubart
38c8b23435 [ws-daemon] Implement workspace info endpoint 2022-06-28 22:45:37 +05:30
Thomas Schubart
cb844f1916 [common] Introduce cgroup library 2022-06-28 22:45:37 +05:30
Thomas Schubart
9467431217 [daemon-api] Add workspace info endpoint 2022-06-28 22:45:37 +05:30
Jan Keromnes
1945d6ca22 [server] When deleting a team with an active usage-based subscription, also cancel the subscription 2022-06-28 21:37:37 +05:30
Milan Pavlik
2e7d2ef5ab [usage] Use attribution ID to reduce DB queries for usage report 2022-06-28 21:23:37 +05:30
Jan Keromnes
9593feff8b [server] Allow team members (non-owners) to read the team's usage-based subscription ID 2022-06-28 21:19:37 +05:30
Gero Posmyk-Leinemann
2ab9b97e31 [server] Minor Refactor for RepositoryResourceGuard 2022-06-28 20:28:37 +05:30
Gero Posmyk-Leinemann
67b73c29c2 [server] Minodr adjustment of requested resource kinds 2022-06-28 20:28:37 +05:30
Gero Posmyk-Leinemann
6d015197b5 [server] Add tests for workspace-like GuardedResources 2022-06-28 20:28:37 +05:30
Manuel Alejandro de Brito Fontes
9c8ccc08f2 Update docker compose to v2.6.1 2022-06-28 19:42:37 +05:30
Pudong Zheng
1361d22be5 [ssh-gateway] add track for send closed heartbeat 2022-06-28 19:09:38 +05:30
Pudong Zheng
3522b7b3cd [ssh-gateway] only send heartbeat when it explicitly request pty 2022-06-28 19:09:38 +05:30
Milan Pavlik
247205ccd0 [usage] Fix flakes by deleting records created by each test, not deleting all 2022-06-28 18:56:37 +05:30
mustard
490419b99d [supervisor-frontend] add track for sent closed heartbeat 2022-06-28 18:35:36 +05:30
JenTing Hsiao
3da5e35c31 [ws-manager] enable the volume snapshot controller when the VolumeSnapshot CRD exists
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-28 16:53:37 +05:30
Milan Pavlik
b0170eca47 [usage] Add usageAttributionID to WorksapceInstance model (in go) 2022-06-28 15:17:36 +05:30
Gero Posmyk-Leinemann
77dc995452 [licensor] Make LicensePayload.CustomerID omitEmpty 2022-06-28 13:07:37 +05:30
Jan Keromnes
6afe081713 [dashboard] When usage-based billing is enabled, allow users to specify a 'billing account' to attribute all their usage to 2022-06-27 19:41:36 +05:30