refactor: sync workspace removal to main #40

Merged
xiaoxia merged 92 commits from develop into main 2026-06-27 00:51:52 +08:00
Owner

变更内容

将 workspace 移除的架构变更同步到 main 分支。

架构变更

旧架构: User → Workspace → Project
新架构: User → Project

主要变更

  • 移除 Workspace/WorkspaceMember/WorkspaceInvitation 实体
  • Project 现在直接关联 owner_user_id 和 shared_users
  • 订阅/配额迁移到 User 级别

注意事项

⚠️ 此 PR 包含大量 commit (631个),建议使用 squash merge

变更类型

  • 重构

测试情况

  • CI 在 develop 分支已通过
  • 需要在 main 合并后重新验证

相关 Issue

关闭 PR #18 (#18),该 PR 基于旧版 main 已过时。

## 变更内容 将 workspace 移除的架构变更同步到 main 分支。 ### 架构变更 ``` 旧架构: User → Workspace → Project 新架构: User → Project ``` ### 主要变更 - 移除 Workspace/WorkspaceMember/WorkspaceInvitation 实体 - Project 现在直接关联 owner_user_id 和 shared_users - 订阅/配额迁移到 User 级别 ### 注意事项 ⚠️ 此 PR 包含大量 commit (631个),建议使用 squash merge ## 变更类型 - [x] 重构 ## 测试情况 - [x] CI 在 develop 分支已通过 - [ ] 需要在 main 合并后重新验证 ## 相关 Issue 关闭 PR #18 (#18),该 PR 基于旧版 main 已过时。
xiaoxia added 88 commits 2026-06-27 00:44:41 +08:00
merge: release V21 UI and core E2E hardening
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 26s
Tests / test (push) Successful in 18s
Tests / lint (push) Successful in 10s
Deploy / Deploy Staging (push) Has been skipped
Deploy / Build Production Runtime Images (push) Successful in 9m52s
Deploy / Deploy Production (push) Successful in 24s
Deploy / Production Browser E2E (push) Failing after 58s
31c0f23297
Merge develop into main through protected Gitea PR flow.
fix(ci): pass production API base to E2E
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 23s
Tests / test (push) Successful in 17s
Tests / lint (push) Successful in 10s
Deploy / Deploy Staging (push) Has been skipped
Deploy / Build Production Runtime Images (push) Successful in 9m40s
Deploy / Deploy Production (push) Successful in 23s
Deploy / Production Browser E2E (push) Failing after 32s
b914f55b7d
Merge production E2E API base hotfix.
test(web): scope generation approval assertion
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 26s
Tests / test (push) Successful in 16s
Tests / lint (push) Successful in 11s
Deploy / Deploy Staging (push) Has been skipped
Deploy / Build Production Runtime Images (push) Successful in 9m43s
Deploy / Deploy Production (push) Successful in 23s
Deploy / Production Browser E2E (push) Failing after 36s
2f9a1a42f5
Merge production E2E assertion hotfix.
test(web): target generation approval pill
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 26s
Tests / test (push) Successful in 17s
Tests / lint (push) Successful in 10s
Deploy / Deploy Staging (push) Has been skipped
Deploy / Build Production Runtime Images (push) Successful in 10m16s
Deploy / Deploy Production (push) Successful in 23s
Deploy / Production Browser E2E (push) Successful in 36s
06857d0a0d
Merge generation approval pill hotfix.
Merge pull request 'feat(web): complete V21 UI redesign' (#6) from develop into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 24s
Tests / test (push) Successful in 15s
Tests / lint (push) Successful in 8s
Deploy / Deploy Staging (push) Has been skipped
Deploy / Build Production Runtime Images (push) Failing after 29s
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
a31145950f
fix(security): P0 - 日志过滤敏感参数(token/password/secret等)
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m0s
Tests / test (pull_request) Failing after 1m0s
Tests / lint (pull_request) Failing after 1m0s
e58293a51f
feat(ui): V21 design system overhaul
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1m0s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m0s
Tests / test (pull_request) Failing after 1m0s
Tests / lint (pull_request) Failing after 1m0s
cae16d547e
fix: resolve CI check failures - format code and add nosec comment
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m0s
Tests / lint (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 1m0s
950f63bb69
fix: resolve CI check failures - format code and add nosec comment
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
071f0e990e
fix: resolve CI check failures - format code and fix line length issues
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
3d29dc0c83
fix: resolve CI check failures - format code and fix line length issues
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 1m0s
a4f721528e
ci: enable auto-deploy for feature branches
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
a0f8540a09
Merge pull request 'ci: enable auto-deploy for feature branches' (#10) from ci/enable-feature-deploy into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / lint (push) Has been cancelled
a717dd17c8
Merge pull request 'fix(security): P0 - JWT密钥强制环境变量 + 日志敏感信息过滤' (#8) from fix/security-p0-jwt-logging into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / lint (push) Has been cancelled
f34f654a84
Merge pull request 'feat(ui): V21 design system overhaul' (#9) from feature/v21-design-system into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / lint (push) Has been cancelled
53055afa43
fix(p1): resolve 4 P1 technical debt issues
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
7fa327aa27
- P1-1: CORS configuration security - use DEBUG mode to differentiate
  production vs development CORS settings
- P1-2: Implement token refresh logic in RefreshTokenUseCase
  - Add get_session_by_refresh_token to SessionStore
  - Verify session validity and expiry
  - Generate new access token on refresh
- P1-3: Fix database connection leak in worker ingest task
  - Add proper try-except-finally block
  - Ensure db.close() is always called
- P1-4: Implement real media metadata extraction
  - Use ffprobe for video metadata
  - Use Pillow for image metadata
  - Return empty dict on failure (no mock data)
Merge pull request 'fix(p1): 修复 4 个 P1 技术债务问题' (#11) from fix/p1-technical-debt into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 0s
13113f50c5
chore: update .gitignore for temp files
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
55d2b25f08
Merge pull request 'chore: 清理仓库 - 删除过时文件和已合并分支' (#13) from chore/repo-cleanup into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
Tests / lint (push) Failing after 0s
Tests / test (push) Failing after 1m0s
3c54dcbef4
P3-5: 添加 tests/integration/test_auth.py 认证集成测试
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 30s
b300f66630
fix(ci): remove container field to run on host directly
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
8575ee772f
Merge pull request 'fix: 移除 CI container 配置,直接在 host 运行' (#16) from fix/ci-remove-container into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
Tests / lint (push) Failing after 0s
Tests / test (push) Failing after 1m0s
c393c38d89
Merge pull request 'chore: 修复 P2/P3 技术债务' (#15) from fix/p2p3-tech-debt-v2 into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 0s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 1m0s
f2fe27eda6
fix(deploy): use ubuntu-latest runner label
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 0s
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 16m40s
1ba3543fa0
Merge pull request 'fix: 部署workflow使用ubuntu-latest runner label' (#17) from fix/deploy-runner-label into main
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 0s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 0s
42c543917e
chore: trigger CI/Deploy pipeline test
Tests / test (push) Failing after 1s
Tests / lint (push) Failing after 1s
CI/CD Pipeline / Frontend Lint (push) Failing after 0s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1m30s
dbf2092e89
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
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
chore: remove redundant .github/workflows (using Gitea Actions)
CI/CD Pipeline / Frontend Lint (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 0s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
c96ac31132
xiaoxia reviewed 2026-06-27 00:48:55 +08:00
xiaoxia left a comment
Author
Owner

LGTM

LGTM
xiaoxia added 4 commits 2026-06-27 00:51:02 +08:00
feat: add auto-merge scripts and CI failure notification
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
d6a30bd4eb
- Auto merge script for PRs targeting develop/main
- CI failure check script
- Gitea Actions workflow for scheduled auto-merge
- Cron jobs for periodic execution
fix: update default APP_VERSION to 0.1.61
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
c0f6c148a3
Merge pull request 'docs: add release process and update git workflow' (#39) from chore/unify-ci-runners into develop
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
34f6a6cde9
xiaoxia merged commit f9675f95df into main 2026-06-27 00:51:52 +08:00
Sign in to join this conversation.