We're need a way to copy courses with LTI tool links, while still preserving the LTI tool links' information (ie. something like this: https://www.imsglobal.org/lti-course-copy-road-nowhere). We have courses with a lot of external tools, and remapping each one manually is extremely resource-intensive.
This ticket is about to preserve the history of a course so that it can be communicated to tools so that they can also apply course copy.
- User creates an external tool with a custom parameter context_id_history=$Context.id.history
- User adds an instance of that tool in course A
- User copies course A.
- User enters the copied course.
- User enters the copied external tool, and verifies the custom parameter context_id_history is populated by the course id of A
Note that history is only preserved if restore happens on the same site. Otherwise context history should be left blank.