[SAK-37729] Cannot add more than 2 new "graded" questions Created: 28-Jun-2017  Updated: 09-May-2018  Resolved: 14-Jul-2017

Status: Verified
Project: Sakai
Component/s: Lessons
Affects Version/s: 11.3
Fix Version/s: 11.5 [Tentative], 12.0

Type: Bug Priority: Major
Reporter: Earle R Nietzel Assignee: Earle R Nietzel
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File image-2017-11-29-11-19-58-077.png    
Issue Links:
is duplicated by SAK-37599 Lessons / error adding second questio... Resolved
11 status: Resolved
Previous Issue Keys: LSNBLDR-827
Test Plan:

1. Lessons
2. Add Question
3. Mark question as graded
4. Fill in other fields as necessary
5. Save Question
6. Repeat steps 2-5 and an error should appear that gradebook needs to be added to site.

(The key to replicating this is that it only occurs when adding new questions, not updating them)


In lessons if your adding a question it will not allow you to add more than 1 new questions that are graded. This is because the gradebook id of an new question is "0" at the time the call to the gradebook service is made. Logically you cannot add more than 1 question to particular gradebook with the same id as you'll get a ConflictingExternalIdException.

If the question is new (meaning unsaved) and you select grading then must persist the item in order to obtain an id for the item before calculating the external gradebook id.

String gradebookId = "lesson-builder:question:" + item.getId();

Comment by Vaishnavi krishna [ 29-Nov-2017 ]

Can you please add a screenshot ? I was able to add the test without any problem.Attaching the screenshot below.

Comment by Derek Ramsey [ 09-May-2018 ]

Verified this is resolved while testing on Sakai nightly 12x.

Generated at Sun Jun 24 22:45:21 CDT 2018 using JIRA 7.5.0#75005-sha1:fd8c849d4e278dd8bbaccc61e707a716ad697024.