gh-classroom icon indicating copy to clipboard operation
gh-classroom copied to clipboard

incorrectly populating the classroom list for interactive mode

Open physcrowley opened this issue 1 year ago • 1 comments

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 avatar May 05 '24 23:05 physcrowley

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 avatar May 06 '24 00:05 physcrowley

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.

physcrowley avatar Jun 07 '24 19:06 physcrowley