Skip to content
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

BUG: Adding dimension config to an existing CR does not work #4984

Open
1 task done
c4ll-m3-j4ck opened this issue Apr 9, 2024 · 1 comment
Open
1 task done

BUG: Adding dimension config to an existing CR does not work #4984

c4ll-m3-j4ck opened this issue Apr 9, 2024 · 1 comment

Comments

@c4ll-m3-j4ck
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When following the documentation at https://docs.neos.io/guide/content-repository/content-dimensions/migrating-dimension-config in order to add dimension-config to a neos-instance that didn't previously have a dimension config, the provided commands lead to an error and make it impossible to migrate the cr to the new dimensions.

After adding the configuration for the new dimensions, I ran ./flow content:refreshRootNodeDimensions. This worked fine and I can see the changes in the database as the dimensionspacepoints are created in db.cr_default_p_graph_dimensionspacepoints.

However, when I then run the next command ./flow content:moveDimensionSpacePoint '{}' '{"language": "en"}', the command fails with the error the content stream 0359b978-1f56-45b1-853e-078fa25c0a72 already contained nodes in dimension space point {"language":"en"} - this is not allowed.

Right not it seems like it is not possible to add dimensions to an already existing CR.

Expected Behavior

The nodes should be moved to the correct dimension.

Steps To Reproduce

No response

Environment

- Flow: 9.0.x-dev
- Neos: 9.0.x-dev
- PHP: 8.3

Anything else?

No response

@c4ll-m3-j4ck
Copy link
Author

Some additional context:

It seems like that on running the first command, hierarchy-relations with the new dimensionspacepointhash are created.

In Neos\ContentRepository\Core\Feature\DimensionSpaceAdjustment\DimensionSpaceCommandHandler::requireDimensionSpacePointToBeEmptyInContentStream a check is run against the subgraph, which returns an existing node (Neos.Neos:Sites) in this case.

@ahaeslich ahaeslich added the 9.0 label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants