Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

Add pagination support #9

Merged
merged 5 commits into from Jun 23, 2016
Merged

Add pagination support #9

merged 5 commits into from Jun 23, 2016

Conversation

lvh
Copy link
Contributor

@lvh lvh commented Jun 22, 2016

No description provided.

@codecov-io
Copy link

codecov-io commented Jun 22, 2016

Current coverage is 94.73%

Merging #9 into master will decrease coverage by 0.50%

@@             master         #9   diff @@
==========================================
  Files             1          2     +1   
  Lines            21         57    +36   
  Methods           0          0          
  Messages          0          0          
  Branches          1          4     +3   
==========================================
+ Hits             20         54    +34   
  Misses            0          0          
- Partials          1          3     +2   

Powered by Codecov. Last updated by 3bc589c...68f6d2b

[manifold.deferred :as md]))

(defn paginated->stream
"Given a resource with pagination semantics, turns it into a single
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should read "Given a resource with pagination semantics, turn it into a single stream that ..."

Choose a reason for hiding this comment

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

What about "Given a resource with pagination semantics, returns a single stream that ..."

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 think @derwolfe's objection is about person, not the word itself; so that'd be "return", I guess.

Copy link
Contributor

Choose a reason for hiding this comment

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

@lvh - you are correct about my objection.

@derwolfe
Copy link
Contributor

LGTM assuming ci passes.

@derwolfe derwolfe merged commit 413b568 into master Jun 23, 2016
an HTTP request). `get-results` is passed that value from `handle-todo`, and
should return the results in that value. These will be added to the output
stream. `get-next-todo` should return the next todo or nil if this is the
last page. `first-todo` is the first todo item to kick this process off."

Choose a reason for hiding this comment

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

I was just about to ask you to document these parameters. Good stuff.

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.

None yet

4 participants