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

Filter sidebar shares for displayName #9504

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

pascalwengerter
Copy link
Contributor

Related Issue

Comment on lines 201 to 214
return [...this.outgoingCollaborators]
.filter((c) => c.collaborator.displayName)
.sort(this.collaboratorsComparator)
.map((c) => {
const collaborator: typeof c & { key?: string; resharers?: User[] } = { ...c }
collaborator.key = 'collaborator-' + collaborator.id
if (
collaborator.owner.name !== collaborator.fileOwner.name &&
collaborator.owner.name !== this.user.id
) {
collaborator.resharers = [collaborator.owner]
}
return collaborator
})
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer adding the filter to outgoingCollaborators in our useShare composable.

I guess this is CERN specific? We can also think about overwriting the composable via cern config like we did here. Although it's such a small change, it's probably not worth the effort 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm open to doing that, the benefit of doing it here is that one could also add some sort of hint to the UI about further shares existing but the webUI not being able to correctly render these (whcih technically could also be done inside the composable and then exported, ofc). Let me discuss this with @tbsbdr

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@pascalwengerter pascalwengerter marked this pull request as ready for review August 16, 2023 06:02
@JammingBen JammingBen merged commit a7543e4 into owncloud:master Aug 16, 2023
ownclouders pushed a commit that referenced this pull request Aug 16, 2023
* Fix #9257

* Move filtering for collaborator displayName in outgoingShares to useShares composable
@pascalwengerter pascalwengerter deleted the bugfix/9257 branch September 14, 2023 20:27
AlexAndBear pushed a commit that referenced this pull request Dec 13, 2023
* Fix #9257

* Move filtering for collaborator displayName in outgoingShares to useShares composable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crash on bad egroups
2 participants