Remove the object-metadata-repository injection layer (#24801)
## What
The last legacy data-access layer: `object-metadata-repository` was the
pre-v1 repository injection system
(`ObjectMetadataRepositoryModule.forFeature`,
`@InjectObjectMetadataRepository`, and the metadata-to-repository
mapping). It was down to providing exactly two classes,
`BlocklistRepository` and `TimelineActivityRepository`, and both already
run entirely on `WorkspaceOrmManager` internally, so the layer was pure
dependency-injection ceremony.
- The two repositories become plain providers of the feature modules
that use them (blocklist validation, calendar import, the three
messaging drivers, timeline), injected directly by class.
- `src/engine/object-metadata-repository/` is deleted.
- `WorkspaceSchemaService.executeRawQuery` goes with it: it has been a
throw-only stub ("method not allowed as permissions are not handled at
datasource level") with zero callers, kept alive only by this layer's
era. The schema service keeps its real job, creating and deleting
workspace schemas.
With this, workspace data access has exactly one entry point: the
workspace ORM manager.
## Verification
- `tsgo --noEmit` clean, `oxlint --type-aware` and `oxfmt --check src/`
clean
- Blocklist, timeline, calendar-import, messaging-import and
schema-service suites pass (70 suites, 340 tests)
- Grep gate: no reference to the subsystem remains
- No committed upgrade command is touched
<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/twentyhq/twenty/pull/24801?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
b896e8d7354705c3696d094a78e692da7e36d609
Parent: eb4a197
Committed by GitHub <noreply@github.com>
on 8/25/2026, 9:17:13 PM