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

Implementation for issue #4 #37

Merged
merged 4 commits into from
Sep 25, 2023
Merged

Implementation for issue #4 #37

merged 4 commits into from
Sep 25, 2023

Conversation

shanep
Copy link
Contributor

@shanep shanep commented Sep 14, 2023

What are you trying to accomplish?

Implementation for issue #4

Downloading all the student repo is now the default behavior. All the original functionality such as downloading per page still exists. In almost all cases that I can think of an instructor or TA/LA wants all the assignments for a class so by default this feature is enabled and must be explicitly turned off to got back to the original.

What approach did you choose and why?

I added a new function and associated tests to get all the assignments. The new function simply calls the rest API in a loop until it receives no more input.

What should reviewers focus on?

I haven't written much go code so any feedback is appreciated :)

@shanep shanep requested a review from a team as a code owner September 14, 2023 21:49
@shanep shanep mentioned this pull request Sep 19, 2023
@shanep
Copy link
Contributor Author

shanep commented Sep 19, 2023

This also addresses issue #35

@RyanHecht
Copy link
Collaborator

Hi @shanep,

Thanks for this contribution! We agree that a single-command solution to downloading all student submissions is in the best interest for teachers. Our team is currently working on auditing the relevant API endpoints to ensure that we can scale with this new interface!

pkg/classroom/http.go Outdated Show resolved Hide resolved
pkg/classroom/http.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@zrdaley zrdaley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this contribution! We agree that a single-command solution to downloading all student submissions is in the best interest for teachers. Our team is currently working on auditing the relevant API endpoints to ensure that we can scale with this new interface!

@RyanHecht I think these changes (with a few modifications) can be a great interim fix to the problem that teachers are facing.

I've left some comments above for @shanep that we can hopefully resolve in order to get these changes approved! Thank you for your hard work on this PR ✨

Co-authored-by: Zenara Daley <zrdaley@github.com>
pkg/classroom/http.go is only meant to contain API calls.

modified:   cmd/gh-classroom/accepted-assignments/accepted_assignments.go
modified:   cmd/gh-classroom/clone/student-repos/student-repos.go
modified:   cmd/gh-classroom/shared/shared.go
modified:   pkg/classroom/http.go
modified:   pkg/classroom/http_test.go
Copy link
Collaborator

@zrdaley zrdaley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Thank you for making those changes 🚢

@zrdaley zrdaley merged commit c71505f into github:main Sep 25, 2023
4 checks passed
@shanep shanep deleted the clone-all-repos branch September 25, 2023 23:22
@shanep shanep restored the clone-all-repos branch September 25, 2023 23:22
@shanep shanep deleted the clone-all-repos branch November 7, 2023 14:50
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

Successfully merging this pull request may close these issues.

3 participants