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).
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 thecaption
attribute (which used to simply be a string representation of the caption).