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

Fix group avatar display in space members list #8248

Merged
merged 4 commits into from
Feb 1, 2023

Conversation

JammingBen
Copy link
Collaborator

@JammingBen JammingBen commented Jan 16, 2023

Description

The solution is not super straight-forwarded currently, unfortunately... We need to check for the presence of collaborator.name as space group shares don't have that property. We can't check for the share type because all user- and group-shares for spaces have the exact same share type.

Edit: we've introduced a shareType 8 for groups as space members. With that it's pretty much straightforward now.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Open tasks

@JammingBen JammingBen self-assigned this Jan 16, 2023
@JammingBen JammingBen marked this pull request as draft January 24, 2023 15:11
@kulmann kulmann force-pushed the fix-space-member-group-avatar branch 5 times, most recently from 8fdea1a to 7e7671d Compare January 30, 2023 21:20
@kulmann kulmann marked this pull request as ready for review January 30, 2023 21:26
@kulmann
Copy link
Member

kulmann commented Jan 30, 2023

PR is ready for review now. Can't review myself anymore because I took over the dev part. :-)

@ownclouders
Copy link
Contributor

ownclouders commented Jan 30, 2023

Results for e2e-tests oCIS https://drone.owncloud.com/owncloud/web/32278/12/1

💥 To see the trace, please open the link in the console ...

npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/32278/tracing/participant-management-alice-2023-1-31-08-44-17.zip

npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/32278/tracing/participant-management-brian-2023-1-31-08-44-26.zip

npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/32278/tracing/participant-management-marie-2023-1-31-08-44-30.zip

💥 The e2e-ocis tests pipeline failed. The build has been cancelled.

@kulmann kulmann force-pushed the fix-space-member-group-avatar branch from 7e7671d to 72c1c7a Compare January 31, 2023 20:29
@kulmann kulmann force-pushed the fix-space-member-group-avatar branch from 72c1c7a to cf16206 Compare January 31, 2023 20:49
@sonarcloud
Copy link

sonarcloud bot commented Jan 31, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

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

23.4% 23.4% Coverage
0.0% 0.0% Duplication

@JammingBen
Copy link
Collaborator Author

LGTM, but I can't approve the changes since it's my PR :(

Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

approval for my code from @JammingBen (see comment) :-)

@kulmann kulmann merged commit a0314e3 into master Feb 1, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix-space-member-group-avatar branch February 1, 2023 10:37
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.

Groups as space members
3 participants