-
-
Notifications
You must be signed in to change notification settings - Fork 234
9.0 FEATURE: Migrate content dimensions in a running installation #4093
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
Conversation
This is required when changing dimension values in a running installation
@@ -405,6 +408,8 @@ protected function adoptNodeAndParents( | |||
throw new \RuntimeException('Source node for Node Aggregate ID ' . $identifier | |||
. ' not found. This should never happen.', 1660905374); | |||
} | |||
var_dump("SOURCENODE"); | |||
var_dump($sourceNode->nodeAggregateId); |
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.
remove (all occurences in this class
@@ -57,6 +58,9 @@ private function handleCreateNodeVariant( | |||
$command->nodeAggregateId, | |||
$contentRepository | |||
); | |||
if ($nodeAggregate->classification->isRoot()) { |
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.
TODO: this seems to be already checked. so remove exception below.
*/ | ||
public function first(): NodeAggregate | ||
{ | ||
if (count($this->nodeAggregates) > 0) { |
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.
TODO: move exception check to findRootNodeAggregateByType; and return nullable NodeAggregate (for internal consistency)
@@ -46,13 +46,22 @@ public function getSubgraph( | |||
): ContentSubgraphInterface; | |||
|
|||
/** | |||
* @api | |||
* @deprecated please use {@see findRootNodeAggregates} instead | |||
* @internal |
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.
remove deprecation
I forgot to change this after discussing in #4093 so this is the cleanup commit.
I forgot to change this after discussing in neos/neos-development-collection#4093 so this is the cleanup commit.
I forgot to change this after discussing in neos/neos-development-collection#4093 so this is the cleanup commit.
I forgot to change this after discussing in neos/neos-development-collection#4093 so this is the cleanup commit.
TODO: