Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikesmithlab opened this issue Oct 31, 2023 · 5 comments
Open

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

mikesmithlab opened this issue Oct 31, 2023 · 5 comments

Comments

@mikesmithlab
Copy link

mikesmithlab commented Oct 31, 2023

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
Copy link
Collaborator

zrdaley commented Nov 1, 2023

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
Copy link
Author

mikesmithlab commented Nov 2, 2023

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
Copy link
Collaborator

zrdaley commented Nov 2, 2023

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

@physcrowley
Copy link
Contributor

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.

@lsl0pes
Copy link

lsl0pes commented Nov 10, 2024

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

@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 ..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants