Skip to content

Refactor and use some more cats features - #73

Merged
1 commit merged into
reportingfrom
peter-reporting-refactor
Nov 4, 2016
Merged

Refactor and use some more cats features#73
1 commit merged into
reportingfrom
peter-reporting-refactor

Conversation

@peterneyens

Copy link
Copy Markdown
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

ghost commented Nov 4, 2016

Copy link
Copy Markdown

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

@codecov-io

Copy link
Copy Markdown

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.

2 participants