-
Notifications
You must be signed in to change notification settings - Fork 317
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
Release feedback fails after #1774 #1897
Comments
Oops, I guess at the time of making that PR, I didn't think that people would upgrade nbgrader in the middle of a course, which is my fault. As a quick fix, it may be possible to downgrade and release feedback for that student individually (so that other submissions don't create problems if they have a For a more general fix, I guess the old code is still there, so we could have an if statement seeing if the file exists. But suppose a case where the Happy to hear other opinions as well! |
Hi! Thanks for the quick reply. It's not a big problem for us, but I just wanted to let you know because I guess it was an unintended side effect of that PR. And yes, we recreate our JupyterHub image every week updating all packages (nbgrader included) using the compatible release operator. In the case of nbgrader I use |
We will need a solution that can operate across a "live" course: our institution teaches summer courses and evening classes that fall outside the normal academic semesters - so we can have active courses any time. |
I think because of #1774, trying to re-release feedback can fail if submission was done prior to the update because the current code does not take into account that the file
submission_secret.txt
might not exist.nbgrader/nbgrader/exchange/default/release_feedback.py
Lines 66 to 67 in e0b2e65
Operating system
nbgrader --version
jupyterhub --version
(if used with JupyterHub)4.0.2
jupyter notebook --version
7.2.1
Expected behavior
Updating nbgrader should not break releasing feedback of older submissions.
Actual behavior
If
submission_secret.txt
does not exist in the feedback folder, release feedback will fail.Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: