sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

Re-assign assignment to students -> more clever solution to keep earlier work #6778

Open afmoene opened 1 year ago

afmoene commented 1 year ago

(feature suggestion) In my course I had to re-assign an assignment twice. As a result, some students lost their work, because the name of the backup file is formed from the orginal name, with a tilde ~ added to it (see https://doc.cocalc.com/teaching-tips_and_tricks.html#how-exactly-are-assignments-copied-to-students). So after the second re-assignment, the students' original files are no longer there.

The re-assign with backup now uses rsync --backup. By adding --suffix, the backup files could be uniquely named: rsync --backup --suffix=`date +'.%y%m%d%H%M'

In that case, the students will always be able to access their previous version (from which they might copy prior work to the new version or the other way around).

williamstein commented 1 year ago

Thanks. Quick question: Did they actually really lose work, which they couldn't recover using TimeTravel? I'm not sure how that is possible.

afmoene commented 1 year ago

First, it is relevant to note that I let my students primarily work in classic Jupyter notebooks, so TimeTravel is not directly available.

I was contacted by one student (but there might have been more) for whom we were not able to find her edited notebook back in the snapshots. This made sense, as the snapshot was from after I made the double re-assignment.