-
Notifications
You must be signed in to change notification settings - Fork 113
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
ocm share notification handling added #5075
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. |
0463dae
to
9387a6b
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.
ususal nitpick :)
} | ||
case payload.SHARE_CHANGE_PERMISSION: | ||
// TODO implement the SHARE_CHANGE_PERMISSION | ||
w.WriteHeader(http.StatusNotImplemented) |
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.
Will we implement this too? That has impact on https://github.com/owncloud/web/issues/12149
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.
Yes, I think we can try to implement the permission update properly. I not, we can fall back to thedelete-create
scenario.
@@ -589,6 +595,23 @@ func (m *mgr) GetReceivedShare(ctx context.Context, user *userpb.User, ref *ocm. | |||
return nil, errtypes.NotFound(ref.String()) | |||
} | |||
|
|||
func (m *mgr) DeleteReceivedShare(ctx context.Context, user *userpb.User, ref *ocm.ShareReference) error { |
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.
exported type DeleteReceivedShare
should have a comment or be unexported
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.
skipped. All exported methods are in a json.go implements the interfaces that have a comment
Added the ocm notification handler that allows receiving a notification from a remote party about changes to a previously known entity.