Simon-Initiative / course-digest

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

[BUGFIX] omit organizations from resource-file index to avoid id problems[MER-2650] #203

Closed andersweinstein closed 11 months ago

andersweinstein commented 11 months ago

Migration failed to convert workbook page w/id='organization' because of the way the tool builds and uses an index mapping resource ids to files. The index-building assumes the file basename is the same as the resource id, but this is generally not true for organizations in files named 'organization.xml'.

Fix here is simply to omit organization resources from this index, by indexing xml files below 'content' only. Organization resources are inventoried and processed specially by the migration tool. If it were ever necessary for code to resolve an idref to an organization id via the resource map, the existing code would not have worked for that purpose, so infer it has never been necessary to date.