Skip to content

Commit

Permalink
[full-ci] mountpoint spaces are always listed in the drives list
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Nov 24, 2023
1 parent 6771b1a commit 3fcb409
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/mountpoints-are-always-listed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Mountpoint spaces are always listed in the drives list

Mountpoints for pending and declined shares are always listed in the drives list

https://github.com/cs3org/reva/pull/4360
https://github.com/owncloud/ocis/issues/7702
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func (s *service) ListStorageSpaces(ctx context.Context, req *provider.ListStora
}
case "mountpoint":
for _, receivedShare := range receivedShares {
if receivedShare.State != collaboration.ShareState_SHARE_STATE_ACCEPTED {
if receivedShare.State == collaboration.ShareState_SHARE_STATE_INVALID {
continue
}
root := &provider.ResourceId{
Expand Down Expand Up @@ -1124,8 +1124,7 @@ func (s *service) fetchShares(ctx context.Context) ([]*collaboration.ReceivedSha

shareMetaData := make(map[string]*provider.ResourceInfo, len(lsRes.Shares))
for _, rs := range lsRes.Shares {
// only stat accepted shares
if rs.State != collaboration.ShareState_SHARE_STATE_ACCEPTED {
if rs.State == collaboration.ShareState_SHARE_STATE_INVALID {
continue
}
if rs.Share.ResourceId.SpaceId == "" {
Expand Down

0 comments on commit 3fcb409

Please sign in to comment.