`--per-page N` to get all students fails for large N
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing gh classroom clone student-repos --per-page 199 and trace the clone student-repos entry point that builds the accepted_assignments request. Done means cohorts over 100 no longer return HTTP 500 and the command can clone all requested students, with pulling included if that remains in scope.
Written by the indexing model from the issue text.
Description
You can use the `--per-page` and `--page` flags of `clone student-repos` to pull more than 30 assignments per page and view other pages! Another user is also working on a `clone-all` option that should be coming soon!
Originally posted by @RyanHecht in https://github.com/github/gh-classroom/issues/12#issuecomment-1719538429
Sadly trying to get all pages for something over about 100 students fails with:
gh classroom clone student-repos --per-page 199 --directory /tmp/grading
HTTP 500: Server Error (https://api.github.com/assignments/.../accepted_assignments?page=1&per_page=199)
Is there any progress on a clone and pull for all students?
- Dominant language
- Go
- Stars
- 126
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
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 github/gh-classroom
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
github/gh-classroom#95 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/gh-classroom#21 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
github/gh-classroom#116 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
github/gh-classroom#110 ·
-
Sanitize Team name Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
github/gh-classroom#109 ·
All issues in github/gh-classroom
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crossplane/crossplane#7859 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bazel-contrib/rules_go#4721 · 2 comments ·
-
needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
bug carvel-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
carvel-dev/kapp-controller#1861 ·
-
area/logging kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100