Identify standard objects (#17091)

# Introduction
Followup https://github.com/twentyhq/twenty/pull/16981

1/ Migration, applicationId and universalIdentifier are required on
entity ( save point migration + upgrade command fallback pattern )
2/ Backfill using previous standard ids
This commit is contained in:
Paul Rastoin
2026-01-12 19:06:13 +01:00
committed by GitHub
parent 04a370e043
commit df108ea040
15 changed files with 427 additions and 12 deletions
@@ -18,6 +18,11 @@ export const fromFieldMetadataEntityToFlatFieldMetadata = <
return {
...fieldMetadataWithoutRelations,
// TODO remove once MakeFieldMetadataUniversalIdentifierAndApplicationIdNotNullableMigrationCommand has been run once
universalIdentifier:
fieldMetadataWithoutRelations.universalIdentifier ??
fieldMetadataWithoutRelations.standardId ??
fieldMetadataWithoutRelations.id,
createdAt: fieldMetadataWithoutRelations.createdAt.toISOString(),
updatedAt: fieldMetadataWithoutRelations.updatedAt.toISOString(),
kanbanAggregateOperationViewIds: