github / gh-classroom

GitHub Classroom CLI Extension is a powerful and easy-to-use command line tool that enhances the functionality of the GitHub CLI, specifically tailored for educators using GitHub Classroom.
MIT License
82 stars 14 forks source link

"gh clone student-repos" not showing certain assignments #52

Open mikesmithlab opened 11 months ago

mikesmithlab commented 11 months ago

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

  1. Created a new assignment.
  2. Used dummy student account to accept assignment.
  3. Made a change and then synchronised the "student repo".
  4. The changes appear on the student repo page.
  5. When running gh classroom clone student-repos I 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? output

zrdaley commented 11 months ago

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
mikesmithlab commented 11 months ago

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

zrdaley commented 11 months ago

@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?