Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Filter sidebar shares for displayName - #9504

Merged
JammingBen merged 2 commits into
owncloud:masterfrom
pascalwengerter:bugfix/9257
Aug 16, 2023
Merged

JammingBen merged 2 commits into
owncloud:masterfrom
pascalwengerter:bugfix/9257

Conversation

@pascalwengerter

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crash on bad egroups

2 participants