Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44316

LTI-GB: Console errors in GB for comment sent through LineItem

    XMLWordPrintable

    Details

    • Test Plan:
      Hide
      1. As the admin, add an LTI Advantage  if one doesn't exist on the server(if you need instructions, see https://docs.google.com/spreadsheets/d/1XXDGb_O1Mcy2xEM3h7IRfvoXlRHHpB_Q0-EgQCFan2w/edit#gid=1073366662)
      2. As the instructor, add Lessons to your site
      3. Click on Lessons in your course > Add Content > Add Learning App
      4. Click on the link for the tool
      5. In the "Tools" window, scroll down and click Install for the "LMS Test" tool
      6. Click Submit, then click Go! on the next page
      7. Click on LMS Test (and if it's present, the Proceed with LTI 1.3 Launch button)
      8. Click Add LineItem
      9. Enter the following values:
        • scoreMaximum: 100
        • label: name for GB item
        • resourceID: unique id to use for the item (example: lg_01)
        • Then click Add LineItem
      10. Click the X to close the pop-up
      11. As the student, log into the site and click on Lessons
      12. Click on the LMS Test link
      13. Click Interact with LineItems
      14. Click Send Score
      15. Enter the following values:
        • grade : 95
        • scoreMaximum: 100
        • comment: some text
      16.  Click Send Score
      17. As the instructor, with your browser console open, click on the Gradebook
      18. The Grade and comment should be there - click on the comment icon

      Expected: comment displays

      Current: console error and comment does not display

      Show
      As the admin, add an LTI Advantage  if one doesn't exist on the server(if you need instructions, see https://docs.google.com/spreadsheets/d/1XXDGb_O1Mcy2xEM3h7IRfvoXlRHHpB_Q0-EgQCFan2w/edit#gid=1073366662) As the instructor, add Lessons to your site Click on Lessons in your course > Add Content > Add Learning App Click on the link for the tool In the "Tools" window, scroll down and click Install for the "LMS Test" tool Click Submit, then click Go! on the next page Click on LMS Test (and if it's present, the Proceed with LTI 1.3 Launch button) Click Add LineItem Enter the following values: scoreMaximum: 100 label: name for GB item resourceID: unique id to use for the item (example: lg_01) Then click Add LineItem Click the X to close the pop-up As the student, log into the site and click on Lessons Click on the LMS Test link Click Interact with LineItems Click Send Score Enter the following values: grade : 95 scoreMaximum: 100 comment: some text  Click Send Score As the instructor, with your browser console open, click on the Gradebook The Grade and comment should be there - click on the comment icon Expected: comment displays Current: console error and comment does not display

      Description

      I was retesting the LineItems from the LMS Test tool, created a Gradebook item, had the student send a score along with a comment. The student can view the score and comment in the Gradebook without errors. If the instructor tries to view the Gradebook comment, it does not display and there are console errors. 

      To make sure this was related to the LMS Test tool, I created a Gradebook item, entered a score and a comment. The comment for the manually-created GB item displays without errors.

      I did not see any errors in the server logs for this.

      gradebook-gbgrade-table.js?version=4fe4a307:2761 Uncaught TypeError: Cannot read property 'replace' of undefined
      at initializeMetadataSummary (gradebook-gbgrade-table.js?version=4fe4a307:2761)
      at t.default.<anonymous> (gradebook-gbgrade-table.js?version=4fe4a307:2853)
      at e.value (handsontable.full.min.js?version=4fe4a307:29)
      at t.default.runHooks (handsontable.full.min.js?version=4fe4a307:29)
      at e.<anonymous> (handsontable.full.min.js?version=4fe4a307:29)
      at handsontable.full.min.js?version=4fe4a307:29
      at r (handsontable.full.min.js?version=4fe4a307:29)
      at e.runLocalHooks (handsontable.full.min.js?version=4fe4a307:29)
      at e.value (handsontable.full.min.js?version=4fe4a307:35)
      at e.value (handsontable.full.min.js?version=4fe4a307:35)
      initializeMetadataSummary @ gradebook-gbgrade-table.js?version=4fe4a307:2761
      (anonymous) @ gradebook-gbgrade-table.js?version=4fe4a307:2853
      value @ handsontable.full.min.js?version=4fe4a307:29
      runHooks @ handsontable.full.min.js?version=4fe4a307:29
      (anonymous) @ handsontable.full.min.js?version=4fe4a307:29
      (anonymous) @ handsontable.full.min.js?version=4fe4a307:29
      r @ handsontable.full.min.js?version=4fe4a307:29
      runLocalHooks @ handsontable.full.min.js?version=4fe4a307:29
      value @ handsontable.full.min.js?version=4fe4a307:35
      value @ handsontable.full.min.js?version=4fe4a307:35
      i @ handsontable.full.min.js?version=4fe4a307:29
      t.handleMouseEvent @ handsontable.full.min.js?version=4fe4a307:29
      onCellMouseDown @ handsontable.full.min.js?version=4fe4a307:35
      value @ handsontable.full.min.js?version=4fe4a307:29
      value @ handsontable.full.min.js?version=4fe4a307:29
      value @ handsontable.full.min.js?version=4fe4a307:29
      (anonymous) @ handsontable.full.min.js?version=4fe4a307:29
      i @ handsontable.full.min.js?version=4fe4a307:29

        Gliffy Diagrams

          Zeplin

            Attachments

            1. instructor_view.gif
              instructor_view.gif
              39 kB
            2. LMS_test_gb_comment.mp4
              2.41 MB
            3. student_view.gif
              student_view.gif
              11 kB

              Activity

                People

                Assignee:
                a.fish@lancaster.ac.uk Adrian Fish
                Reporter:
                agschmidt Andrea Schmidt
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    Git Integration