moosh icon indicating copy to clipboard operation
moosh copied to clipboard

New Moosh function idea: course-copy-section

Open vaughany opened this issue 11 years ago • 2 comments

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

vaughany avatar Feb 27 '14 13:02 vaughany

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?

astro44 avatar Mar 22 '15 17:03 astro44

If you can then ideally just do it and send me a pull request - I can't promise anything in the near future.

tmuras avatar Mar 23 '15 21:03 tmuras