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

Skip unnecessary share retrieval #4454

Merged

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Jan 9, 2024

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.

@butonic butonic requested review from labkode, glpatcern and a team as code owners January 9, 2024 14:54
@butonic butonic changed the title Skip unnecessaryd share retrieval Skip unnecessary share retrieval Jan 9, 2024
@butonic butonic force-pushed the skip-unnecessary-received-share-retrieval branch 3 times, most recently from e971c10 to eff0eec Compare January 9, 2024 15:15
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

fix typo

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic butonic force-pushed the skip-unnecessary-received-share-retrieval branch from 19b6b46 to 9ae6877 Compare January 10, 2024 07:10
@butonic butonic requested a review from kobergj January 10, 2024 07:11
}
updateMask := &fieldmaskpb.FieldMask{Paths: []string{"state", "hidden"}}
updateMask := &fieldmaskpb.FieldMask{Paths: []string{"state"}}
Copy link
Contributor Author

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!

Copy link
Contributor Author

@butonic butonic Jan 10, 2024

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 <[email protected]>
@butonic butonic force-pushed the skip-unnecessary-received-share-retrieval branch from 78ed0c0 to 5a60236 Compare January 10, 2024 13:46
Copy link
Contributor

@kobergj kobergj left a 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.

@dragonchaser dragonchaser merged commit aa54276 into cs3org:edge Jan 18, 2024
9 checks passed
@butonic butonic deleted the skip-unnecessary-received-share-retrieval branch January 24, 2024 15:36
@micbar micbar mentioned this pull request Jan 26, 2024
71 tasks
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.

None yet

3 participants