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

Add Group API #99

Merged
merged 5 commits into from
Nov 30, 2020
Merged

Add Group API #99

merged 5 commits into from
Nov 30, 2020

Conversation

refs
Copy link
Member

@refs refs commented Nov 26, 2020

Signed-off-by: Jörn Friedrich Dreyer jfd@butonic.de

This PR adds a readonly groups api to CS3.
Similar to users groups have a persistent, non reassignable, stable, unique identifier which we call id
In addition to that the CS3 API knows other identifiers like a name, an email and numeric identifiers (which we used to carry as opaque payload).

I did not care to preserve backwards compatability and reused old ids, which is why there are build failures for protobuf.

Let me know if we can go forward with this or if the API is considered staple and we need to keep backwards compatabililty.

butonic and others added 2 commits November 25, 2020 16:30
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@refs refs requested a review from labkode as a code owner November 26, 2020 12:38
@refs
Copy link
Member Author

refs commented Nov 26, 2020

@labkode @ishank011 as I cannot push to butonic/cs3apis I needed to fork and apply the review comments on this PR. The other PR can be closed.

@refs refs mentioned this pull request Nov 26, 2020
option java_multiple_files = true;
option java_outer_classname = "ResourcesProto";
option java_package = "com.cs3.identity.group.v1beta1";
option objc_class_prefix = "CIU";
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be CIG. That's why the build fails

Copy link
Member Author

Choose a reason for hiding this comment

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

aaaaah, I was wondering, thank you!

@labkode labkode merged commit 9d80507 into cs3org:master Nov 30, 2020
@ishank011
Copy link
Contributor

@refs @butonic we have cyclic imports (user/resources and group/resources) due to which the build failed https://cloud.drone.io/cs3org/go-cs3apis/115/1/2

@ishank011
Copy link
Contributor

@refs pushing a fix. There's a duplicate method in both the APIs (user/IsInGroup and group/HasMember). I'll just remove it from the userprovider.

@refs
Copy link
Member Author

refs commented Dec 3, 2020

it should work, but having a go build step for the proto files before it gets to go-cs3api might be a good idea. Not sure if there is a linter for protobuf to catch errors like this, since it is a language specific error, I don't see this happening in JavaScript

@ishank011
Copy link
Contributor

Makes a lot of sense. I think it should be pretty simple to add. We'll just need to execute the language-specific actions without pushing to the corresponding repos. I'll create an issue so I don't forget.

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.

4 participants