Alessandro Magionami
22cdd33325
Merge pull request #3592 from specklesystems/alessandro/web-2233-onboarding-project-create-fails
...
Alessandro/web 2233 onboarding project create fails
2024-12-02 14:49:21 +01:00
Kristaps Fabians Geikins
51579b76ef
fix(server): various fixes related to subs + further improved utils + way quicker tests ( #3573 )
...
* fixed test util throwing + added new tests
* more tests
* more tests
* various model tests
* version tests
* removed shitty old tests
* lint fix
* workspaceProjectsUpdated test
* workspace updated on invite
* workspace subs support team changes
* tests fix
* test fix hopefully?
2024-12-02 13:30:24 +02:00
Alessandro Magionami
f227a9b91d
fix(activitystream): move activity creation after transaction commimt
2024-12-02 12:14:57 +01:00
Iain Sproat
54085d1dd5
fix(logging): taskScheduler should use pino parameters ( #3586 )
...
- log messages were being interpolated at runtime and not using structured logging
2024-11-29 16:46:14 +00:00
Kristaps Fabians Geikins
1800dbbdbd
feat(server): improved subscription testing DX + tests for common subs + new subs ( #3554 )
...
* userProjectsUpdated.added test
* multi region support
* userStreamAdded
* commit subs tested
* fix for proj workspace assignment
* undo commitHelper main changes
* disable all ffs mode
* createTestWorkspace support when workspaces arent enabled
* project create fix
* workspace projects updated subscription
* WIP new workspace sub
* updated workspaceCreated
* updated workspaceUpdated
* BE for workspace updated sub
* workspace updated sub
* ts err fix
2024-11-27 15:41:04 +02:00
Kristaps Fabians Geikins
a9a313ee63
feat(server): cli and cross-server-sync multiregion support ( #3527 )
...
* feat(server): cross-server-sync multiregion ready
* fixed various db commands
* db cli works
* final changes
2024-11-22 19:52:58 +01:00
Kristaps Fabians Geikins
9b5873e4f5
feat(server): SmartTextEditorValue.attachments multiregion support ( #3513 )
2024-11-19 15:58:40 +02:00
Gergő Jedlicska
153b1c3802
feat(version): require project id in version mutations
2024-11-11 09:57:22 +01:00
Alessandro Magionami
23445f91e2
chore(multiregion): add streamId to versions
2024-11-08 17:40:50 +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
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
Gergő Jedlicska
da7f0dda0e
gergo/web 2047 user joins the workspace event ( #3412 )
...
* feat(gatekeeper): add gatekeeper module feature flag
* feat(gatekeeper): add workspace pricing table domain
* feat(gatekeeper): add checkout session creation
* feat(gatekeeper): verify stripe signature
* wip(gatekeeper): checkout callbacks
* feat(gatekeeper): add unlimited and academia plan types
* refactor(envHelper): getStringFromEnv helper
* chore(gatekeeper): add future todos
* feat(gatekeeper): add productId to the subscription domain
* feat(gatekeeper): add in memory repositories
* feat(gatekeeper): add more errors
* feat(gatekeeper): complete checkout session service
* feat(gatekeeper): add stripe client implementation
* feat(gatekeeper): add checkout session completion webhook callback path
* feat(gendo): fix not needing env vars if gendo module is not enabled
* feat(gatekeeper): require a license for billing
* chore(gatekeeper): cleanup before testing
* feat(gatekeeper): subscriptionData parsing model
* ci: add billing integration and gatekeeper modules to test config
* test(gatekeeper): add checkout service tests
* feat(gatekeeper): make completeCheckout callback idempotent properly
* feat(gatekeeper): move to knex based repositories
* test(gatekeeper): billing repository tests
* feat(gatekeeper): add yearly billing cycle toggle
* feat(ci): add stripe integration context to test job
* feat(billingPage): conditionally render the checkout CTAs
* fix(gatekeeper): remove flaky test condition
* feat(helm): add billing integration feature flag
* WIP billing gql api
* feat(gatekeeper): cancel checkout session api
* feat(gatekeeper): handle existing checkout sessions, when trying to create a new one
* feat(gatekeeper): add workspace plans gql api
* feat(gatekeeper): handle cancelation and subscription updates
* fix(gatekeeper): scope initialization
* fix(gatekeeper): eliminate stripe client import sideeffect
* fix(gatekeeper): eliminate stripe client import sideeffect 2
* feat(gatekeeper): upsize subscription on workspace role change
* feat(shared): add command pattern implementation
* refactor(eventBus): remove return capabilities from the event bus
* refactor(workspaces): use new commandFactory in workspace resolver
* feat(core): facelift taskLock
* feat(gatekeeper): shedule subscription downscale
* feat(gatekeeper): manage subscription downscale
* feat(gatekeeper): get workspace subscriptions, that are about to expire
* feat(gatekeeper): manage subscription downscale
* fix(gatekeeper): do not update subscription to canceled subs
* ci: bump postgres and max connections
* feat(workspaces): fix command factory event bugs
2024-10-30 15:51:40 +01:00
Kristaps Fabians Geikins
5c30d4a5ab
Merge pull request #3351 from specklesystems/fabians/sign-up-event-improvements
...
fix(server): more resilient sign up tracking
2024-10-23 10:16:26 +01:00
Alessandro Magionami
f6a87a4898
Merge pull request #3372 from specklesystems/fabians/core-ioc-104
...
chore(server): core IoC #104 - validatePermissionsWriteStreamFactory
2024-10-23 09:58:42 +02:00
Alessandro Magionami
9b5d935ccc
Merge pull request #3371 from specklesystems/fabians/core-ioc-103
...
chore(server): core IoC #103 - validatePermissionsReadStream
2024-10-23 09:58:14 +02: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
284d94f8ca
chore(server): core IoC #104 - validatePermissionsWriteStreamFactory
2024-10-22 12:22:36 +03:00
Kristaps Fabians Geikins
b128d13dbe
chore(server): core IoC #103 - validatePermissionsReadStream
2024-10-22 12:16:04 +03: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
9d90451d1c
chore(server): core IoC #98 - hasObjectsFactory
2024-10-21 17:49:31 +03:00
Kristaps Fabians Geikins
b373e446b3
chore(server): core IoC #97 - getObjectsStreamFactory
2024-10-21 17:49:14 +03:00
Kristaps Fabians Geikins
960fe33f69
chore(server): core IoC #96 - delete getObjects
2024-10-21 17:49:02 +03:00
Kristaps Fabians Geikins
dee1479a7c
chore(server): core IoC #95 - getObjectChildrenQueryFactory
2024-10-21 17:21:49 +03:00
Kristaps Fabians Geikins
e2c886f27e
fix(server): more resilient sign up tracking
2024-10-21 16:20:48 +03:00
Kristaps Fabians Geikins
7617c94622
chore(server): core IoC #94 - getObjectChildrenFactory
2024-10-18 17:08:09 +03:00
Kristaps Fabians Geikins
35ddd6501e
chore(server): core IoC #93 - getObjectChildrenStreamFactory
2024-10-18 16:43:02 +03:00
Kristaps Fabians Geikins
4cf520be06
chore(server): core IoC #92 - getFormattedObjectFactory
2024-10-18 16:14:45 +03:00
Kristaps Fabians Geikins
eea31a2e93
chore(server): core IoC #91 - createObjectsFactory
2024-10-18 16:14:01 +03:00
Kristaps Fabians Geikins
368961c0dd
chore(server): core IoC #90 - createObjectsBatchedAndNoClosuresFactory
2024-10-18 16:13:44 +03:00
Kristaps Fabians Geikins
0b0a3dca87
chore(server): core IoC #89 - createObjectsBatchedFactory
2024-10-18 16:13:25 +03:00
Kristaps Fabians Geikins
486a3857b0
adjusting for stringified json objs
2024-10-18 16:13:15 +03:00
Kristaps Fabians Geikins
f33dcb0849
chore(server): core IoC #88 - createObjectFactory
2024-10-18 16:13:15 +03:00
Kristaps Fabians Geikins
c0ab867e05
chore(server): core IoC #87 - getPaginatedStreamBranchesFactory
2024-10-18 16:12:58 +03:00
Kristaps Fabians Geikins
c35fb98d20
chore(server): core IoC #86 - remaining commits.js service
2024-10-18 16:12:47 +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
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
fe1997b86d
chore(server): core IoC #76 - validateTokenFactory
2024-10-16 17:43:26 +03:00