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

groupshared feedback re-release fix #1667

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

franswel
Copy link

Groupshared users could not re-release student feedback due to shutil.copy functionality used by release_feedback. Shutil.copy tries to chmod the destination file which does not work in groupshared scenarios where files have different owners but same groups. Therefore groupshared users cannot copy a new generated feedback with the same name over the old one owned by another user. In the fix the file gets copied in a temporary location and is moved over the old file.

Tests were not implemented as I believe it is not possible to test interactions requiring multiple users automatically. To replicate the issue, you need two users with groupshared enabled that release feedback for the same student's assignment.

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch AaltoSciComp/nbgrader/multi-instructor-feedback

@rkdarst
Copy link
Contributor

rkdarst commented Jan 11, 2023

This is a follow up of #1000, and is live at our site for a while now. It's also nice that it makes feedback releasing an atomic operation, so I think this should be "good to go". Existing tests should cover the actual functionality, and like @franswel said testing the multi-user interaction is probably too hard.

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.

None yet

2 participants