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

TASK: Remove usages of $node->subgraphIdentity->contentStreamId in structure adjustments #5081

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented May 20, 2024

Solves partially: #5043

1.) Remove now obsolete ProjectedNodeIterator and expose $contentGraph directly

$this->projectedNodeIterator->nodeAggregatesOfType has been rewritten to
$this->contentGraph->findNodeAggregatesByType

The ProjectedNodeIterator was before #5028 required to encapsulate findNodeAggregatesByType to only work on the live workspace.

2.) Remove calls to $node->subgraphIdentity->contentStreamId and ask the content stream id from the content graph like started via #5002

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

…Graph directly

$this->projectedNodeIterator->nodeAggregatesOfType
has been rewritten to
$this->contentGraph->findNodeAggregatesByType

The `ProjectedNodeIterator` was before neos#5028 required to encapsulate `findNodeAggregatesByType` to only work on the live workspace.
@mhsdesign mhsdesign requested review from bwaidelich and dlubitz May 20, 2024 18:14
Copy link
Contributor

@dlubitz dlubitz left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you

@mhsdesign mhsdesign merged commit f0c9d09 into neos:9.0 May 22, 2024
11 checks passed
@mhsdesign mhsdesign deleted the task/removeSubgraphIdentityFromStructureAdjustments branch May 22, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants