Skip to content

The open alternative to Salesforce, designed for AI.

Improve upgrade registry logging for pre-release bundles (#19689)

Paul Rastoin762de40c3dae
diff --git a/packages/twenty-server/src/engine/core-modules/upgrade/services/upgrade-command-registry.service.ts b/packages/twenty-server/src/engine/core-modules/upgrade/services/upgrade-command-registry.service.ts
index ea1dbcc26a6..a46b035dc7e 100644
--- a/packages/twenty-server/src/engine/core-modules/upgrade/services/upgrade-command-registry.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/upgrade/services/upgrade-command-registry.service.ts
@@ -169,8 +169,14 @@ export class UpgradeCommandRegistryService implements OnModuleInit {
bundle.workspaceCommands.length;
if (totalCount > 0) {
+ const crossUpgradeLabel = (
+ TWENTY_CROSS_UPGRADE_SUPPORTED_VERSIONS as readonly string[]
+ ).includes(version)
+ ? 'cross-upgrade supported'
+ : 'pre-release';
+
this.logger.log(
- `Registered ${bundle.fastInstanceCommands.length} fast instance, ${bundle.slowInstanceCommands.length} slow instance, and ${bundle.workspaceCommands.length} workspace command(s) for ${version}`,
+ `Registered ${bundle.fastInstanceCommands.length} fast instance, ${bundle.slowInstanceCommands.length} slow instance, and ${bundle.workspaceCommands.length} workspace command(s) for ${version} (${crossUpgradeLabel})`,
);
}
}