refactor: Remove workspace concept - Projects directly under User #18

Closed
xiaoxia wants to merge 440 commits from refactor/remove-workspace into main
Owner

This PR removes the Workspace concept. Architecture change: User -> Workspace -> Project becomes User -> Project. Key changes: Removed Workspace/WorkspaceMember/WorkspaceInvitation entities, Project now has owner_user_id and shared_users, subscription/quota moved to User level.

This PR removes the Workspace concept. Architecture change: User -> Workspace -> Project becomes User -> Project. Key changes: Removed Workspace/WorkspaceMember/WorkspaceInvitation entities, Project now has owner_user_id and shared_users, subscription/quota moved to User level.
xiaoxia added 1 commit 2026-06-26 19:17:26 +08:00
refactor: Remove workspace concept - Projects now directly under User
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m1s
Tests / test (pull_request) Failing after 1m0s
Tests / lint (pull_request) Failing after 1m0s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 16m46s
c5f8c50872
BREAKING CHANGES:
- Removed Workspace, WorkspaceMember, WorkspaceInvitation entities
- Project now has owner_user_id instead of workspace_id
- Added shared_users list to Project for collaboration
- Subscription/quota moved from Workspace to User level

Changes:
- packages/domain/entities.py: Removed Workspace entities, updated Project
- packages/adapters/sqlalchemy_impl/models.py: Updated models
- packages/application/: Removed workspace use cases, updated other use cases
- packages/ports/: Removed workspace repository interfaces
- apps/api/: Updated routes, schemas, dependencies, router
- alembic/versions/007_remove_workspace_concept.py: Database migration

New APIs:
- POST /projects/{id}/share: Share project with user
- DELETE /projects/{id}/share/{user_id}: Unshare project
xiaoxia added 1 commit 2026-06-26 19:55:08 +08:00
fix: replace GitHub Actions checkout with Gitea API download in ci-cd.yml
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 2s
Tests / lint (pull_request) Failing after 1m0s
692743d61d
- validate job: add container xiaoxia-ci-python:3.12, use shell-based checkout via Gitea API
- frontend-lint job: remove container, use docker run with local images instead
- All steps converted to shell: sh to avoid uses: actions/* dependencies

Fixes CI timeout on private runner unable to access GitHub Actions marketplace
xiaoxia closed this pull request 2026-06-27 00:41:36 +08:00
Some checks are pending
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 2s
Tests / lint (pull_request) Failing after 1m0s
CI/CD Pipeline / CI Gate (pull_request)
Required

Pull request closed

Sign in to join this conversation.