Skip to content

Stop clobbering bank names when there is more than one question#2347

Open
tpaulshippy wants to merge 1 commit into
instructure:masterfrom
tpaulshippy:master
Open

Stop clobbering bank names when there is more than one question#2347
tpaulshippy wants to merge 1 commit into
instructure:masterfrom
tpaulshippy:master

Conversation

@tpaulshippy

@tpaulshippy tpaulshippy commented Apr 23, 2024

Copy link
Copy Markdown

Closes #2346

Test Plan: See replication steps in #2346

We encountered this issue when trying to import QTI 2.1 items into question banks. It looks like this line of code was questioned at the time it was added (a81d6c3).

When using 1.1.3 QTI files, like the respondus zip at gems/plugins/qti_exporter/spec_canvas/fixtures/canvas_respondus_question_types.zip it looks like the assessment title is pulled from the xml (<assessment title="Title here">) and that is used to name the question bank. This is still a bit deceiving in my opinion, because the UI indicates that you can provide the bank name there (not in the file). But I'm not dealing with those files so I'm not as concerned about that issue.

I just want my question banks to have the name I'm providing.

Before
image

After
image

@CLAassistant

CLAassistant commented Apr 23, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

udengwusomtochukwu added a commit to udengwusomtochukwu/canvas-lms that referenced this pull request Jul 2, 2026
… title

Cherry-pick of upstream PR instructure#2347. Importing a QTI package with multiple
questions overwrote the user-chosen question bank name with nil whenever
the package's bank hash carried no title. Guard the assignment.

Co-authored-by: Paul Shippy <pshippy@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants