Automatically handle pagination
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with the client's requests method and the linked GitHub REST pagination documentation, especially Link headers. Trace how callers currently consume response objects before deciding how pagination should be exposed. Done means paginated responses can be fetched incrementally while callers can choose whether to request another page.
Written by the indexing model from the issue text.
Description
Many Github APIs are paginated, there is documentation on how to handle that here:
https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api?apiVersion=2022-11-28#using-link-headers
We should handle this implicitly, perhaps turning the requests method into a generator with each iteration returning a new response object. This way callers can decided whether to fetch the next page or not
- Dominant language
- Python
- Stars
- 3
- Forks
- 8
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 9
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 mozilla-releng/simple-github
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozilla-releng/simple-github#196 · 1 comment ·
-
Dependency Dashboard Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
All issues in mozilla-releng/simple-github
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
zostera/django-bootstrap4#894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
use-agent-os/agent-os#3276 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·