refactor(twenty-server): collapse workspace migration build orchestrator (#21144)

## Why

`WorkspaceMigrationBuildOrchestratorService.buildWorkspaceMigration` was
1117 lines of 30 near-identical copy-pasted blocks (one per metadata
entity) plus a 165-line ordered `actions: [...]` literal. Adding a new
entity meant copying ~30 lines and hoping the boilerplate stayed in
sync; the actual per-entity execution order was buried in the noise.


## Gain

- Orchestrator: **1117 → 388 lines**
- Net diff: **-558 lines**
- Adding a new entity is now a single line in the registry
- Execution order is visible at a glance
This commit is contained in:
Charles Bochet
2026-06-02 16:16:10 +02:00
committed by GitHub
parent b422550fcc
commit cb744b2eeb
2 changed files with 420 additions and 966 deletions