Drop the ignored workspaceId argument from getRepository (#24752)
## What Second of the three PRs splitting #24745 (after #24747). `getRepository(workspaceId, entityOrName, options)` declared its first parameter as `_workspaceId`: the workspace has come from the AsyncLocalStorage context since the v2 cutover, so the argument did nothing. - Remove the parameter from the ORM manager's `getRepository` overloads and implementation (which also drops the internal `as unknown as` cast now that the datasource `getRepository` is generic, from #24747). - Remove the argument from all ~170 call sites. - Remove the `workspaceId` parameters and argument-type properties that existed only to feed it. The removal cascades a few levels into private helpers (chart data, timeline, match-participant, workflow status) and their callers; every step was compiler-driven. - Update the three workflow-tool specs that asserted the removed argument. ## Notes for the guard This retypes calls inside committed upgrade commands (argument removal only, no SQL, timestamp, or up/down logic changes), so the PR carries the `ci:allow-previous-version-upgrade-mutation` label. ## Coming next Once this merges: merge `twenty-orm-v2/` into `twenty-orm/` and drop the v2 suffixes. ## Verification - `tsgo --noEmit` clean, `oxlint --type-aware` clean on the 100 changed files, `oxfmt --check src/` clean - Workflow-tool, match-participant, timeline, workflow-status and chart unit suites pass - Behavior neutral by construction; `server-integration-test` is the end-to-end proof <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/twentyhq/twenty/pull/24752?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
C
Charles Bochet committed
09678161c5e16f40426e7798a9141431a68661df
Parent: 94aa821
Committed by GitHub <noreply@github.com>
on 8/25/2026, 12:58:44 PM