Commit Graph

248 Commits

Author SHA1 Message Date
Gergő Jedlicska 1c19f67dd2 feat(models): support streamId, branchId in models 2024-11-11 06:09:53 +01:00
Alessandro Magionami 7fb3a97ee5 chore(multiregion): initial work for models, versions and objects 2024-11-08 17:42:11 +01:00
Alessandro Magionami 2ad6b02db9 chore(multiregion): fix project resolver 2024-11-08 17:41:34 +01:00
Gergő Jedlicska 73cc7e67d3 gergo/webhookRegions (#3459)
* feat(webhooks): multi region webhook resolver

* feat(webhooks): multi region webhook cleanup

* fix(webhooks): DI fixes

* feat(activitystream): region aware save activity

* feat(accessrequests): multi region

* feat(cli): allow multi region project and commit download

* feat(postgres): make docker postgres 0 day multi region ready

* feat(cli): allow multi region project and commit download properly

* fix(cross-server-sync): di fix

* feat(activitystream): non region aware activities, they are not project data

* fix(webhooks): triggers need to be included

* feat(stream/projectCreate): activity save is not needed any more, its all event based

* feat(multiRegion): get all registered db clients

* fix(regions): test equal in any order

* fix(projectDownload): need to await
2024-11-08 10:45:39 +01:00
Alessandro Magionami 1acc6fde66 Alessandro/web 2107 projects crud operation in regions (#3446)
* chore(multiregion): project and project delete resolvers

* chore(multiregion): project update resolvers
2024-11-06 21:36:45 +01:00
Gergő Jedlicska f210d9b749 gergo/web 2109 project region based db connection selector (#3434)
* feat(projects): add project regions, default to null

* feat(multiregion): add projectRegion Db client lookup logic

* feat(multiregion): add project region repositories and caching

* feat(multiRegion): db initialization and get project db client

* feat(docker-compose): add second db for regions testing

* feat(multiRegion): initialize region with pubs and subs working

* fix(multiRegion): get region client even if it was registered in another pod

* feat(workspaces): create workspace resolver split

* feat: update server region metadata

* feat(projects): rewrite project creation

* feat(multiRegion): getRegionDb

* fix(workspaces): get projects now can retur null

* feat(multiRegion): make local multi region DB-s work

* feat: set d efault workspace region

* CR changes

* tests

* feat(multiRegion): bind region properly

* fe update

* test fixes

* feat(multiRegion): automatically create aiven extras plugin

* ci(postgres): use published postgres with aiven extras

* fix(multiRegion): roll back the aiven extras migration, there is a better way

* tests fix

* fix(billing): we do not need to add a seat, if the workspace is on a plan, but has no sub

---------

Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
2024-11-06 17:29:08 +01:00
Kristaps Fabians Geikins 5df716bf1c feat: add & list server regions (#3423)
* WIP create modal

* babababa

* create dialog looks ok

* FE largely there

* workss

* cleanup

* fixed up test plumbing to avoid deadlocks and simplify GQL calls

* test fix

* added all tests

* CI fix
2024-10-31 16:08:50 +01:00
Kristaps Fabians Geikins 9783537ea9 Merge branch 'main' into fabians/quick-js-to-ts-4 2024-10-25 15:19:29 +03:00
Kristaps Fabians Geikins 6cf31becad commitDeleted 2024-10-25 15:16:31 +03:00
Kristaps Fabians Geikins cbbf9b6ad4 commitUpdated 2024-10-25 15:03:15 +03:00
Kristaps Fabians Geikins a3604331c4 commitCreated 2024-10-25 14:21:58 +03:00
Kristaps Fabians Geikins f690f1016a branchDeleted 2024-10-25 13:57:58 +03:00
Kristaps Fabians Geikins 64d2888506 branchUpdated sub 2024-10-25 13:55:26 +03:00
Kristaps Fabians Geikins cedc1beb6c branchCreated sub 2024-10-25 13:50:01 +03:00
Alessandro Magionami f073faf7b0 Merge pull request #3370 from specklesystems/fabians/core-ioc-102
chore(server): core IoC #102 - adminProjectListFactory
2024-10-23 09:34:31 +02:00
Alessandro Magionami 2cf9bee7e4 Merge pull request #3366 from specklesystems/alessandro/web-943-add-branch-deleted-activity
Activitystream IoC 4 addBranchDeletedActivity
2024-10-23 09:33:30 +02:00
Kristaps Fabians Geikins 30371332d3 chore(server): core IoC #102 - adminProjectListFactory 2024-10-22 12:04:35 +03:00
Kristaps Fabians Geikins 049205e0cd chore(server): core IoC #101 - adminInviteListFactory 2024-10-22 11:57:36 +03:00
Kristaps Fabians Geikins 39f83d3e23 chore(server): core IoC #100 - legacyGetPaginatedStreamCommitsFactory rename 2024-10-22 11:41:42 +03:00
Kristaps Fabians Geikins f5213a12b7 chore(server): core IoC #99 - batchDeleteCommitsFactory 2024-10-22 11:39:09 +03:00
Kristaps Fabians Geikins c90521f8d0 Merge pull request #3365 from specklesystems/alessandro/web-943-add-branch-updated-activity
Activitystream IoC 3 addBranchUpdatedActivity
2024-10-22 09:09:56 +01:00
Kristaps Fabians Geikins 88c714392c Merge pull request #3364 from specklesystems/alessandro/web-943-add-branch-created-activity
Activitystream IoC 2 addBranchCreatedActivity
2024-10-22 09:09:30 +01:00
Alessandro Magionami b701a3361c chore(activitystream): addBranchDeletedActivity refactor multiregion 2024-10-22 10:07:24 +02:00
Alessandro Magionami 282af83bd8 chore(activitystream): addBranchUpdatedActivity refactor multiregion 2024-10-22 09:53:36 +02:00
Alessandro Magionami a2e9693a6a chore(activitystream): addBranchCreatedActivity refactor multiregion 2024-10-22 09:52:47 +02:00
Kristaps Fabians Geikins dee1479a7c chore(server): core IoC #95 - getObjectChildrenQueryFactory 2024-10-21 17:21:49 +03:00
Kristaps Fabians Geikins 70897b0b72 optimization 2024-10-18 17:12:16 +03:00
Kristaps Fabians Geikins 7617c94622 chore(server): core IoC #94 - getObjectChildrenFactory 2024-10-18 17:08:09 +03:00
Kristaps Fabians Geikins eea31a2e93 chore(server): core IoC #91 - createObjectsFactory 2024-10-18 16:14:01 +03:00
Kristaps Fabians Geikins c0ab867e05 chore(server): core IoC #87 - getPaginatedStreamBranchesFactory 2024-10-18 16:12:58 +03:00
Kristaps Fabians Geikins 37a7ccf0b3 Merge branch 'main' into fabians/core-ioc-85 2024-10-18 16:12:21 +03:00
Kristaps Fabians Geikins 5016fad919 feat(server): make Project.version query throw if version not found (#3336) 2024-10-18 15:32:58 +03:00
Kristaps Fabians Geikins 8bd5980889 chore(server): core IoC #85 - legacyGetPaginatedStreamCommits 2024-10-17 14:22:10 +03:00
Kristaps Fabians Geikins 98f045662e chore(server): core IoC #84 - legacyGetPaginatedUserCommits(Page|TotalCount)Factory 2024-10-17 14:09:13 +03:00
Kristaps Fabians Geikins afcf1f7c26 chore(server): core IoC #83 - (most) commits resolvers to TS 2024-10-17 13:39:34 +03:00
Kristaps Fabians Geikins 0d2fb7db9b chore(server): core IoC #82 - (most) branches resolvers to TS 2024-10-17 13:24:33 +03:00
Kristaps Fabians Geikins 93d0ffd31b chore(server): core IoC #81 - server resolvers to TS (#3319) 2024-10-17 13:23:06 +03:00
Kristaps Fabians Geikins c18a704542 chore(server): core IoC #80 - getPublicScopesFactory 2024-10-17 12:56:17 +03:00
Kristaps Fabians Geikins fe148fe075 chore(server): core IoC #79 - updateServerInfoFactory 2024-10-17 12:47:49 +03:00
Kristaps Fabians Geikins f27f289dc6 chore(server): core IoC #78 - getServerInfoFactory 2024-10-17 12:37:43 +03:00
Kristaps Fabians Geikins 1d006beb47 chore(server): core IoC #77 - apitoken resolvers to TS 2024-10-16 17:56:46 +03:00
Kristaps Fabians Geikins 8364267cd8 chore(server): core IoC #75 - revokeUserTokenByIdFactory 2024-10-16 17:26:35 +03:00
Kristaps Fabians Geikins f29042ebbb chore(server): core IoC #73 - getUserPersonalAccessTokensFactory 2024-10-16 17:18:13 +03:00
Kristaps Fabians Geikins da88f5925c chore(server): core IoC #72 - createPersonalAccessTokenFactory 2024-10-16 17:13:03 +03:00
Kristaps Fabians Geikins 8abc801bae chore(server): core IoC #71 - createAppTokenFactory 2024-10-16 16:59:54 +03:00
Kristaps Fabians Geikins 2ba9d86908 chore(server): core IoC #70 - createTokenFactory 2024-10-16 16:46:21 +03:00
Kristaps Fabians Geikins f6e4362d8f chore(server): core IoC #69 (nice) - users resolvers to TS 2024-10-16 16:17:40 +03:00
Kristaps Fabians Geikins bc1b3f5325 chore(server): core IoC #68 - getAdminUsersListCollectionFactory 2024-10-16 12:49:54 +03:00
Kristaps Fabians Geikins b2efcdd951 chore(server): core IoC #67 - remaining users repo 2024-10-16 12:10:13 +03:00
Kristaps Fabians Geikins 7350443d06 chore(server): core IoC #65 - adminUserListFactory 2024-10-16 11:36:20 +03:00