moosh
moosh copied to clipboard
New Moosh function idea: course-copy-section
I had a call today from a colleague who had backed up one section of a course, and was restoring it to another course, presumably so that the resources from the first course were available in the second. It all worked as expected, however the restore took in the order of 20 mins and during this time it was not clear that anything was happening, or if the process had failed. So, I am thinking of a function along the lines of:
course-copy-section [from-course-id] [from-section-id] [to-course-id]
So you specify the 'from' course by id and the section/topic/week by it's id, and then specify the 'to' course by id.
Additional (optional) parameters could be [to-section-id], so that the incoming section didn't simply appear at the bottom of the course, but instead could be slotted in at a higher point and the existing sections all shifted down by one.
(course-move-section would work similarly, but move sections instead of copying.)
I was just looking for this exact feature... any chance this may come up in the near future? or should we assume its best to roll our own?
If you can then ideally just do it and send me a pull request - I can't promise anything in the near future.