instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.4k stars 2.42k forks source link

Question Bank Name is set to "No Name - [Course Name]" when importing more than one question from a QTI v2.1 file #2346

Open tpaulshippy opened 2 months ago

tpaulshippy commented 2 months ago

Summary:

When importing questions to a new question bank from a QTI v2.1 file, if there is more than one question in the file, the question bank name gets overridden with "No Name - " followed by the course name.

Steps to reproduce:

  1. Get a QTI v2.1 zip file with more than one question. We use https://github.com/Learnosity/learnosity-qti to convert our Learnosity assessments to QTI files.
  2. Open a blank course in Canvas.
  3. Click on "Import Existing Content"
  4. Next to Content Type, choose "QTI .zip file"
  5. Next to Source, choose the QTI zip file.
  6. Next to Default Question bank, choose "--Create new question bank--"
  7. Enter a Question bank name.
  8. Click import.
  9. Wait for import to finish.
  10. Click on Quizzes.
  11. Click on the three dots button on the top right.
  12. Click on Manage Question Banks.

Expected behavior:

The question bank is available with the name provided in step 7 above.

Actual behavior:

The question bank is called "No Name -" followed by the course name.

Additional notes: