[CHORE] Enable workspace version validation on upgrade for next release (#11211)

# Introduction
- Activate workspace version validation on upgrade command
- Update upgrade command to manager next release starting from `0.44.0`
This commit is contained in:
Paul Rastoin
2025-03-26 21:47:39 +01:00
committed by GitHub
parent 5bd10d40cb
commit 870069f682
3 changed files with 6 additions and 18 deletions

View File

@ -31,7 +31,7 @@ type VersionCommands = {
description: 'Upgrade workspaces to the latest version',
})
export class UpgradeCommand extends UpgradeCommandRunner {
fromWorkspaceVersion = new SemVer('0.43.0');
fromWorkspaceVersion = new SemVer('0.44.0');
private commands: VersionCommands;
constructor(
@ -74,19 +74,19 @@ export class UpgradeCommand extends UpgradeCommandRunner {
this.addTasksAssignedToMeViewCommand,
],
};
const commands_044: VersionCommands = {
const _commands_044: VersionCommands = {
beforeSyncMetadata: [
this.initializePermissionsCommand,
this.updateViewAggregateOperationsCommand,
],
afterSyncMetadata: [],
};
const _commands_050: VersionCommands = {
const commands_050: VersionCommands = {
beforeSyncMetadata: [this.migrateRelationsToFieldMetadataCommand],
afterSyncMetadata: [],
};
this.commands = commands_044;
this.commands = commands_050;
}
override async runBeforeSyncMetadata(args: RunOnWorkspaceArgs) {