-
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
feature(sharing): add graph endpoints to accept or decline a share #7885
feature(sharing): add graph endpoints to accept or decline a share #7885
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
Kudos, SonarCloud Quality Gate passed! |
b5f3550
to
785d0e4
Compare
4890d4b
to
5900a6a
Compare
98f0e06
to
ed1ccb6
Compare
Moving this to draft once more as this needs adjustments for matching the changed |
4f2f142
to
5d9c15a
Compare
5d9c15a
to
f389119
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.
Usual comments. Rest looks good 👍
…led implementation still missed
…terface After some back an forth we agreed on keeping the routes defined in a central place for now.
In theory creating the driveItem to accepting a shared resource can be done via '/v1beta1/drives/{drive-id}/item/{item-id}/children' but there is also the simplified variant via '/v1beta1/drives/{drive-id}/root/children' (aligned with the example in the spec). For now we'll just implement the latter because accepting a share will always be done via root of the sharejail drive.
When accepting a share via 'POST /v1beta1/drives/{driveId}/root/children' return the newly created driveItem. This driveItem wraps the accepted remoteItem representing the shared resource (similar to the 'sharedWithMe' response. This also refactors some of the helpers for user lookup and CS3 share to driveItem conversion so they can be more easily shared.
Only accept requests against the shareJail driveID
errors.Join(errs...) ignores nil errors and returns nil if there are not errors.
f389119
to
954998a
Compare
Quality Gate passedIssues Measures |
Description
With an objective to enhance our existing apis, this PR extends our Graph Service by introducing new endpoints for accepting and declining shares.
These features are not new additions in terms of functionality, as they were previously available in our legacy OCS API.
Open Tasks:
Related Issue
Motivation and Context
these Graph endpoints are designed to take over in the future, thereby paving a smooth transition
How Has This Been Tested?
Types of changes