feat(gateway): WorkspaceService + ProjectBootstrapService + TeamsService (P8-015) #183
Reference in New Issue
Block a user
Delete Branch "feat/p8-015-workspaces"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
MOSAIC_ROOTenv var (defaults to/opt/mosaic)repoUrlfor clone-based bootstrapisMember,canAccessProject,findAll,findById,listMembersvia Drizzle queries againstteams/teamMembers/projectstablesPOST /api/workspaces— auth-guarded endpoint that callsProjectBootstrapService.bootstrap()GET /api/teams,/:teamId,/:teamId/members,/:teamId/members/:userIdAppModuleworkspace.service.spec.ts: 5 unit tests forresolvePath(user, team, fallback, MOSAIC_ROOT env, default)Closes #168
Test plan
workspace.service.spec.ts— 5 new tests for path resolution logic