-
Notifications
You must be signed in to change notification settings - Fork 187
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
use key to get specific trash item #9879
Conversation
the test fails because decomposedfs is implemented in a way that when the resource identified by the key is a folder it will list the children of that folder. When it is a file it will return only that file: nodeType := fs.lu.TypeFromPath(ctx, originalPath)
if nodeType != provider.ResourceType_RESOURCE_TYPE_CONTAINER {
// this is the case when we want to directly list a file in the trashbin
blobsize, err := strconv.ParseInt(string(attrs[prefixes.BlobsizeAttr]), 10, 64)
if err != nil {
return items, err
}
item := &provider.RecycleItem{
Type: nodeType,
Size: uint64(blobsize),
Key: filepath.Join(key, relativePath),
DeletionTime: deletionTime,
Ref: &provider.Reference{
Path: filepath.Join(origin, relativePath),
},
}
items = append(items, item)
return items, err
}
// ... goes on to list all children. the directory is not added I need to doube check how the key and path are used ... 👀 🤔 😵 ok so no storage driver implementation, other than decomposedfs, looks at the key. only decomposedfs has some logic that would allow navigating the trash ... so the storageprovider can actually pass
So there is a difference in sending a key with or without ending in a |
implemented the above in cs3org/reva#4818 |
78584ed
to
a2351d0
Compare
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
2821b69
to
24889db
Compare
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
24889db
to
23adc13
Compare
Quality Gate passedIssues Measures |
…item use key to get specific trash item
The activitylog and clientlog services now only fetch the specific trash item instead of getting all items in trash and filtering them on their side. This reduces the load on the storage users service because it no longer has to assemble a full trash listing.
related #9866