-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: Make adjustments for missing tethered nodes recursive #5476
base: 9.0
Are you sure you want to change the base?
FEATURE: Make adjustments for missing tethered nodes recursive #5476
Conversation
… duplicate events
…m:nezaniel/neos-development-collection into recursiveTetheredNodeStructureAdjustments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me by reading in general. I just left two comments.
@@ -184,4 +184,16 @@ public function migrateCheckpointsToSubscriptionsCommand(string $contentReposito | |||
$eventMigrationService = $this->contentRepositoryRegistry->buildService($contentRepositoryId, $this->eventMigrationServiceFactory); | |||
$eventMigrationService->migrateCheckpointsToSubscriptions($this->outputLine(...)); | |||
} | |||
|
|||
/** | |||
* TODO Explain PLZ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an open TODO
workspaceName: $contentGraph->getWorkspaceName(), | ||
contentStreamId: $contentGraph->getContentStreamId(), | ||
nodeAggregateId: $tetheredNodeAggregateId, | ||
nodeTypeName: $tetheredNodeTypeDefinition->nodeTypeName, | ||
originDimensionSpacePoint: $originDimensionSpacePoint, | ||
succeedingSiblingsForCoverage: InterdimensionalSiblings::fromDimensionSpacePointSetWithoutSucceedingSiblings( | ||
dimensionSpacePointSet: $parentNodeAggregateCoverageByOccupant | ||
), | ||
parentNodeAggregateId: $parentNodeAggregateId, | ||
nodeName: $tetheredNodeTypeDefinition->name, | ||
initialPropertyValues: $defaultProperties, | ||
nodeAggregateClassification: NodeAggregateClassification::CLASSIFICATION_TETHERED, | ||
nodeReferences: SerializedNodeReferences::createEmpty(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder about the named parameter. I guess this is rather your preferred coding style than actually needed? Not sure if we already discussed this in past, but IMHO we should than.
This makes the "add missing tethered nodes" adjustment work recursively
Upgrade instructions
none
Review instructions
This also contains a migration to remove duplicate node peer variation events, whose cause was fixed in #4969.
Not super clean as it is a separate concern; tested successfully in a live project
Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions