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
75 stars 12 forks source link

incorrectly populating the classroom list for interactive mode #71

Closed physcrowley closed 1 month ago

physcrowley commented 2 months ago

Description of the observed behaviour

The two classrooms I created this semester are not showing up when I run the clone command but show up when I run the list command. Both classrooms are on the classic template-based scheme not the new fork-based scheme. The same behaviour is noted for both student-repos and starter-repo versions of the command.

It seems all commands are similarly affected except list: accepted-assignments, assignments, assignment, assignment-grades, pull, view.

image

image

Problem

I am unable to use the gh classroom tool to clone or pull student repos on my computer.

Attempts to get things working

I updated to the latest gh release and also remembered to update the extension. The updates did not change the outcome.

physcrowley commented 2 months ago

Going into the classroom on classroom.github.com and using the gh command there (with the direct assignment ID) worked perfectly.

image

As did listing the assignments by direct Classroom ID:

image

So...

The issue seems to just be incorrectly populating the classroom list for interactive mode. The list command gets the list right, but that command provides a direct output and does not need the interactive mode.

physcrowley commented 1 month ago

I just noticed that the interactive lists are scrollable and only show the first 7 elements. That may be the whole issue... I just wasn't scrolling beyond the end of the visible items.