Skip to content

graph: implement delete permission for link permissions - #7849

Merged
rhafer merged 4 commits into
owncloud:masterfrom
rhafer:graph-delete-permission
Nov 30, 2023
Merged

rhafer merged 4 commits into
owncloud:masterfrom
rhafer:graph-delete-permission

Conversation

@rhafer

@rhafer rhafer commented Nov 29, 2023

Copy link
Copy Markdown
Contributor

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
@update-docs

update-docs Bot commented Nov 29, 2023

Copy link
Copy Markdown

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.


func (e Error) GetCode() ErrorCode {
return e.errorCode
}

Copy link
Copy Markdown
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
@sonarqubecloud

Copy link
Copy Markdown

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 done
@rhafer
rhafer merged commit afb1270 into owncloud:master Nov 30, 2023
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