-
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
Allow instructors to share files via shared group id #1000
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8aecb74
Add Exchange.groupshared config option
rkdarst a67c6b6
Be less strict on group directory ownership when multiuser
rkdarst 0a97545
Adjust creation permissions for the groupshared case
rkdarst 8299543
Don't check and require exchange root +w for everyone
rkdarst de69f80
groupshared: Fix another group permissions issue
rkdarst 796cac5
Make the release process group shared
rkdarst 6ceecc6
converters/base: Use groupshared to set permissions.
rkdarst 50cb0d7
groupshared: fix permissions of subdirs of release/ directory
rkdarst 265c288
groupshared: make the "collect" step preserve g+w permissions
rkdarst 785379a
groupshared: remember to set setgid on directories (assign/collect)
rkdarst 4d76038
groupshared try/except before chmod, not test uid
rkdarst 69c830e
Expand try/except clauses away from single lines
rkdarst 9d3e9dd
groupshared: use c.CourseDir.groupshared option
rkdarst 2f68ae2
groupshared: update configuration option documentation
rkdarst aae30f0
Remove unneeded comments
rkdarst 7ea6d1e
groupshared: handle permissions of generate_feedback
rkdarst 4e3ab4b
groupshared: log errors when modes can not be changed
rkdarst 9003c7c
groupshared: Add support to release_feedback
rkdarst 4b02a66
groupshared: doc update, mention that default is writeable
rkdarst faf185d
groupshared: Add tests
rkdarst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it would be nice in the groupshared case if the permissions are not set up properly to at least print a warning/error rather than failing with a traceback later (which is what I assume happens if the permissions aren't correct).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This checks if the exchange directory is writeable (even when run as a student). But students only need access to write to {root}/inbound. So the real issue isn't related to groupshared, it's just that groupshared causes me be a bit more precise, so this got thrown in here.
What do you think we should do? I can think of at least: a) leave it as is for now, b) make check_exchange_root a configuration option that can be disabled, c) nothing, I make it a separate local change I maintain separately, or d) I allow the root to be writeable by students.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose (a), it's least invasive and has least risk, and if someone is doing groupshared stuff, they are probably able to debug permission errors pretty easily.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh oops, I missed this comment before I merged. But yes, I agree with your assessment, I think it's fine to leave it as it is for now.