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: Adjust to Add workspace content stream mapping to content graph projection #3868

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function isSimilarTo(FeedbackInterface $feedback)
public function serializePayload(ControllerContext $controllerContext)
{
$contentRepository = $this->contentRepositoryRegistry->get($this->contentRepositoryId);
$workspace = $contentRepository->getWorkspaceFinder()->findOneByName($this->workspaceName);
$workspace = $contentRepository->findWorkspaceByName($this->workspaceName);
if ($workspace === null) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Fusion/Helper/NodeInfoHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function createRedirectToNode(Node $node, ActionRequest $actionRequest):
{
// we always want to redirect to the node in the base workspace.
$contentRepository = $this->contentRepositoryRegistry->get($node->contentRepositoryId);
$workspace = $contentRepository->getWorkspaceFinder()->findOneByName($node->workspaceName);
$workspace = $contentRepository->findWorkspaceByName($node->workspaceName);

$nodeAddress = NodeAddress::create(
$node->contentRepositoryId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private function getAllowedTargetWorkspaces(ContentRepository $contentRepository
return [];
}
$result = [];
foreach ($contentRepository->getWorkspaceFinder()->findAll() as $workspace) {
foreach ($contentRepository->findWorkspaces() as $workspace) {
$workspaceMetadata = $this->workspaceService->getWorkspaceMetadata($contentRepository->id, $workspace->workspaceName);
if (!in_array($workspaceMetadata->classification, [WorkspaceClassification::ROOT, WorkspaceClassification::SHARED], true)) {
continue;
Expand Down
Loading