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

graph: implement delete permission for link permissions #7849

Merged
merged 4 commits into from
Nov 30, 2023

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Nov 29, 2023

Implements DELETE on graph/v1beta1/drives//items//permissions/ for link permissions (public shares)

The handling of 'error' has been moved from FromStat() to FromCS3Status().
It's generally useful for other users of FromCS3Status()
@rhafer rhafer self-assigned this Nov 29, 2023
Copy link

update-docs bot commented Nov 29, 2023

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.

@@ -154,6 +154,10 @@ func (e Error) Error() string {
return errString
}

func (e Error) GetCode() ErrorCode {
return e.errorCode
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not too happy with this. I think ideally we would use properly typed errors. This would all using things like errors.Is(graph.ErrorItemNotFound).

However it requires quite a bit of refactoring, so I am still pondering if that is worth it.

Allow to delete link permissions (i.e. Public Shares)
@rhafer rhafer force-pushed the graph-delete-permission branch from c7215e1 to c487a61 Compare November 29, 2023 16:26
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

81.0% 81.0% Coverage
0.0% 0.0% Duplication

@rhafer rhafer mentioned this pull request Nov 30, 2023
22 tasks
@rhafer rhafer merged commit afb1270 into owncloud:master Nov 30, 2023
3 checks passed
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.

2 participants