Skip to content

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

Merged
merged 9 commits into from
Mar 17, 2023

Conversation

skurfuerst
Copy link
Member

@skurfuerst skurfuerst commented Mar 11, 2023

TODO:

  • concept
  • working implementation
  • tests for the new command/event
  • DocumentUriPathProjection updaten

@skurfuerst skurfuerst requested a review from bwaidelich March 11, 2023 09:09
@github-actions github-actions bot added the 9.0 label Mar 11, 2023
@skurfuerst skurfuerst marked this pull request as ready for review March 11, 2023 20:06
@skurfuerst skurfuerst marked this pull request as draft March 12, 2023 18:15
@@ -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);
Copy link
Member Author

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()) {
Copy link
Member Author

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) {
Copy link
Member Author

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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove deprecation

@skurfuerst skurfuerst marked this pull request as ready for review March 17, 2023 19:03
@skurfuerst skurfuerst merged commit dcf6dbe into 9.0 Mar 17, 2023
@skurfuerst skurfuerst deleted the 90-migrating-content branch March 17, 2023 19:03
skurfuerst added a commit that referenced this pull request Mar 17, 2023
I forgot to change this after discussing in #4093
so this is the cleanup commit.
neos-bot pushed a commit to neos/contentgraph-doctrinedbaladapter that referenced this pull request May 1, 2023
I forgot to change this after discussing in neos/neos-development-collection#4093
so this is the cleanup commit.
neos-bot pushed a commit to neos/contentgraph-postgresqladapter that referenced this pull request May 1, 2023
I forgot to change this after discussing in neos/neos-development-collection#4093
so this is the cleanup commit.
neos-bot pushed a commit to neos/contentrepository-core that referenced this pull request May 1, 2023
I forgot to change this after discussing in neos/neos-development-collection#4093
so this is the cleanup commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant