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

[Bug] Incorrect submission number in CLI. #63

Closed ashwinexe closed 1 month ago

ashwinexe commented 7 months ago

Describe the bug Classroom CLI seems to show submission as zero while the Classroom webpage shows Non zero submissions.

Expected Behavior Classroom CLI should show the same number of submissions as displayed on the webpage dashboard

Additional Context

I was going through GitHub Octernships submission of our latest partner and used classroom cli to check stats. For some reason, submission shown in webpage (screenshot attached) shows 15 submissions while CLI shows 0 (screenshot attached) Upon further investigation, it seems every classroom shows up 0 submissions under cli while it has a number on the classroom page.

Screenshots

Webpage Screenshot 2023-12-01 at 3 59 22 PM

CLI Screenshot 2023-12-01 at 3 59 59 PM

nixpad commented 5 months ago

@ashwinexe 👋 thank you for submitting this issue! cc @RyanHecht for visibility and prioritization.

DiegoPerezGarcia commented 3 months ago

I've investigated and I have the same issue. I think it's more a server problem with the endpoint more than a problem with the extension it self.

I did a GET request to https://api.github.com/assignments/353859 and received "submissions: 0" when the assignment have 9 submissions.

Captura de pantalla 2024-04-01 a las 20 22 53 Captura de pantalla 2024-04-01 a las 20 25 05