Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Skeuomorph Integration - Part 1 #54

Merged
merged 17 commits into from
Jul 15, 2019
Merged

Skeuomorph Integration - Part 1 #54

merged 17 commits into from
Jul 15, 2019

Conversation

Yawolf
Copy link
Contributor

@Yawolf Yawolf commented Mar 24, 2019

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 🙂

  • Endpoints Added and modified
  • Parse function into CompendiumService
  • ProtocolParserService typeclass as a Skeuomorph abstraction
  • Emulate IDL name in Protocol Metadata

IDLs Conversions

  • From Avro to Mu
  • From Protobuf to Mu

@JesusMtnez JesusMtnez added this to the 0.1.0 milestone May 27, 2019
Yawolf added 2 commits May 28, 2019 09:43
# 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
@JesusMtnez JesusMtnez added the WIP Work-in-progress label Jul 5, 2019
@JesusMtnez JesusMtnez changed the title [WIP] - Skeuomorph Integration Skeuomorph Integration Jul 5, 2019
@JesusMtnez JesusMtnez removed this from the 0.1.0 milestone Jul 5, 2019
Yawolf added 3 commits July 5, 2019 08:43
# 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
@Yawolf Yawolf removed the WIP Work-in-progress label Jul 5, 2019
@Yawolf Yawolf marked this pull request as ready for review July 5, 2019 18:26
@Yawolf Yawolf changed the title Skeuomorph Integration Skeuomorph Integration - Part 1 Jul 5, 2019
@JesusMtnez JesusMtnez dismissed their stale review July 8, 2019 10:47

I wanted to send the comments, not to approve

.gitignore Show resolved Hide resolved
Co-Authored-By: Juan Pedro Moreno <[email protected]>
Copy link
Contributor

@bilki bilki left a comment

Choose a reason for hiding this comment

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

Nice job @Yawolf!

Copy link
Contributor

@bilki bilki left a 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])
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Member

@pepegar pepegar left a comment

Choose a reason for hiding this comment

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

<3

@Yawolf Yawolf merged commit 308a780 into master Jul 15, 2019
@Yawolf Yawolf deleted the sc-skeuomorph-integration branch July 15, 2019 07:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants