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

scalapb upgrade #31

Merged
merged 1 commit into from
Sep 25, 2018
Merged

scalapb upgrade #31

merged 1 commit into from
Sep 25, 2018

Conversation

ahjohannessen
Copy link
Collaborator

  • upgrade to ScalaPB 0.8.0

  • adjust Fs2GrpcPlugin and GrpcServicePrinter to
    changes done with respect to DescriptorImplicits
    class that previously was trait DescriptorPimps.

@fiadliel
Copy link
Contributor

fiadliel commented Sep 24, 2018

Deploy preview for fs2-grpc failed.

Built with commit 62f3bfe

https://app.netlify.com/sites/fs2-grpc/deploys/5ba8ad834ed62f5ddde6712b

Copy link
Member

@rossabaker rossabaker left a comment

Choose a reason for hiding this comment

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

👍

They finally renamed some of the pimps but didn't get rid of all of the pimps? 🤦‍♂️

@ahjohannessen
Copy link
Collaborator Author

😁

@fiadliel
Copy link
Contributor

fiadliel commented Sep 25, 2018

A small change needed. Obviously some scripted tests would benefit here!

(comment on scripted tests is a note to myself)

private[this] def serviceMethodSignature(method: MethodDescriptor) = {
s"def ${method.name}" + (method.streamType match {
case StreamType.Unary =>
s"(request: ${method.scalaIn}, clientHeaders: _root_.io.grpc.Metadata): F[${method.scalaOut}]"
s"(request: ${method.inputType}, clientHeaders: _root_.io.grpc.Metadata): F[${method.outputType}]"
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 ${method.inputType.scalaType}

Same for other cases below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will fix

 - upgrade to ScalaPB 0.8.0

 - adjust `Fs2GrpcPlugin` and `GrpcServicePrinter` to
   changes done with respect to `DescriptorImplicits`
   class that previously was trait `DescriptorPimps`.
@ahjohannessen
Copy link
Collaborator Author

@fiadliel done

@fiadliel fiadliel merged commit c7942f1 into typelevel:master Sep 25, 2018
@ahjohannessen ahjohannessen deleted the wip-scalapb-0.8.0 branch September 25, 2018 14:56
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.

3 participants