-
Notifications
You must be signed in to change notification settings - Fork 113
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
Skip unnecessary share retrieval #4454
Skip unnecessary share retrieval #4454
Conversation
e971c10
to
eff0eec
Compare
internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/pending.go
Show resolved
Hide resolved
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> fix typo Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
19b6b46
to
9ae6877
Compare
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
} | ||
updateMask := &fieldmaskpb.FieldMask{Paths: []string{"state", "hidden"}} | ||
updateMask := &fieldmaskpb.FieldMask{Paths: []string{"state"}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to make sure the share managers respect the field mask!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jsonsc3 handles it, memory handles it, owncloudsql handles it (but does not know anything about the hidden flag), json handles it (but does not know anything about the hidden flag), cs3 also has it but does not know anything about the hidden flag). good to merge
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
78ed0c0
to
5a60236
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but please run a full-ci on ocis before merging. These sharing changes can have unforseen consequences.
AFAICT we already got a list of all reveiced shares, including the Hidden flag. No need to make another GetReceivedShare request for every accepted share.