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

[User management] Add CreateUserResponse and GetUserResponse gRPC response wrappers [DPP-854] #12682

Merged
merged 3 commits into from
Feb 8, 2022

Conversation

pbatko-da
Copy link
Contributor

No description provided.

@pbatko-da pbatko-da changed the title [User management] Add CreateUserResponse and getUserResponse gRPC response wrappers [DPP-854] [User management] Add CreateUserResponse and GetUserResponse gRPC response wrappers [DPP-854] Feb 1, 2022
Comment on lines -219 to +223
assertEquals(res1, user1)
assertEquals(res1, CreateUserResponse(Some(user1)))
assertUserAlreadyExists(res2)
assertEquals(res3, user2)
assertEquals(res3, CreateUserResponse(Some(user2)))
Copy link
Contributor

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?

Copy link
Contributor Author

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

Comment on lines 36 to +39
StubHelper.authenticating(this.serviceFutureStub, maybeToken)
.createUser(request.toProto()),
sequencerFactory)
.map(User::fromProto);
.map(res -> User.fromProto(res.getUser()));
Copy link
Contributor

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.

Copy link
Contributor Author

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!

Copy link
Contributor

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.

@pbatko-da pbatko-da force-pushed the pbatko/persistent-user-management-grpc-wrapper branch from 4af3fab to 83573a4 Compare February 2, 2022 17:20
@pbatko-da
Copy link
Contributor Author

/azp rerun

@azure-pipelines
Copy link
Contributor

Command 'rerun' is not supported by Azure Pipelines.

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or specific pipelines for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify specific pipelines to run.
    • Example: "run" or "run pipeline_name, pipeline_name, pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.

@pbatko-da
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@pbatko-da
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@meiersi-da meiersi-da left a 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
@pbatko-da pbatko-da merged commit f2b7902 into main Feb 8, 2022
@pbatko-da pbatko-da deleted the pbatko/persistent-user-management-grpc-wrapper branch February 8, 2022 11:29
garyverhaegen-da added a commit that referenced this pull request Feb 8, 2022
This is an out-of-schedule releasee to get the breaking changes in
f2b7902 (#12682) in a PR so Canton can
build on it and make a release we can depend on to fix #12813.

Or something like that.

CHANGELOG_BEGIN
CHANGELOG_END
@garyverhaegen-da garyverhaegen-da mentioned this pull request Feb 8, 2022
garyverhaegen-da added a commit that referenced this pull request Feb 8, 2022
This is an out-of-schedule releasee to get the breaking changes in
f2b7902 (#12682) in a PR so Canton can
build on it and make a release we can depend on to f i x #12813.

Or something like that.

CHANGELOG_BEGIN
CHANGELOG_END
@ghost ghost mentioned this pull request Feb 8, 2022
7 tasks
garyverhaegen-da added a commit that referenced this pull request Feb 8, 2022
This is an out-of-schedule releasee to get the breaking changes in
f2b7902 (#12682) in a PR so Canton can
build on it and make a release we can depend on to f i x #12808.

Or something like that.

CHANGELOG_BEGIN
CHANGELOG_END
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.

5 participants