"gh clone student-repos" not showing certain assignments
Describe the bug
When I use gh classroom clone student-repos not all the assignments in my classroom are visible
Steps to reproduce the behavior
- Created a new assignment.
- Used dummy student account to accept assignment.
- Made a change and then synchronised the "student repo".
- The changes appear on the student repo page.
- When running
gh classroom clone student-reposI select the classroom and then want to select the appropriate assignment to clone but can't
Expected vs actual behavior
Other assignments are visible but 2 are not. I would expect all the assignments should be visible when I run gh classroom clone student-repos. If I run gh classroom assignments I can see that the project and class_test_2023 are visible and there is at least one student who has synced properly.
The only difference, if it is significant, between these assignments is that when first created project and class_test_2023 had a deadline. I tried editing this deadline to remove it but still can't see in list of assignments on cli. What am I missing?
Hello 👋 I'm sorry you have been having trouble.
Does the command work when you manually add the assignment flag?
gh classroom clone student-repos -a $id_of_assignment
Thanks for the reply. I can confirm that the above command clones the assignment, so the issue seems to just be that the assignments are not showing up in the list of options
I've also just created a new assignment where I didn't include any deadline using the same starter files and this also had the same issue. ie appeared in the list of assignments but not in the options for gh clone student-repos. It looks like the deadline is therefore not relevant.
Other things that may be relevant: "project" and "classroom_test_2023" the two that do not show up were created after the other ones listed and it seems from the test like this is going to affect other new repos.
Tested on 3 different Windows 10 machines with same issue. git version 2.41.0.windows.1 gh version 2.30.0 (2023-05-30) on at least two of them
@mikesmithlab when you run gh clone student-repos and then select a classroom, it will only show X (7 on a mac) number of assignments in the list and then you have to use the arrow keys to scroll further down. I tested this with an classroom with many assignments and it works on a MacOS terminal.
Are you unable to scroll through all the assignments?
I didn't notice this issue when I created #71 - the solution was entirely that I had to scroll (with the arrows) through the list...
Maybe that hint/message could be added to the interface for clarity.
@mikesmithlab when you run
gh clone student-reposand then select a classroom, it will only show X (7 on a mac) number of assignments in the list and then you have to use the arrow keys to scroll further down. I tested this with an classroom with many assignments and it works on a MacOS terminal.Are you unable to scroll through all the assignments?
@zrdaley : I am having a similar problem; it shows me 10 assignments (from previous years), but not the latest assignment, which is the one I want to clone. There seems to be no way I can extend the list beyond 10 entries.
In addition, the command "gh classroom clone student-repos -a $id_of_assignment" gives me an error: ".... HTTP 404: Not Found ..."