Submit: Auto-generate a Bash script which checks out all submissions

Bug #579771 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IVLE
Fix Released
High
Matt Giuca

Bug Description

The "Latest submissions" list in the Lecturer project view is very handy, but doesn't really help with bulk submissions. A lecturer could conceivably write a script to auto-check out each student's repository, but it would not be easy to get the revision IDs to check out.

Add a link under "Latest submissions" to download a Bash script or similar which performs the checkout of each assignment. The script would basically include some boilerplate options processing, and then a full list of all of the command lines as printed in the "latest submissions" list (with an extra argument on each -- the directory target, which is the login name of the student).

Tags: feature submit

Related branches

Revision history for this message
David Coles (dcoles) wrote :

We technically something like that that for Informatics 1 submissions since it looks like lecturer permissions might be broken.

EXPORT=/tmp/export
svn export -r45 "file:///var/lib/ivle/svn/repositories/users/ivow/info1/phase2a" $EXPORT/ivow
svn export -r4 "file:///var/lib/ivle/svn/repositories/users/drcoles/info1/project_phase2" $EXPORT/drcoles
svn export -r7 "file:///var/lib/ivle/svn/repositories/users/sbird/info1/foo.py" $EXPORT/sbird
...

Depending on how quick it was, why not just offer it as a zip file download?

Revision history for this message
Matt Giuca (mgiuca) wrote :

> We technically something like that that for Informatics 1 submissions since it looks like lecturer permissions might be broken.

Sorry, can you reword that?

> Depending on how quick it was, why not just offer it as a zip file download?

Could do, but I think we ran into trouble having IVLE webapp physically able to access Subversion (which is why we can't have lecturers browsing the repositories online). Am I correct in thinking that was a problem?

Also with the script, it could actually call a Bash function for each submission, which could be hand-edited to do per-submission normalisation or testing of student code.

Revision history for this message
David Coles (dcoles) wrote :

> Sorry, can you reword that?

We had to do something like that - provide a way to download all the submissions - for Informatics1 last week. The problem was that svn.conf is missing Lecturer and Tutor read permissions on the subject repositories for students in their subject.

We got around this by running a shell script on the server (made from a regexpr replace on the submission page's report) to export all the submissions into a temporary directory.

> Could do, but I think we ran into trouble having IVLE webapp physically able to access Subversion...

I can't remember. Might have been a permission error since the repositories are created by usrmgt-server while IVLE runs as the Apache user.

Yup. Making it easy to script submissions would be nice.

David Coles (dcoles)
Changed in ivle:
milestone: none → 1.0.2
Matt Giuca (mgiuca)
tags: added: submissions
tags: added: submit
removed: submissions
Revision history for this message
Matt Giuca (mgiuca) wrote :

Fixed in trunk r1811.

Changed in ivle:
status: Triaged → Fix Committed
Revision history for this message
Matt Giuca (mgiuca) wrote :

Damn you, David. Your first comment used svn export...

William Grant (wgrant)
Changed in ivle:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.