当前 feat-overseas-user-migration worktree 已经完成海外用户迁移主链路实现,并补齐了:
本计划的目标不是继续扩功能,而是把当前能力收口到“可交付、可审阅、可部署”的状态。
以下能力已经通过真实测试验证:
go test ./service/user_migration/... -vgo test ./controller -run "Test.*Migration|Test.*Synced" -vgo test ./model -run "Test.*Migration|Test.*Synced" -vgo test ./router -run "TestUserMigrationRoutes" -vgo test -v ./test/e2e -count=1cd web && bunx playwright test e2e/user-migration.spec.tspowershell -NoProfile -ExecutionPolicy Bypass -File scripts/run-user-migration-e2e.ps1 -All这些验证已经覆盖:
把当前 worktree 收敛为:
当前与迁移主线无强耦合、但会影响审阅质量的内容:
web/src/i18n/locales/en.jsonweb/src/pages/Setting/Ratio/ModelRationNotSetEditor.jsx目标:
bun run build 继续通过新增一份文档,明确:
建议文件:
docs/testing/user-migration-test-matrix.md建议把当前 worktree 的改动按下面 3 组看待:
model/*migration*service/user_migration/*controller/internal_user_migration*controller/user_migration*router/user_migration_router_test.goweb/src/components/table/users/migration/*web/src/hooks/users/useUserMigrationData.jsxweb/src/pages/User/index.jsxweb/e2e/*web/playwright.config.tstest/e2e/*scripts/run-user-migration-e2e.ps1docs/testing/*在准备提交前至少再次执行:
go test ./service/user_migration/... -v
go test ./controller -run "Test.*Migration|Test.*Synced" -v
go test ./model -run "Test.*Migration|Test.*Synced" -v
go test ./router -run "TestUserMigrationRoutes" -v
go test -v ./test/e2e -count=1
cd web && bun run build
cd web && bunx playwright test e2e/user-migration.spec.ts
en.json 和 ModelRationNotSetEditor.jsxgit diff --stat只有同时满足以下条件,才算本轮迁移能力真正收尾: