-
Notifications
You must be signed in to change notification settings - Fork 205
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
[User management] Add CreateUserResponse and GetUserResponse gRPC response wrappers [DPP-854] #12682
[User management] Add CreateUserResponse and GetUserResponse gRPC response wrappers [DPP-854] #12682
Conversation
assertEquals(res1, user1) | ||
assertEquals(res1, CreateUserResponse(Some(user1))) | ||
assertUserAlreadyExists(res2) | ||
assertEquals(res3, user2) | ||
assertEquals(res3, CreateUserResponse(Some(user2))) |
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.
Could these changes require to add some exclusions to compatibility tests?
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.
Added Breaks-protobuf: true
to the commit message as per ci/check-protobuf-stability.sh
StubHelper.authenticating(this.serviceFutureStub, maybeToken) | ||
.createUser(request.toProto()), | ||
sequencerFactory) | ||
.map(User::fromProto); | ||
.map(res -> User.fromProto(res.getUser())); |
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.
A wrapper type for the Protobuf should be added and that should be returned, rather than keeping the User
type. Otherwise we lose the advantage of being able to evolve the API over time and this is especially important for the Java bindings, which are officially supported for external customers. I'm ok merging this as is and doing the work myself, just let me know what's your preference.
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.
Would be great if you could handle it, thank you!
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.
Ok, I'll keep an eye on this and work on it once it's done.
4af3fab
to
83573a4
Compare
ledger-api/grpc-definitions/com/daml/ledger/api/v1/admin/user_management_service.proto
Show resolved
Hide resolved
/azp rerun |
Command 'rerun' is not supported by Azure Pipelines. Supported commands
See additional documentation. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Thank you @pbatko-da . This looks good to me.
…ponse wrappers [DPP-854] changelog_begin Ledger API Specification: CreateUser and GetUser endpoints of UserManagementService now return CreateUserResponse and GetUserResponse rather than User message. changelog_end Breaks-protobuf: true
3f374fd
to
3157413
Compare
No description provided.