Skip to content

Commit e3195b0

Browse files
committed
BUGFIX: CLI command to build the queue misses some payload property
1 parent 34e00bc commit e3195b0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Classes/Command/NodeIndexQueueCommandController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ protected function indexWorkspace($workspaceName, $indexPostfix)
220220
$jobData[] = [
221221
'nodeIdentifier' => $data['nodeIdentifier'],
222222
'dimensions' => $data['dimensions'],
223+
'workspace' => $workspaceName,
223224
'nodeType' => $data['nodeType'],
225+
'path' => $data['path'],
224226
];
225227
$nodeCounter++;
226228
}

Classes/Domain/Repository/NodeDataRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function findAllBySiteAndWorkspace($workspaceName, $firstResult = 0, $max
3232
/** @var QueryBuilder $queryBuilder */
3333
$queryBuilder = $this->entityManager->createQueryBuilder();
3434

35-
$queryBuilder->select('n.Persistence_Object_Identifier nodeIdentifier, n.dimensionValues dimensions')
35+
$queryBuilder->select('n.Persistence_Object_Identifier nodeIdentifier, n.dimensionValues dimensions, n.nodeType nodeType, n.path path')
3636
->from('Neos\ContentRepository\Domain\Model\NodeData', 'n')
3737
->where("n.workspace = :workspace AND n.removed = :removed AND n.movedTo IS NULL")
3838
->setFirstResult((integer)$firstResult)

Classes/Indexer/NodeIndexer.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public function indexNode(NodeInterface $node, $targetWorkspaceName = null)
4949
'dimensions' => $node->getDimensions(),
5050
'workspace' => $node->getWorkspace()->getName(),
5151
'nodeType' => $node->getNodeType()->getName(),
52-
'contextPath' => $node->getContextPath(),
5352
'path' => $node->getPath(),
5453
]
5554
]);
@@ -72,7 +71,6 @@ public function removeNode(NodeInterface $node, $targetWorkspaceName = null)
7271
'dimensions' => $node->getDimensions(),
7372
'workspace' => $node->getWorkspace()->getName(),
7473
'nodeType' => $node->getNodeType()->getName(),
75-
'contextPath' => $node->getContextPath(),
7674
'path' => $node->getPath(),
7775
]
7876
]);

0 commit comments

Comments
 (0)