Allow setting page size separately from limit in `page_cursor()`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start in R/connect.R around line 725, where page_cursor() currently derives page size and total results from limit. Determine an interface that permits those values to differ, then verify that the existing limit behaviors remain intact and that separate page-size and total-result values work as intended.
Written by the indexing model from the issue text.
Description
page_cursor() currently has strange behavior where the limit argument controls both the total number of results and the page size, but in different ways.
- If
limit = Inf, page size is 500 and you get all results - If
limit > 500 & limit < Inf, page size is 500 and you getlimitresults - If
limit > 0 & limit <= 500, page size islimitand you getlimitresults
There is no way to, say, set the page size and limit to different values unless limit > 500. We should expose more flexibility here.
- Dominant language
- R
- Stars
- 54
- Forks
- 27
- Avg merge
- 1d 3m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/connectapi
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
posit-dev/connectapi#249 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
posit-dev/connectapi#527 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
posit-dev/connectapi#526 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
posit-dev/connectapi#486 ·
-
Difficulty 5/5 Over a week Newbie friendliness 28/100
posit-dev/connectapi#474 ·
All issues in posit-dev/connectapi
Similar issues
-
documentation pkg infrastructure
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
epiverse-trace/epiparameter#511 ·
-
function:write_dwc
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Urgent request: Due to vulnerabilities move to API version 12.6.1 (12.6.2 eventually) or 13.1.1 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
jbkunst/highcharter#849 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100