Open sckott opened 9 years ago
This probably will require using something that can maintain state, like an R6
class
paging notes
per_page/page interface --- assuming max is > 20 limit = 20 -> per_page = 5 offset = 15 -> page = 4 chunk_size = 5 stop -> 20 (so, get 4 pages)
limit/offset interface --- assuming max is > 20 limit = 20 offset = 0 chunk_size = 5 stop -> 20 (so, get 4 pages ({limit = 5, offset = 0}, {limit = 5, offset = 5}, etc.))
moving to next milestone, trying to get MVP out #10
various paging patterns:
limit
&offset
- specify no. desired, and which record to start atper_page
&page
- specify no. desired, and which page to return (page size variable)next
,first
,last
, orprev
links - if these provided, in all cases should probably use these - Github recommends that at leastexamples
page
,per_page
limit
,offset
rows
,offset
limit
,offset
(Elasticsearch backed, but not exposed directly)limit
,cursor
pagesize
,startrow
limit
,offset
limit
,offset
page_size
,page
per_page
,page
rows
,start
(solr backed)rows
,start
(solr backed)rows
,start
(solr backed)rows
,start
(solr backed)page_size
,page
(Elasticsearch backed)count
(that's it, AFAICT, not sure this is accurate)limit
,page
approach
Automagically figure out what params to pass and their values given user input. We'll need some user input:
Things we can figure out automatically