-
Notifications
You must be signed in to change notification settings - Fork 197
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
[full-ci] fix(sharing-ng): Add /graph/v1beta1/drives/{driveId}/root
endpoints
#8727
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. |
928a59d
to
a9b6246
Compare
/graph/v1beta1/drives/{driveId}/root
endpoints /graph/v1beta1/drives/{driveId}/root
endpoints
e131ce1
to
888012f
Compare
This introduces the new DriveItemPermissionsService and DriveItemPermissionsApi to allow for better separation of the business logic and the API handling. As a starting point the Invite method was moved to the new service. More to follow.
… methods BaseGraphService is a struct to hold common fields and methods that can be share between different service implementations. E.g. for converting CS3 objects to their libregraph equivalents.
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.
Mostly the hound in me speaking 🙈 🐕🦺
This add support for the following graph routes: POST /drives/{driveID}/root/createLink DELETE /drives/{driveID}/root/permissions/{permissionID} PATCH /drives/{driveID}/root/permissions/{permissionID} and POST /drives/{driveID}/root/permissions/{permissionID}/setPassword This should significantly improve handling of permissions on spaces as there is no need to figure to the drive's root itemid anymore. Partial Fix: owncloud#8351
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.
Nice 👍
The default (10) seems somewhat low.
|
Note to reviewers: This might be easier to review if you look at the separate commits instead of the huge diff of the full PR. (Most of the commits are just moving code around)
This adds support for the the following endpoints:
Basically
root
works as an alias for theitemid
of root item of a drive. So this should make it easier to deal with permissions on project spaces.Apart from the above this PR does also quite a bit of refactoring, trying to move all permission related endpoints into separate service and splitting up the http request handling from the business logic. Which should make the code somewhat better to maintain and test. (there is still a lot of room for improvement though).