Anton Kosyakov
f44e55976e
[fga] migrate workspace relationships ( #18459 )
...
Co-authored-by: geropl <gero@gitpod.io>
2023-08-09 16:50:36 +02:00
Sven Efftinge
7e2b0efda3
[typeorm] increase/monitor connection pool ( #18457 )
2023-08-08 15:22:34 +02:00
Sven Efftinge
667bd2f005
[usage] add optional UserID to filter usage ( #18449 )
2023-08-08 07:46:33 +02:00
Gero Posmyk-Leinemann
0d36c68390
[fga] Workspace: create, get, stop and delete ( #18403 )
...
* [server] Cleanup to make tests pass
* [server] Introduce WorkspaceService with:
- createWorkspace
- getWorkspace
- stopWorkspace
- deleteWorkspace
- hardDeleteWorkspace
* add log info
* fix after rebase
* review comments
* address review comment: system user
2023-08-04 21:48:29 +08:00
Anton Kosyakov
b3ae12f956
git real time ( #18323 )
2023-08-03 20:51:28 +08:00
Sven Efftinge
8a8b148321
[server] make first user owner ( #18417 )
2023-08-03 16:31:28 +08:00
Alex Tugarev
436130bf26
Fix listeners leaks – EXP-206 ( #18321 )
...
* [server] fix leaking prebuild update listeners
- check for client be defined in gitpod-server-impl
- add prebuild subscribers only if the thing is not disposed yet
- this might have happened frequently on very short living workspacePageClose events
* [server] fix metric registration
don't override default registry, which breaks other metrics.
* fixup for getMetricsAsArray
* [server] bump prom-client
2023-08-02 18:28:27 +08:00
Sven Efftinge
3d790a8cf6
[server] enhanced mocha setups ( #18390 )
2023-08-02 17:05:27 +08:00
Alex Tugarev
29ace4982b
[server] Remove obsolete (Theia) User Storage Resource ( #18377 )
...
* [server] Remove obsolete (Theia) User Storage Resource
* more cleanup
2023-08-01 15:48:26 +08:00
Sven Efftinge
d2b220f11c
[server] remove Project.userId ( #18391 )
...
We no longer support user-owned projects.
This removes related leftovers.
2023-07-31 21:27:26 +08:00
Manuel Alejandro de Brito Fontes
61f89f8436
Update go modules ( #18372 )
2023-07-28 16:20:30 +08:00
Manuel Alejandro de Brito Fontes
54c2040632
Update go modules to 1.20 ( #18360 )
2023-07-27 22:24:29 +08:00
Sven Efftinge
cae2dcc723
[server] make user a resource ( #18312 )
2023-07-26 16:25:43 +08:00
Milan Pavlik
66df7ffb04
[db] Move redis publisher to gitpod-db WEB-621 ( #18275 )
...
* [db] Move redis publisher to gitpod-db
* Fix
* fix
2023-07-25 19:24:41 +08:00
Sven Efftinge
78e607d26b
[server] bump js target ( #18334 )
2023-07-25 16:50:41 +08:00
Milan Pavlik
bd9c0de53f
[gitpod-db] Include redis client to share WEB-621 ( #18264 )
...
* [gitpod-db] Include redis client to share
* fix
* fix
* fix
2023-07-25 15:47:41 +08:00
Sven Efftinge
98aff7f782
[server] clean up DB tests ( #18333 )
2023-07-25 02:38:40 +08:00
Sven Efftinge
4a55b1ecbb
[server] improved testing infrastructure ( #18183 )
2023-07-07 16:29:23 +08:00
Manuel Alejandro de Brito Fontes
216f5a4b5d
Address registry-facade dependency issues ( #18145 )
...
* Update IPFS libraries references
* Update go modules
2023-07-07 14:26:24 +08:00
Sven Efftinge
075e14c47f
[build] enabled some eslint rules ( #18165 )
2023-07-04 22:32:21 +08:00
Sven Efftinge
3f86e66f14
[server] reduce build time ( #18160 )
...
* [server] reduce build time
Include the db tests in the regular `yarn test` script.
Also remove `prepare` as it would duplicate the build.
* [build] remove `prepare`task
it makes the our build run `yarn clean && yarn build` twice per packge.
2023-07-04 21:00:21 +08:00
Sven Efftinge
d7aa23ed03
[server, ws-bridge, protocol, db] added eslint ( #18147 )
2023-07-04 20:21:21 +08:00
Manuel Alejandro de Brito Fontes
57c605ddc4
Cleanup scrubber go module dependency ( #18149 )
2023-07-04 16:37:21 +08:00
Sven Efftinge
97c3272764
[server] Org service does member handling ( #18125 )
...
* [server] Org service does member handling
* [db] allow cross-dao transactions
2023-07-04 00:13:20 +08:00
Sven Efftinge
0aff5b1c77
[server] perm-check and test project service ( #18111 )
2023-07-03 23:34:20 +08:00
Gero Posmyk-Leinemann
cc52d25280
Upgrade yarn packages ( #18128 )
...
* [ts] Pin mimimatch and minimist
* [server] Update minio
* [ts] Remove superfluous node-pre-gyp dep
* [ts] Pin jsonwebtoken to 9.0.0
* [grpc] Update grpc-toolsis
* [ts] Upgrade from mocha-typescript to @testdeck/mocha
* fix rimraf
2023-07-03 14:47:19 +08:00
Milan Pavlik
2933eeef54
Upgrade ts-node to 10.4 WEB-575, WEB-576 ( #18102 )
...
* Upgrade ts-node to 10.4
* [server] Make typings work in workspace AND leeway
* [leeway] Increase node heap size to 8GB
---------
Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2023-06-30 20:26:48 +08:00
Sven Efftinge
b766c9146e
[server] Use our own error type ( #18113 )
2023-06-30 15:27:48 +08:00
Anton Kosyakov
f580e6bd00
fix SID-285: hook scrubber as logrus formatter ( #17781 )
2023-06-29 17:16:47 +08:00
Sven Efftinge
caf26b812d
[server] remove getUserProjects ( #18093 )
2023-06-29 16:30:47 +08:00
Sven Efftinge
3318ef3563
[db] directly delete code sync resources ( #18053 )
2023-06-26 18:35:50 +08:00
Sven Efftinge
a351360702
[usage] less expensive reconilation ( #18051 )
2023-06-26 18:29:49 +08:00
Sven Efftinge
15db374739
[db] allow nesting transactions ( #18038 )
...
The implementation of a db method should be able to use transactions
when it makes sense without assummptions of whether the code
is called from a running transaction or not.
2023-06-23 21:33:13 +08:00
Milan Pavlik
dd4b30c7c3
[perms] Grant owner/member on role change WEB-505, WEB-507 ( #17993 )
...
* fix
* fix
* fix
* fix
* fix
* fix
* fix?
* fix
* fix
* fix
* fix
* fix
* Fix
* fix
* fix
* fix
* fix
* fix
* fix
* remove migration
* fix
* fix
* fix
* fix
* fix
* fix
* fix
2023-06-23 20:22:13 +08:00
Sven Efftinge
16960334b2
[usage] cleanup after org-only mig ( #18023 )
2023-06-23 20:09:13 +08:00
Sven Efftinge
b72f9ae0fe
[db] some cleanups for db impls ( #18018 )
2023-06-22 19:10:12 +08:00
Milan Pavlik
95e4f5d9e7
[db] Make Team DB transactional ( #18012 )
2023-06-22 17:30:12 +08:00
Sven Efftinge
f44d1bab50
[db] check if table exists before creating ( #18014 )
2023-06-22 16:39:12 +08:00
Sven Efftinge
248a00eaa8
[server] clean up org-only migration code ( #17939 )
2023-06-22 15:03:12 +08:00
Gero Posmyk-Leinemann
909955d2c4
[db, ts] Introduce a generic db.transaction() ( #17980 )
...
* [ts] Upgrade inversify 5.0.1 -> 6.0.1
* [server, db] Introduce TransactionalDB for User, Workspace, Projects
* Fix tests
2023-06-21 16:12:11 +08:00
Sven Efftinge
fb0b7c4980
[usage] compute correct spending limit ( #17947 )
2023-06-20 17:39:10 +08:00
Sven Efftinge
79752d785f
[job] drop job state feature ( #17948 )
2023-06-15 18:52:05 +08:00
Sven Efftinge
20fda4dab5
[usage] restore previous spending Limit ( #17945 )
2023-06-15 16:24:05 +08:00
Sven Efftinge
fb3f55ad51
[db/server] cache the user object using redis ( #17906 )
2023-06-14 13:50:04 +08:00
Sven Efftinge
097d178910
[server] remove user relation from gitpod_token ( #17923 )
2023-06-14 03:53:04 +08:00
Sven Efftinge
2e8e6ac9c3
[gitpod-db] don't leak DBUser ( #17912 )
2023-06-13 16:58:03 +08:00
Milan Pavlik
bf947d1260
[db] Drop sessions table & db - WEB-106 ( #17862 )
...
* retest
* add ws handler
* retest
* fix
* clean up
* [db] Drop sessions table & db
* add comments
2023-06-08 16:32:59 +08:00
Alex Tugarev
c3ffd87a56
[db] fix expensive table check ( #17864 )
2023-06-07 19:47:57 +08:00
Alex Tugarev
0c4be908db
[gitpod-db] Fix tables.ts ( #17841 )
2023-06-07 00:08:57 +08:00
Milan Pavlik
264b57ad72
[db] Add go model for User - WEB-263 ( #17824 )
...
* [db] Add go model for User
* update helper constructor
* fix
* Add identity definition, and reference in User
* fix
* fix
2023-06-06 21:03:57 +08:00