Closed darrensiegel closed 2 years ago
Interesting.... this works for me, and I think the dfiference might be that I'm specifying absolute paths from the command line:
Can you try again and specify absolute paths like as follows:
node ./node_modules/ts-node/dist/bin.js src/index.ts --operation convert --inputDir /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo --outputDir ./out --specificOrg /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/organizations/default/organization.xml --specificOrgId migration-4sdfykby-1.0_default --mediaUrlPrefix https://torus-media-dev.s3.amazonaws.com/media
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/organizations/default/organization.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/welcome.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-assessment2/newe6ddd6fec8f54749a037ef13abd8df93.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/extra.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/mathml.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/entities.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/materials.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/composite.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-assessment2/assessment_with_selection.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/customdnd.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-learning_objectives/dd83841bc84045138faf6f3b7868c6dc.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-skills_model/c04c22b2337f412c8feff2c06e43cef3.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-skills_model/c04c22b2337f412c8feff2c06e43cef3.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-inline-assessment/newca1a54a0f56a4d429f5aff2c515cab08.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-assessment2/newc72f87db5a5543b5ae8582d2d4cd34a7.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-inline-assessment/weak_titration_lbd.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-assessment2-pool/complex_ion_pool.xml
Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-inline-assessment/customdnd_inline.xml
Do you want to create a zip archive? [Y/n]
Done!
Do you want to upload media assets? [y/N]
Skipping media upload.
Interesting.... this works for me, and I think the dfiference might be that I'm specifying absolute paths from the command line:
Can you try again and specify absolute paths like as follows:
node ./node_modules/ts-node/dist/bin.js src/index.ts --operation convert --inputDir /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo --outputDir ./out --specificOrg /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/organizations/default/organization.xml --specificOrgId migration-4sdfykby-1.0_default --mediaUrlPrefix https://torus-media-dev.s3.amazonaws.com/media Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/organizations/default/organization.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/welcome.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-assessment2/newe6ddd6fec8f54749a037ef13abd8df93.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/extra.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/mathml.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/entities.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/materials.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/composite.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-assessment2/assessment_with_selection.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-workbook_page/customdnd.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-learning_objectives/dd83841bc84045138faf6f3b7868c6dc.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-skills_model/c04c22b2337f412c8feff2c06e43cef3.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-skills_model/c04c22b2337f412c8feff2c06e43cef3.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-inline-assessment/newca1a54a0f56a4d429f5aff2c515cab08.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-assessment2/newc72f87db5a5543b5ae8582d2d4cd34a7.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-inline-assessment/weak_titration_lbd.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-assessment2-pool/complex_ion_pool.xml Converting: /Users/darrensiegel/dev/course-digest/test/course_packages/migration-4sdfykby_v_1_0-echo/content/x-oli-inline-assessment/customdnd_inline.xml Do you want to create a zip archive? [Y/n] Done! Do you want to upload media assets? [y/N] Skipping media upload.
Yep, works when I use fully qualified file paths
I ran into the same issue as Raphael, where the webcontent image could not be found when using a relative path. Using an absolute path fixes it
This PR adds support for migrating Custom Drag and Drop questions.
The main work here is:
To test this out, end to end:
custom-dnd
branch.