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

Update and delete OCM shares #3937

Merged
merged 32 commits into from
Jun 8, 2023

Conversation

gmgigi96
Copy link
Member

@gmgigi96 gmgigi96 commented Jun 5, 2023

This PR implements the following items:

  • Update OCM share (grpc, ocs)
    • permissions for every protocol
    • expiration
  • Delete OCM share (grpc, ocs)
  • Accept/reject received OCM shares
  • Remove accepted remote user

Notification when updating/deleting an OCM share from the sender side is left as future work when the notification endpoint in the OCM specs is fully spelled out.

@gmgigi96 gmgigi96 force-pushed the update_delete_ocm_shares branch 7 times, most recently from 41e9850 to 37c0d32 Compare June 7, 2023 12:10
@cs3org cs3org deleted a comment from update-docs bot Jun 8, 2023
@gmgigi96 gmgigi96 marked this pull request as ready for review June 8, 2023 09:23
@gmgigi96 gmgigi96 requested review from labkode, glpatcern and a team as code owners June 8, 2023 09:23
@gmgigi96 gmgigi96 force-pushed the update_delete_ocm_shares branch from 7d2a028 to de59686 Compare June 8, 2023 11:57
@gmgigi96 gmgigi96 force-pushed the update_delete_ocm_shares branch from cd0f379 to 6b44aa3 Compare June 8, 2023 12:00
@glpatcern glpatcern merged commit 39d8c23 into cs3org:master Jun 8, 2023
gmgigi96 added a commit to gmgigi96/reva that referenced this pull request Jun 28, 2023
* implemented DeleteRemoteUser

* update state of received ocm share

* fix cmd

* removed old comment

* add endpoint to delete accepted user

* remove federated share

* fix linter

* accept/reject ocm recevied shares

* update access methods in sql driver

* inject time for unit tests

* add unit tests for UpdateShare

* removed tests for DeleteShare

* update permissions of federated shares from ocs

* update go-cs3apis

* fix linter

* add command in cli to remove an accepted user

* update permissions of ocm share from cli

* optimized query build when updating access methods

* fix update ocm share in ocs

* fix update received ocm share

* return share id when accepting/reject ocm share

* filter ocm shares by status

* fix update received share

* expose state of ocm share

* set correct user type when deleting user

* add share info when creating ocm share

* disabled nextcloud unit test

* add changelog

* trigger pipeline

* add header

* fix rebase

* fix linter
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