Skip to content

Commit

Permalink
Merge pull request #3754 from ahaeslich/task/adjust-to-neos-changes
Browse files Browse the repository at this point in the history
TASK: Adjust to removal of `workspaceName` in `NodeIdToPublishOrDiscard`
  • Loading branch information
ahaeslich authored Mar 15, 2024
2 parents 1d9df94 + 4ff3c30 commit a0c5d13
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions Classes/ContentRepository/Service/WorkspaceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ public function predictRemoveNodeFeedbackFromDiscardIndividualNodesFromWorkspace
}

if (
$nodeToDiscard->workspaceName->equals($workspace->workspaceName)
&& $nodeToDiscard->nodeAggregateId->equals($change->nodeAggregateId)
$nodeToDiscard->nodeAggregateId->equals($change->nodeAggregateId)
&& $nodeToDiscard->dimensionSpacePoint->equals($change->originDimensionSpacePoint)
) {
$subgraph = $contentRepository->getContentGraph()
Expand Down
2 changes: 0 additions & 2 deletions Classes/Controller/BackendServiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ public function publishAction(array $nodeContextPaths, string $targetWorkspaceNa
foreach ($nodeContextPaths as $contextPath) {
$nodeAddress = $nodeAddressFactory->createFromUriString($contextPath);
$nodeIdentifiersToPublish[] = new NodeIdToPublishOrDiscard(
$workspaceName,
$nodeAddress->nodeAggregateId,
$nodeAddress->dimensionSpacePoint
);
Expand Down Expand Up @@ -279,7 +278,6 @@ public function discardAction(array $nodeContextPaths): void
foreach ($nodeContextPaths as $contextPath) {
$nodeAddress = $nodeAddressFactory->createFromUriString($contextPath);
$nodeIdentifiersToDiscard[] = new NodeIdToPublishOrDiscard(
$workspaceName,
$nodeAddress->nodeAggregateId,
$nodeAddress->dimensionSpacePoint
);
Expand Down

0 comments on commit a0c5d13

Please sign in to comment.