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

Refactor and use some more cats features #73

Merged
1 commit merged into from
Nov 4, 2016
Merged

Conversation

peterneyens
Copy link
Contributor

  • Refactor interpreter: split out handling of FetchOne, FetchMany
    and Concurrent, use XorT in processMany to reduce nested folds,
    use Validated in processMany and processConcurrent to get
    missing ids/identities or some result.
  • (Prematurely ?) optimize Fetch.join
  • Replaced custom implementations of map2, sequence and traverse
    by using Applicative[Fetch]
  • ...

I moved some methods around in the Fetch object and with the
extraction of the three methods in the interpreter, so the diff looks
much bigger than it actually is.

- Refactor interpreter: split out handling of `FetchOne`, `FetchMany`
  and `Concurrent`, use `XorT` in `processMany` to reduce nested folds,
  use `Validated` in `processMany` and `processConcurrent` to get
  missing ids/identities or some result.
- (Prematurely ?) optimize `Fetch.join`
- Replaced custom implementations of `map2`, `sequence` and `traverse`
  by using `Applicative[Fetch]`
- ...

I moved some methods around in the `Fetch` object and with the
extraction of the three methods in the interpreter, so the diff looks
much bigger than it actually is.
@ghost
Copy link

ghost commented Nov 4, 2016

Amazing work 👏 👏, learning a lot form these contributions.

@codecov-io
Copy link

Current coverage is 69.74% (diff: 79.51%)

Merging #73 into reporting will decrease coverage by 2.20%

@@           reporting        #73   diff @@
===========================================
  Files              8          8          
  Lines            164        195    +31   
  Methods          158        190    +32   
  Messages           0          0          
  Branches           6          5     -1   
===========================================
+ Hits             118        136    +18   
- Misses            46         59    +13   
  Partials           0          0          

Powered by Codecov. Last update 38a8fd4...f173dfd

@ghost ghost merged commit bc7e679 into reporting Nov 4, 2016
@ghost ghost deleted the peter-reporting-refactor branch November 4, 2016 11:45
This pull request was closed.
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

2 participants