Uploaded image for project: 'Lesson Builder'
  1. Lesson Builder
  2. LSNBLDR-827

Cannot add more than 2 new "graded" questions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.3
    • Fix Version/s: 12.0 [Tentative]
    • Component/s: impl
    • Labels:
      None
    • 11 status:
      Merge
    • Test Plan:
      Hide

      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)

      Show
      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)

      Description

      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();

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ern Earle R Nietzel
                Reporter:
                ern Earle R Nietzel
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: