New: postinstall script added to allow older courses to be migrated in the authoring tool (fixes #42)#43
New: postinstall script added to allow older courses to be migrated in the authoring tool (fixes #42)#43joe-allen-89 wants to merge 1 commit into
Conversation
…n the authoring tool
|
I don't understand the process for having it patch grunt in adapt_framework in an AAT. Could you explain please? (And add said instructions to the readme) |
The way we have it working on import is to install adapt-migrations and run the task within the imported course, the issue was when migrating an older course the grunt task itself is missing from the course being imported, so this will copy the task into the course being imported (if missing) to allow it to run. |
Who or what installs adapt-migrations and where do they install it? |
Installed inside the course being imported, on import not manually. |
|
So the AAT programmatically installs adapt-migrations into the framework as part of the import, and then adapt-migrations updates the grunt task folder from its example/ folder as an npm post install script? |
It doesn't update the grunt task if it's already there, but will copy it across if it's missing, but yes that's the process. |
|
tldr: It would be better to be able to run the grunt task from the to-framework on the from-framework source. Long versionI'm assuming there will be two copies of the framework in the import process; the from-framework and the to-framework. This pr will make at least two copies of Having the AAT specifically modify the from-framework will break if the structure of the from-framework changes in a breaking way in the future, consequently the adapt_framework, the AAT and adapt-migrations will all need appropriately modifying at each breaking change to adapt_framework. That is to say, by doing this we have three independent bodies of code whose responsibilities have been smudged together in a very tightly coupled way. The to-framework will have its own copy of the There are two parts to the to-framework and the from-framework: the plugins and the course-data. It is currently possible to run the migrations task against any course-data folder by specifying the course-data path at the command-line argument Note: The |
|
Pr for above here adaptlearning/adapt_framework#3668 |
Closing due to framework update meaning postinstall is not required. |
#42
New: