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

ocm share notification handling added #5075

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Conversation

2403905
Copy link

@2403905 2403905 commented Feb 11, 2025

Added the ocm notification handler that allows receiving a notification from a remote party about changes to a previously known entity.

Copy link

update-docs bot commented Feb 11, 2025

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.

@2403905 2403905 requested a review from a team as a code owner February 12, 2025 10:12
@2403905 2403905 force-pushed the issue-7075 branch 2 times, most recently from 0463dae to 9387a6b Compare February 12, 2025 16:13
@2403905 2403905 requested review from kobergj and removed request for a team, labkode and glpatcern February 13, 2025 11:01
Copy link
Contributor

@kobergj kobergj left a 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)
Copy link
Contributor

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

Copy link
Author

@2403905 2403905 Feb 14, 2025

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 {
Copy link
Contributor

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

Copy link
Author

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

@2403905 2403905 merged commit 8aefc9e into cs3org:edge Feb 17, 2025
4 of 9 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