Skip to content

Commit

Permalink
TASK: Update migration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Mar 14, 2024
1 parent 0266e11 commit b62d1d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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(...));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = [];

Expand Down

0 comments on commit b62d1d4

Please sign in to comment.