Skip to content

Conversation

@Jan3k3y
Copy link

@Jan3k3y Jan3k3y commented Jun 21, 2025

  • rewrite controller function to get data from new workspace structure
  • changes structure of ´RelatedNodes.html´ to match new structure

Ticket: #5437

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

@Jan3k3y Jan3k3y force-pushed the reimplement/inaccessible-media-usage-contact-person branch 2 times, most recently from 67309aa to a7b5ba2 Compare June 21, 2025 11:44
@Jan3k3y Jan3k3y changed the base branch from 9.0 to 9.1 June 21, 2025 11:48
@github-actions github-actions bot added 9.1 and removed 9.0 labels Jun 21, 2025
- rewrite controller function to get data from new workspace structure
- changes structure of ´RelatedNodes.html´ to match new structure

Ticket: neos#5437
@Jan3k3y Jan3k3y force-pushed the reimplement/inaccessible-media-usage-contact-person branch from a7b5ba2 to 3a9e942 Compare June 21, 2025 11:59
@dlubitz dlubitz self-requested a review June 21, 2025 12:50
Jan3k3y added 2 commits June 21, 2025 15:56
- will be shown as ´---´
- removed in list view after ´./flow assetusage:index´
- if 'private' workspace exist wait for next user to join to show this name

Ticket: neos#5437
Comment on lines +98 to +103
/**
* @Flow\Inject
* @var DomainUserService
*/
protected $domainUserService;

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/**
* @Flow\Inject
* @var DomainUserService
*/
protected $domainUserService;
#[Flow\Inject]
protected DomainUserService $domainUserService;

Copy link
Author

Choose a reason for hiding this comment

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

I was just taking the format from the other protected variables of the file to make it consistent.

Should I just apply this suggestion, rework the variables as well or leave it as it is? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm fine with both! Also with keeping it as it is. 😬

Using the attributes over annotation does not work for all cases. So you need to be careful rewriting all of them.

Copy link
Contributor

Choose a reason for hiding this comment

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

Note: Rewriting annotation to attributes work, but not the PHP type definition in all cases. But AFAIS this is an older issue.

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.

Looks good by reading! Thanks @Jan3k3y for taking care.

@Jan3k3y Jan3k3y requested a review from crydotsnake August 4, 2025 09:49
@Jan3k3y
Copy link
Author

Jan3k3y commented Sep 17, 2025

Any updates here? 🤗

{inaccessibleRelation.label}
<f:if condition="{inaccessibleRelation.relevantWorkspaceMetadata.owner}">
<f:then>
(@{inaccessibleRelation.relevantWorkspaceMetadata.owner})
Copy link
Contributor

Choose a reason for hiding this comment

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

This leads to an error

Suggested change
(@{inaccessibleRelation.relevantWorkspaceMetadata.owner})
(@{inaccessibleRelation.relevantWorkspaceMetadata.owner.label})

Copy link
Author

Choose a reason for hiding this comment

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

Thx for testing!

This will be solved by not giving full Entity into template

Copy link
Contributor

@pKallert pKallert left a comment

Choose a reason for hiding this comment

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

Thank you for taking care of the todo!
I had some comments, but some are also personal preference that you can also decline 😄

I noticed some additonal stuff while testing out the feature. Those can be handled in a follow-up since they are not part of the reimplementation.

  • Table header for Element in Workspace is 'document', but the node is shown in the table
  • icon fa-group and its title tag are not shown, also the title is not translated. Icon should be fa-user-group

$owner = $workspace->getOwner();
return '(' . $owner->getLabel() . ')';
$contentRepositoryId = SiteDetectionResult::fromRequest($this->request->getHttpRequest())->contentRepositoryId;
$contentRepository = $this->contentRepositoryRegistry->get($contentRepositoryId);
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer for this to be passed to the function avoid duplicate calls

Copy link
Author

Choose a reason for hiding this comment

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

💡

}

if ($workspaceMetadata->classification->value === WorkspaceClassification::PERSONAL->value) {
$structuredReturn['owner'] = $workspaceOwner;
Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I can see, we only use the title of the workspace user, do we need to pass the whole object to the view or could we just use the label here?

Copy link
Author

Choose a reason for hiding this comment

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

Sounds good 🤗

@crydotsnake crydotsnake removed their request for review October 20, 2025 11:38
Copy link
Contributor

@pKallert pKallert left a comment

Choose a reason for hiding this comment

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

Two comments to fix the nullable variables :)

Copy link
Contributor

@pKallert pKallert left a comment

Choose a reason for hiding this comment

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

Looks good!
Tested it out locally and works for me

@pKallert pKallert merged commit 2868887 into neos:9.1 Oct 21, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Reviews

Development

Successfully merging this pull request may close these issues.

Reimplement "Show workspace owner/title in asset usage" for Neos 9.0

4 participants