Upgrade to 1.0.9 PDL app (#23172)
<!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/twentyhq/twenty/pull/23172?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. -->
This commit is contained in:
+5
-13
@@ -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';
|
||||
// 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';
|
||||
|
||||
// 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.
|
||||
@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.
|
||||
|
||||
Reference in New Issue
Block a user