Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

[FEATURE] Incorporate Magic Spreadsheet #84

Closed darrensiegel closed 2 years ago

darrensiegel commented 2 years ago

This PR adds support for migrating the legacy "magic spreadsheet" - and applying the learning model found there to a course digest.

The approach here is straightforward:

  1. There is a new, optional command line parameter for the convert action: spreadsheetPath, which should point to the location of the magic spreadsheet for the course that one is wanting to convert.
  2. The digest tool will read and process the spreadsheet file, normalizing the four tabs of data into a collections of spreadsheetSkills, spreadsheetObjectives and spreadsheetAttachments.
  3. Finally, the learning model processed from the spreadsheet is applied to the resources and learning model that was initially found in the XML of course. This step is careful to allow 'merging' of data... so cases where an objective is defined in XML, but then present in the spreadsheet with different parameters is honored.

Note: an new parameters field is created for Objective resources. This is the skill and objective learning parameters used in the learning dashboard algorithm. There will need to be a follow up PR in oli-torus to add this as a new filed to Revision and to process it on ingest.