`--per-page N` to get all students fails for large N
- Lingua principale
- Go
- Stelle
- 125
- Fork
- 21
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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:
```sh
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?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo `gh classroom clone student-repos --per-page 199` e segui l’entry point `clone student-repos` che costruisce la richiesta `accepted_assignments`. Il lavoro è completato quando le coorti con più di 100 elementi non restituiscono più HTTP 500 e il comando può clonare tutti gli studenti richiesti, includendo il pull se rientra ancora nell’ambito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github, go
- Ambito
- api, cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100