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

Update dependencies (Cats 1.0.0-MF) #137

Merged
merged 10 commits into from
Oct 6, 2017
Merged

Update dependencies (Cats 1.0.0-MF) #137

merged 10 commits into from
Oct 6, 2017

Conversation

peterneyens
Copy link
Contributor

This PR upgrades Fetch to Cats 1.0.0-MF (and monix to 3.0.0-M1, catbird to 0.18.0).
We are now also using sbt 1.0.2 (thanks to @suhasgaddam for his help here and in sbt-org-policies).

@codecov-io
Copy link

codecov-io commented Oct 6, 2017

Codecov Report

Merging #137 into master will decrease coverage by 0.72%.
The diff coverage is 88.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #137      +/-   ##
==========================================
- Coverage   78.81%   78.09%   -0.73%     
==========================================
  Files          15       16       +1     
  Lines         321      315       -6     
  Branches        2        2              
==========================================
- Hits          253      246       -7     
- Misses         68       69       +1
Impacted Files Coverage Δ
shared/src/main/scala/interpreters.scala 100% <ø> (ø) ⬆️
shared/src/main/scala/FetchMonadError.scala 100% <ø> (ø) ⬆️
monix/shared/src/main/scala/monix.scala 78.57% <ø> (ø) ⬆️
shared/src/main/scala/freeinspect.scala 61.53% <100%> (ø) ⬆️
...rc/main/scala/interpreters/MaxBatchSizePhase.scala 100% <100%> (ø) ⬆️
.../src/main/scala/interpreters/CoreInterpreter.scala 91.35% <100%> (-0.11%) ⬇️
shared/src/main/scala/fetch.scala 88.23% <100%> (+5.3%) ⬆️
shared/src/main/scala/datasource.scala 66.66% <50%> (ø) ⬆️
shared/src/main/scala/Query.scala 62.5% <62.5%> (ø)
...rc/main/scala/interpreters/ParallelJoinPhase.scala 83.87% <92.85%> (-5.32%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a137c94...fbef2df. Read the comment docs.

Copy link
Contributor

@fedefernandez fedefernandez left a comment

Choose a reason for hiding this comment

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

The code looks good to me, just left a couple of minor questions. Thanks

giphy 3

@@ -1184,8 +1161,6 @@ Note that Cats' typeclass hierarchy is expressed with inheritance and methods fr
We make use of the `FromMonadError` class below, making it easer to implement `FetchMonadError[Task]` given a `MonadError[Task, Throwable]` which we can get from the _monix-cats_ projects.

```tut:silent
import monix.cats._

implicit val taskFetchMonadError: FetchMonadError[Task] =
new FetchMonadError.FromMonadError[Task] {
override def runQuery[A](q: Query[A]): Task[A] = queryToTask[A](q)
Copy link
Contributor

Choose a reason for hiding this comment

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

Has this method been removed here? Should this be updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the method from FromMonadError because it is inherited from FetchMonadError.


class FetchRunner[M[_]] {
private[fetch] class FetchRunner[M[_]](private val dummy: Boolean = true) extends AnyVal {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious, why we need this dummy value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is a trick to make FetchRunner a value class that is used in Cats as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

Great, thanks for the responses

Copy link
Contributor

@juanpedromoreno juanpedromoreno left a comment

Choose a reason for hiding this comment

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

LGTM!

I'd suggest releasing 0.7.0, but it can be tackled in a separate PR. Outstanding job!

@peterneyens
Copy link
Contributor Author

II think if we merge this, merge master in #135 it will pass as well.
After that I'll open an new PR for a 0.7.0 release.

@peterneyens peterneyens merged commit 5ff09b7 into master Oct 6, 2017
@fedefernandez fedefernandez deleted the peter-cats-1mf branch October 16, 2023 07:39
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.

None yet

5 participants