-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
4.0
-
MOODLE_400_STABLE
As a teacher
I want to be able to duplicate an existing activity
duplicate an existing activity
This option will create a copy of the current activity in a different place in the same course.
We follow current ‘duplicate activity’ feature behavior to decide which information linked to the activity is copied.
Prototype: There is no specific prototype to copy activities, so pointing to https://www.figma.com/proto/OfCvqK069Oz6Fvqq2xcZWI/Create-a-course?node-id=2905%3A744&scaling=min-zoom
Acceptance criteria:
- A modal should be shown for the user to choose the destination.
- User will see the whole structure of the course in the modal (similar to the course index)
- Selecting an activity or section will enable the ‘Copy’ button.
- The destination of the new activity will be a position after the selected activity, or at the beginning of the selected section.
- All sections except the selected one (the source) will be collapsed.
- All labels will be shown in the modal. ‘(Untitled)’ will be shown for labels with empty title.
- While performing the action we will show a message to let the user know it could take a while. The message will "block" the user activity.
- Once the action is finished:
- The user stays in the same ‘source’ position.
- A toast notification will be shown once the action has been completed.
- The visibility of an activity could change when moving to a different section based on the visibility of the source and destination sections.
- Moving from visible to hidden section: 'Show on course page' -> 'Available but not shown on course page'
- Moving form hidden to visible section: 'Available but not shown on course page' -> 'Show on course page'.
- Some activity types do not support duplication. We will keep current behavior in those cases.
Technical tasks:
- "Move to" and "Copy to" modal component
- Component to support create activity course state update
- Add cm_copy state action
- is blocked by
-
MDL-71224 Add 'Move to' option to the activity kebab menu
-
- Closed
-