Skip to content

The open alternative to Salesforce, designed for AI.

Upgrade to 1.0.9 PDL app (#23172)

Paul Rastoin9043ab30911b
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-23/2-23-workspace-command-1784565137000-upgrade-people-data-labs-application.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-23/2-23-workspace-command-1784565137000-upgrade-people-data-labs-application.command.ts
index e740a72739d..ce6411397ff 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/2-23/2-23-workspace-command-1784565137000-upgrade-people-data-labs-application.command.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-23/2-23-workspace-command-1784565137000-upgrade-people-data-labs-application.command.ts
@@ -17,23 +17,15 @@ const PEOPLE_DATA_LABS_APPLICATION_UNIVERSAL_IDENTIFIER =
'4a1178c1-3535-4a47-b592-231d3216b36f';
// First version whose views pin the re-derived name-free system relation
-// field universal identifiers, published ahead of the 2.23 release.
-const PEOPLE_DATA_LABS_TARGET_VERSION = '1.0.7';
-
-// The people-data-labs views reference the person/company forward system
-// relation fields (noteTargets/taskTargets/attachments/timelineActivities) by
-// universal identifier. The 2.23 reconcile command re-derives those
-// identifiers name-free, so installed versions <= 1.0.6 hold dangling
-// references and any re-sync of the stored manifest would fail. Upgrading the
-// app right after the backfill closes that desync window. The command pins
-// the target version rather than resolving latest, so the upgrade is
-// deterministic and idempotent; workspaces already at or above it are left
-// untouched.
+// field universal identifiers (introduced in 1.0.7) AND whose front components
+// bundle React 19 to match the twenty-sdk runtime (fixed in 1.0.9).
+const PEOPLE_DATA_LABS_TARGET_VERSION = '1.0.9';
+
@RegisteredWorkspaceCommand('2.23.0', 1784565137000)
@Command({
name: 'upgrade:2-23:upgrade-people-data-labs-application',
description:
- 'Upgrade the people-data-labs application to 1.0.7 right after the system relation field universal identifier backfill, so its views reference the re-derived name-free identifiers instead of the stale pre-2.23 ones. Workspaces already at or above 1.0.7 are left untouched.',
+ 'Upgrade the people-data-labs application to 1.0.9 right after the system relation field universal identifier backfill, so its views reference the re-derived name-free identifiers instead of the stale pre-2.23 ones and its front components run on React 19. Workspaces already at or above 1.0.9 are left untouched.',
})
export class UpgradePeopleDataLabsApplicationCommand extends ProvisionedWorkspaceCommandRunner {
constructor(
@@ -95,7 +87,7 @@ export class UpgradePeopleDataLabsApplicationCommand extends ProvisionedWorkspac
appRegistrationId: applicationRegistration.id,
targetVersion: PEOPLE_DATA_LABS_TARGET_VERSION,
workspaceId,
- // 1.0.7 pins engines.twenty >=2.23.0, but this command runs as part of
+ // 1.0.9 pins engines.twenty >=2.23.0, but this command runs as part of
// the 2.23 workspace upgrade itself, so the workspace has not yet been
// marked as completing 2.23 and the compatibility check would reject
// the install. The server is already on 2.23, so skip the check here.