Simon-Initiative / course-digest

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

Migration fixes #38

Closed darrensiegel closed 2 years ago

darrensiegel commented 2 years ago

This fixes https://github.com/Simon-Initiative/oli-torus/issues/2495

Code within Torus was migrating ingested models to V2, since these were not being designated as V2. This migration (correctly) sets the targeted feedback to an empty list. By setting the version, we avoid the migration and preserve targeted feedback.

Also, along with https://github.com/Simon-Initiative/oli-torus/pull/2499, this PR will fix the ability to allow captions with rich text to migrate correctly into Torus. The changes here are to preserve the HTML structure of the caption element and store it as the caption attribute (which used to simply be a string representation of the caption).