From b62d1d44b245ec40505295f56bc90a1511d311ea Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Thu, 14 Mar 2024 18:47:16 +0100 Subject: [PATCH] TASK: Update migration docs --- .../Command/MigrateEventsCommandController.php | 12 ++++++------ .../Classes/Service/EventMigrationService.php | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Neos.ContentRepositoryRegistry/Classes/Command/MigrateEventsCommandController.php b/Neos.ContentRepositoryRegistry/Classes/Command/MigrateEventsCommandController.php index 6d33d05c86a..c1dd90ac085 100644 --- a/Neos.ContentRepositoryRegistry/Classes/Command/MigrateEventsCommandController.php +++ b/Neos.ContentRepositoryRegistry/Classes/Command/MigrateEventsCommandController.php @@ -22,7 +22,7 @@ public function __construct( * * Needed for #4322: https://github.com/neos/neos-development-collection/pull/4322 * - * Included in February 2023 - before final Neos 9.0 release + * Included in February 2024 - before final Neos 9.0 release * * @param string $contentRepository Identifier of the Content Repository to migrate */ @@ -34,18 +34,18 @@ public function migratePropertiesToUnsetCommand(string $contentRepository = 'def } /** - * Adds a dummy workspace name to the events meta-data, so it can be replayed. + * Adds a dummy workspace name to the events meta-data, so it can be rebased * * Needed for #4708: https://github.com/neos/neos-development-collection/pull/4708 * - * Included in February 2023 - before final Neos 9.0 release + * Included in March 2024 - before final Neos 9.0 release * - * @param string $contentRepository Identifier of the Content Repository to set up + * @param string $contentRepository Identifier of the Content Repository to migrate */ - public function fillWorkspaceNameInCommandPayloadOfEventMetaDataCommand(string $contentRepository = 'default'): void + public function migrateMetaDataToWorkspaceNameCommand(string $contentRepository = 'default'): void { $contentRepositoryId = ContentRepositoryId::fromString($contentRepository); $eventMigrationService = $this->contentRepositoryRegistry->buildService($contentRepositoryId, $this->eventMigrationServiceFactory); - $eventMigrationService->fillWorkspaceNameInCommandPayloadOfEventMetaData($this->outputLine(...)); + $eventMigrationService->migrateMetaDataToWorkspaceName($this->outputLine(...)); } } diff --git a/Neos.ContentRepositoryRegistry/Classes/Service/EventMigrationService.php b/Neos.ContentRepositoryRegistry/Classes/Service/EventMigrationService.php index ba4cdd9c88e..ac8474a6136 100644 --- a/Neos.ContentRepositoryRegistry/Classes/Service/EventMigrationService.php +++ b/Neos.ContentRepositoryRegistry/Classes/Service/EventMigrationService.php @@ -78,7 +78,7 @@ public function __construct( * * Needed for #4322: https://github.com/neos/neos-development-collection/pull/4322 * - * Included in February 2023 - before final Neos 9.0 release + * Included in February 2024 - before final Neos 9.0 release * * @param \Closure $outputFn * @return void @@ -232,20 +232,20 @@ public function migratePropertiesToUnset(\Closure $outputFn) /** - * Adds a dummy workspace name to the events meta-data, so it can be replayed. + * Adds a dummy workspace name to the events meta-data, so it can be rebased * * The value of the payload for `workspaceName` is only required to successfully instantiate a command by its metadata. * This is only necessary for rebasing where directly override the workspace name to the target one. - * Thus, we simply enter a dummy string "migrated-missing". + * Thus, we simply enter a dummy string "missing:{contentStreamId}". * * Needed for #4708: https://github.com/neos/neos-development-collection/pull/4708 * - * Included in February 2023 - before final Neos 9.0 release + * Included in March 2024 - before final Neos 9.0 release * * @param \Closure $outputFn * @return void */ - public function fillWorkspaceNameInCommandPayloadOfEventMetaData(\Closure $outputFn) + public function migrateMetaDataToWorkspaceName(\Closure $outputFn) { $this->eventsModified = [];