-
Notifications
You must be signed in to change notification settings - Fork 53
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
[Documentation:Submission] Update gradeable creation #519
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e584638
update gradeable creation references
IDzyre 5ed74a4
nia's changes
IDzyre 2994e5a
Merge branch 'main' into updateGradeable
IDzyre 6552b45
remove image
IDzyre 1806297
Merge branch 'updateGradeable' of github.com:Submitty/submitty.github…
IDzyre a7042c9
merge and merge conflicts
IDzyre c81a6ee
Merge branch 'main' into updateGradeable
IDzyre be69058
Merge branch 'main' into updateGradeable
IDzyre c1750fb
Merge branch 'main' into updateGradeable
IDzyre 4d3ba10
Merge branch 'main' into updateGradeable
bmcutler 597730c
gemlock edit
bmcutler 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,22 +7,61 @@ redirect_from: | |
- /instructor/git | ||
--- | ||
|
||
### Using Git | ||
|
||
Submitty supports utilizing Git for handling submissions by students. | ||
When a student hits "submit", Submitty performs a clone of their | ||
repository. Submitty then does a checkout of the last revision made before | ||
the timestamp of when they hit the submit button. | ||
|
||
To configure Git for an assignment, you will want to select type | ||
"Students will submit by committing files to a version control system (VCS) repository", | ||
and then chosing the option that suits your needs. | ||
|
||
![](/images/instructor/assignment_preparation/vcs_gradeable_type.png) | ||
|
||
Submitty comes with a setup for an internal Git server out of the box, | ||
but if you wish to use an external source, such as Github, you may need | ||
to configure Submitty to be able to access those repos via SSH. See | ||
[System Administrator/Setting Up Git](/sysadmin/git) for more details. | ||
|
||
|
||
### Assignment Creation | ||
|
||
1. When you create a new gradeable, specify that students will submit | ||
their work by version control (GIT). _Note: this selection cannot be | ||
modified after initial gradeable creation._ | ||
Text fields in the VCS Repository Details section support the following list of "variables" | ||
which get replaced during execution of Submitty: | ||
* {$vcs_type} - VCS type being used (currently always git) | ||
* {$gradeable_id} - ID of gradeable being submitteds | ||
* {$user_id} - ID of user who is submitting | ||
* {$team_id} - ID of team who is submitting | ||
|
||
2. If this is a team assignment, encourage the students to form their teams through the Submitty interface promptly, so they are not delayed by the creation of their team version control repository. | ||
There are multiple different options for students submitting files from version control. | ||
|
||
* Submitty hosted -- single gradeable repository | ||
- This should be used when you want Submitty to create an empty repository for each student in the course automatically. | ||
The path to this repository will be {$vcs_base_url}/{$gradeable_id}/{$user_id}. | ||
* Submitty hosted – choose repository name (can be used for multiple gradeables) | ||
- This should be used when you want to specify the repository path, instead of using the gradeable id. This can be used for multiple gradeables. | ||
* Externally hosted - public repository, students will provide URL | ||
- This should be used if the students will create repositories and supply the link. | ||
* Externally hosted - private repository, students will provide URL -- (INCOMPLETE) | ||
- The implementation of the access requirements for this gradeable is incomplete. | ||
* Externally hosted - Instructor created repository | ||
- This should be used if the Instructor/Sysadmin creates a repository that all students fork. | ||
|
||
|
||
If this is a team assignment, encourage the students to form their teams through the Submitty interface promptly, so they are not delayed by the creation of their team version control repository. | ||
|
||
3. If the students files will be in a subdirectory of their main repository, select "yes" and put the path to the student's files in the required field. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Number says 1 on localhost, not 3. Numbering is broken here. |
||
|
||
![](/images/instructor/assignment_preparation/subdirectory_gradeables.png) | ||
|
||
### Generating Submitty Server Version Control Repositories | ||
|
||
Once you have created the gradeable, you may create empty repositories | ||
for each student/team for that assignment. The provided script | ||
`generate_repos.py` creates a bare shared repository with restricted | ||
permissions | ||
for each student/team for that assignment if you are using the Submitty hosted | ||
VCS repositories. The provided script `generate_repos.py` creates a bare | ||
shared repository with restricted permissions. | ||
|
||
The script accepts a `--help` flag to explain the arguments it | ||
accepts. The basic usage: | ||
|
@@ -76,7 +115,6 @@ _TODO:_ | |
_TODO:_ | ||
|
||
|
||
|
||
### Uploading Instructor Provided Code to GIT | ||
|
||
|
||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Should be
...their files to Submitty: directly...