Skip to content

Conversation

@jage
Copy link
Contributor

@jage jage commented Sep 12, 2015

  • Result#all_results_returned? can tell you if you got all results or need to “paginate”
  • Stop mutating the start_time and end_time objects
  • Improved examples

If merged this will require a version bump before release. Probably a major since start_time and end_time response has been altered.

jage and others added 7 commits September 12, 2015 13:48
If all matches has been returned, we have all results.
Previously we @start_time and @end_time would contain pre-formatted
strings, making it hard to compare the current set start_time/end_time
when paginating. Now we’re formatting just before constructing the url
parameters.
* Print post URLs, not blog URLs (do as the filename says)
* Implement a class to get all results, showing how time pagination
could be done
* Use a more refined pattern to avoid paginating through tens of
thousands results
@dentarg
Copy link
Contributor

dentarg commented Sep 12, 2015

👍

jage added a commit that referenced this pull request Sep 14, 2015
@jage jage merged commit 58696a8 into master Sep 14, 2015
@jage jage deleted the minor-convenience-improvements branch September 14, 2015 11:10
@jage jage changed the title Improve ability to paginate results Improve time pagination (Breaking start_time, end_time and introducing Result#all_results_returned?) Sep 14, 2015
@jage jage changed the title Improve time pagination (Breaking start_time, end_time and introducing Result#all_results_returned?) Improve time pagination Sep 14, 2015
@jage jage changed the title Improve time pagination Improve time pagination (breaking backwards compatibility start_time and end_time) Sep 14, 2015
@jage jage changed the title Improve time pagination (breaking backwards compatibility start_time and end_time) Improve time pagination (breaking compatibility for Query#start_time and Query#end_time) Sep 14, 2015
@jage jage changed the title Improve time pagination (breaking compatibility for Query#start_time and Query#end_time) Improve time pagination (breaking compatibility for Query#start_time and Query#end_time) Sep 14, 2015
@jage jage changed the title Improve time pagination (breaking compatibility for Query#start_time and Query#end_time) Improve time pagination (breaking compatibility for Query#start_time and Query#end_time) Sep 14, 2015
@dentarg dentarg mentioned this pull request Feb 15, 2016
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.

3 participants