Skip to content

Commit

Permalink
[Documentation:Submission] Update gradeable creation (#519)
Browse files Browse the repository at this point in the history
Co-authored-by: Barb Cutler <[email protected]>
  • Loading branch information
IDzyre and bmcutler authored Aug 15, 2023
1 parent 5f4e2ff commit d80e7f1
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 66 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,4 @@ DEPENDENCIES
webrick (~> 1.8)

BUNDLED WITH
2.2.24
2.2.24
83 changes: 25 additions & 58 deletions _docs/instructor/assignment_preparation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ redirect_from:
- /instructor/create_edit_gradeable
---

![](/images/new_gradeable_form.png)
![](/images/instructor/assignment_preparation/new_gradeable.png)

### Create a New Gradeable

To create a new gradeable, instructor users should click the "New
Gradeable" button in the top right corner, under the Submitty logo.
Fill out this form (details in the following sections) and press "Add
Gradeable".
To create a new gradeable, instructor users should click "New
Gradeable" in the sidebar on the left of the screen.
Fill out this form (details in the following sections) and press "Create New Gradeable".

Most of the fields on the Create/Edit Gradeable form can be changed
later. You can return to this form from the main page by pressing the
Expand All @@ -31,19 +30,18 @@ TAs have started grading!_




### Types of Gradeables

A "Gradeable" is any single item that will be graded automatically
and/or manually by the instructor/TAs. We offer 3 basic types of
gradeables: electronic submission, numeric, or checkboxes.

and/or manually by the instructor/TAs.

**_Electronic Submission_** should be used for
homework/project/exercise file uploads by students (e.g., code,
.pdfs, images, etc.) or submitted via VCS. Electronic Submission
can be automatically graded, fully manually graded, or a combination
of both.
**_Checkpoints_** should be used for manually graded items with one
or more parts that are marked as full, half, or no credit. This is
commonly used for in class exercises (e.g., lab or recitation)
where the TAs verify the students have completed the exercise and
demonstrated sufficient competency with the material. Similar to
numeric gradeables, we provide a spreadsheet-like interface for
manual data entry.

**_Numeric_** is used for data entry of quizzes or exams where the
scores for each student are a simple array of one or more numbers
Expand All @@ -54,15 +52,13 @@ gradeables: electronic submission, numeric, or checkboxes.
if your numeric scores for this gradeable are already in an
electronic format.

**_Checkpoints_** should be used for manually graded items with one
or more parts that are marked as full, half, or no credit. This is
commonly used for in class exercises (e.g., lab or recitation)
where the TAs verify the students have completed the exercise and
demonstrated sufficient competency with the material. Similar to
numeric gradeables, we provide a spreadsheet-like interface for
manual data entry.

**_Student File Submission_** There are two types of gradeables where students can submit their files
to Submitty: directly uploading to the website, or submitting the files using a version control system (VCS).
These should be used for homework/project/exercise where students will directly upload files (e.g., code,
pdfs, images, etc.) to Submitty for grading. (For help with VCS gradeables, view [Submission via Version Control](/instructor/assignment_preparation/submission_version_control) ).

**_TA/Instructor Upload_** should be used when a TA or instructor will (bulk) upload assignments to
Submitty for grading.


### Autograding Configuration Path
Expand Down Expand Up @@ -98,7 +94,7 @@ From the create/edit a gradeable page you can specify (or change):
students.

* the date/time the student can start making grade inquiries, if grade inquiry is enabled for the gradeable.



### Grading User Groups
Expand Down Expand Up @@ -216,7 +212,7 @@ you must re-run the BUILD_XXXX.sh script.
directory:

```
/var/local/submitty/courses/s17/course_01/submissions/ASSIGNMENT_ID/USER_ID/VERSION
/var/local/submitty/courses/SEMESTER/COURSE/submissions/ASSIGNMENT_ID/USER_ID/VERSION
```

For direct file upload submissions (single file or .zip) this
Expand All @@ -226,17 +222,17 @@ you must re-run the BUILD_XXXX.sh script.
`.submit.timestamp` file. This is the time of submission, not
the time that automated grading started/finished.

For submission via SVN, this directory will only contain the
For submission via VCS, this directory will only contain the
`.submit.timestamp` file. This timestamp will be used to retrieve
the state of the repo at the time of submission.


4. For SVN submissions, you may also inspect an archive of the
files/directory structure SVN repo at submission time in this
4. For VCS submissions, you may also inspect an archive of the
files/directory structure VCS repo at submission time in this
directory:

```
/var/local/submitty/courses/s17/course_01/checkout/ASSIGNMENT_ID/USER_ID/VERSION
/var/local/submitty/courses/SEMESTER/COURSE/checkout/ASSIGNMENT_ID/USER_ID/VERSION
```


Expand All @@ -245,40 +241,11 @@ you must re-run the BUILD_XXXX.sh script.
in this directory:

```
/var/local/submitty/courses/s17/course_01/results/ASSIGNMENT_ID/USER_ID/VERSION
/var/local/submitty/courses/SEMESTER/COURSE/results/ASSIGNMENT_ID/USER_ID/VERSION
```

In this directory you will find the `results_grade.txt` summary of
the automated grading results, and STDOUT, STDERR, execution
logfiles for each test case. You will also find log files for the
compilation, runner, and validation components of automated grading
that are helpful in debugging assignment configurations.

### 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
"Electronic File" and then "Version Control System (VCS) Repository".
You will then be presented with a textbox to type in the repo url to
use. If the string does not start with a / nor has a "://" in it, it
will combine the contents of the textbox with the base url. You will
see the URL/path that will be shown to the users underneath the text
box.

![](/images/create_gradeable_git.png)

Additionally, the text field supports 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 submitted
* {$user_id} - ID of user who is submitting
* {$team_id} - ID of team who is submitting

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.
Original file line number Diff line number Diff line change
Expand Up @@ -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

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.

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.
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.

![](/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:
Expand Down
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.
Binary file removed images/new_gradeable_form.png
Binary file not shown.

0 comments on commit d80e7f1

Please sign in to comment.