-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
# Conflicts: # modules/common/src/main/scala/higherkindness/compendium/models/Protocol.scala # modules/server/src/main/scala/higherkindness/compendium/Main.scala # modules/server/src/main/scala/higherkindness/compendium/http/RootService.scala
# Conflicts: # build.sbt # modules/server/src/main/scala/higherkindness/compendium/core/CompendiumService.scala # modules/server/src/main/scala/higherkindness/compendium/db/DBService.scala # modules/server/src/main/scala/higherkindness/compendium/http/RootService.scala # modules/server/src/main/scala/higherkindness/compendium/storage/FileStorage.scala # modules/server/src/main/scala/higherkindness/compendium/storage/Storage.scala # modules/server/src/test/scala/higherkindness/compendium/CompendiumArbitrary.scala # modules/server/src/test/scala/higherkindness/compendium/core/CompendiumServiceSpec.scala # modules/server/src/test/scala/higherkindness/compendium/core/CompendiumServiceStub.scala # modules/server/src/test/scala/higherkindness/compendium/db/DBServiceStub.scala # modules/server/src/test/scala/higherkindness/compendium/storage/FileStorageSpec.scala # modules/server/src/test/scala/higherkindness/compendium/storage/StorageStub.scala
# Conflicts: # build.sbt
modules/common/src/main/scala/higherkindness/compendium/models/idlNames.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/storage/FileStorage.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/db/PgDBService.scala
Outdated
Show resolved
Hide resolved
modules/server/src/test/scala/higherkindness/compendium/db/DBServiceStub.scala
Outdated
Show resolved
Hide resolved
I wanted to send the comments, not to approve
modules/common/src/main/scala/higherkindness/compendium/models/IdlNames.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/core/CompendiumService.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/http/RootService.scala
Show resolved
Hide resolved
Co-Authored-By: Juan Pedro Moreno <[email protected]>
modules/server/src/main/scala/higherkindness/compendium/http/RootService.scala
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/parser/utils.scala
Show resolved
Hide resolved
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.
Nice job @Yawolf!
modules/server/src/main/scala/higherkindness/compendium/db/queries/metas.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/http/QueryParams.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/parser/ProtocolParser.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/parser/ProtocolParserService.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/storage/FileStorage.scala
Outdated
Show resolved
Hide resolved
modules/server/src/test/scala/higherkindness/compendium/CompendiumArbitrary.scala
Show resolved
Hide resolved
…/ProtocolParser.scala Co-Authored-By: Roberto Serrano <[email protected]>
…/compendium into sc-skeuomorph-integration
modules/common/src/main/scala/higherkindness/compendium/models/IdlNames.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/resources/db/migration/V1__add_protocols_table.sql
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/db/PgDBService.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/core/CompendiumService.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/db/PgDBService.scala
Outdated
Show resolved
Hide resolved
modules/server/src/test/scala/higherkindness/compendium/parser/protocols.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/models/DBModels.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/models/DBModels.scala
Outdated
Show resolved
Hide resolved
modules/server/src/main/scala/higherkindness/compendium/db/DBService.scala
Outdated
Show resolved
Hide resolved
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.
Good job 👍
} | ||
|
||
override def parse(protocol: FullProtocol, target: Target): F[ParserResult] = | ||
skeuomorphParse(protocol, target).map(_.asRight[ParserError]) |
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.
Why ParserResult
as return type if we never handle the error from skeuomorphParse
and are just piping the correct FullProtocol
into it? Are we going to use ParserResult
left side in the future?
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.
Good one. My idea is to handle the error in the future. We need to storage the new protocol generated and for that, I'll use the result of the parser
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.
<3
In this PR I'm adding new content to Compendium. Some changes had to be done in order to make the Skeuomorph integration easier. Also, in this PR I'm adding the capability to convert Avro and Protobuf schemas to Mu.
This is not the final version of the Skeuomorph integration but I think is recommendable to merge this to make the code more maintainable and avoid tons of conflicts every time I merge from master 🙂
IDLs Conversions