This repository was archived by the owner on Jan 7, 2025. It is now read-only.
forked from autolab/Autolab
-
Notifications
You must be signed in to change notification settings - Fork 0
Multi assessment import #73
Open
Searay-330
wants to merge
11
commits into
master
Choose a base branch
from
multi-assessment-import
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
007aae7
added ip to settings file (#71)
Searay-330 376e711
start file for import
Searay-330 843a989
import multiple assessments from tar
Searay-330 40aa7e5
Update README
Searay-330 48b29a8
Rename README to README.md
Searay-330 020a8f2
updated how imports work no sections yet but much more robust
Searay-330 c357755
Merge branch 'multi-assessment-import' of https://github.com/UBAutogr…
Searay-330 4a60bf8
updated examples
Searay-330 41ee8be
Update README.md
Searay-330 e7cd163
Update README.md
Searay-330 20a1bb5
changed version numbers to be more useable, examples and readme updat…
Searay-330 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| <% @title = "Mutliple Assessment Importer" %> | ||
|
|
||
| <% content_for :javascripts do %> | ||
| <script type="application/javascript"> | ||
| jQuery(function() { | ||
| $importTarballForm = $('#import-tarball-form'); | ||
| $tarballFilenameInput = $('#tarFile-name'); | ||
|
|
||
| /* two-way-bind newDayField with daysField */ | ||
| $tarballFilenameInput.on('change', function() { | ||
| $importTarballForm.submit(); | ||
| }); | ||
| }); | ||
| </script> | ||
| <% end %> | ||
|
|
||
|
|
||
|
|
||
| <div class="section"> | ||
| <h4><li>Import from tarball</h4> | ||
| <h5>You can import a tarball with the assessment directory.</h5> | ||
| <%= form_tag({action: :multiImport}, multipart: true, id: "import-tarball-form") do %> | ||
| <div class="file-field input-field" style="margin: 1.5rem 0 !important"> | ||
| <div class="btn"> | ||
| <span>Browse</span> | ||
| <%= file_field_tag "tarFile" %> | ||
| </div> | ||
| <div class="file-path-wrapper"> | ||
| <%= text_field_tag "tarFile-name", "Upload Assessment Tarball", class: "file-path validate" %> | ||
| </div> | ||
| </div> | ||
| <% end %> | ||
| </div> | ||
|
|
||
| <div class="section"> | ||
| <h4>Guide for making the tar ball</h4> | ||
| <p>a starter tarball for this method of importing can be found <a href="https://github.com/UBAutograding/Autolab/raw/multi-assessment-import/examples/multiple%20assessment%20import%20starter.tar/">here</a></p> | ||
| <p>please do not rename the handin directory in the YAML file</p> | ||
| <p>the top level folder names must match the name of the assessment in the YAML file as well as the name of the YAML file itself</p> | ||
| <p>if the assessment does not have an autograded componet do not include autograde-Makefile or autograde.tar</p> | ||
| <p>if the assessment does have an autograded componet include autograde-Makefile and autograde.tar</p> | ||
| <p>please do not add any other files or directories than are what included in the starter</p> | ||
| </div> |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| # Examples | ||
|
|
||
| this directory contains examples for a few features of the autograder | ||
|
|
||
| ## Assessments | ||
|
|
||
| The Hello folder and Hello.tar contain various examples of different styles of Assessments | ||
|
|
||
|
|
||
| ## Importing Assessments | ||
|
|
||
| whether you are importing one or more assessments the procedure is the same | ||
|
|
||
| multiple assessment import starter.tar is the starter file for importing one or more assessments | ||
|
|
||
|
|
||
| ```bash | ||
| multiple assessment import starter.tar | ||
| ├── assessment1 | ||
| │ ├── handin | ||
| │ ├── assessment1.yml | ||
| │ ├── autograde.tar | ||
| │ └── autograde-Makefile | ||
| └── assessment2 | ||
| ├── handin | ||
| └── assessment1.yml | ||
|
|
||
| ``` | ||
|
|
||
| the top level must consist of folders named the same as what you will be naming the course (url name not display name) | ||
|
Searay-330 marked this conversation as resolved.
Outdated
|
||
|
|
||
| assessment1 is an example of an assessment with an autograding component | ||
|
|
||
| the handin folder while has to remain present and named the same is not currently used for anything but will be in the future for adding submissions to new assessments. | ||
|
|
||
| assessment1.yml | ||
| ```YAML | ||
| --- | ||
| general: | ||
|
Searay-330 marked this conversation as resolved.
|
||
| name: assessment1 | ||
|
Searay-330 marked this conversation as resolved.
|
||
| description: '' | ||
| display_name: ASSESSMENT WITH AUTOGRADING | ||
| handin_filename: handin.zip | ||
| handin_directory: handin | ||
| max_grace_days: 0 | ||
| handout: '' | ||
| writeup: '' | ||
| max_submissions: -1 | ||
| disable_handins: false | ||
| max_size: 2 | ||
| has_svn: false | ||
| category_name: Lab Activities | ||
| problems: | ||
| - name: Score | ||
| description: '' | ||
| max_score: 3.0 | ||
| optional: false | ||
| autograder: | ||
| autograde_timeout: 180 | ||
| autograde_image: autograding_image | ||
| release_score: true | ||
| ``` | ||
| the only hiccup on this file is that the name field must be the same as the file and top level folder name | ||
|
Searay-330 marked this conversation as resolved.
Outdated
|
||
|
|
||
| problems even if there is only 1 must be denoted as a list | ||
| ~~~ | ||
| autograde-Makefile, autograde.tar | ||
| ~~~ | ||
| will contain your assessment files to ship to tango and be graded with naming is standardized to avoid complications. | ||
|
|
||
| assessment2 is an assessment without autograding same rules apply as assessment1 the only difference being the assessment.yml file does not contain the autograder section | ||
|
|
||
| ```YAML | ||
| --- | ||
| general: | ||
| name: assessment2 | ||
| description: '' | ||
| display_name: ASSESSMENT WITH OUT AUOTGRADING | ||
| handin_filename: objects.zip | ||
| handin_directory: handin | ||
| max_grace_days: 0 | ||
| handout: '' | ||
| writeup: '' | ||
| max_submissions: -1 | ||
| disable_handins: false | ||
| max_size: 5 | ||
| has_svn: false | ||
| category_name: RecitationQuiz | ||
| problems: | ||
| - name: quiz02 | ||
| description: '' | ||
| max_score: 100.0 | ||
| optional: false | ||
| ``` | ||
Binary file not shown.
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.
Uh oh!
There was an error while loading. Please reload this page.