Identification cleanup (#17301)

# Introduction

following https://github.com/twentyhq/twenty/pull/17279
As we've finally identified all the syncable metadata entities, which
means they're expected to have non nullable applicationId and
universalIdentifier at pg_level we can remove previous retro comp
universalIdentifier fallbacking and update the dto too

~~This needs IdentifyRemainingEntitiesMetadataCommand and
MakeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullableMigrationCommand
to be run~~
```ts
[Nest] 197  - 01/21/2026, 3:08:35 PM     LOG [MakeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullableMigrationCommand] Successfully run MakeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullableMigrationCommand
```
This commit is contained in:
Paul Rastoin
2026-01-21 17:00:23 +01:00
committed by GitHub
parent 05f0d572e9
commit 6aa43b68f7
38 changed files with 54 additions and 85 deletions
@@ -313,7 +313,7 @@ export class RoleResolver {
createdAt: agentEntity.createdAt.toISOString(),
updatedAt: agentEntity.updatedAt.toISOString(),
deletedAt: agentEntity.deletedAt?.toISOString() ?? null,
universalIdentifier: agentEntity.universalIdentifier ?? agentEntity.id,
universalIdentifier: agentEntity.universalIdentifier,
roleId: role.id,
}),
);
@@ -35,6 +35,6 @@ export const fromFlatRoleToRoleDto = ({
description: description ?? undefined,
icon: icon ?? undefined,
standardId: standardId ?? undefined,
universalIdentifier: universalIdentifier ?? undefined,
universalIdentifier,
};
};