[LSNBLDR-827] Cannot add more than 2 new "graded" questions Created: 28-Jun-2017  Updated: 29-Nov-2017  Resolved: 14-Jul-2017

Status: Resolved
Project: Lesson Builder
Component/s: impl
Affects Version/s: 11.3
Fix Version/s: 12.0 [Tentative]

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    
11 status: Merge
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.

Generated at Mon Mar 19 17:26:41 CDT 2018 using JIRA 7.5.0#75005-sha1:fd8c849d4e278dd8bbaccc61e707a716ad697024.