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

Chrome-Assignments, Grader: console errors

    XMLWordPrintable

    Details

    • 20 status:
      Verified
    • Test Plan:
      Hide
      1. Use Chrome and clear the cache
      2. Open the browser console
      3. Click on the network tab in the console, switch throttling from online to "slow 3G".
      4. Click Assignments -> Options
      5. Check the box for "Use the new Sakai Grader to grade assignments"
      6. Click Update
      7. Create an assignment worth some points and post it
      8. Click on Grade for the assignment (it doesn't matter if a student has submitted or not - the console error and blank screen display the first time the page is loaded in a fresh browser)
      9. Click on a student's name

       

      • Expected behavior: the grading form should display
      • Current behavior: first time loading in a fresh browser does not display the grading form and there is a console error
      Show
      Use Chrome and clear the cache Open the browser console Click on the network tab in the console, switch throttling from online to "slow 3G". Click Assignments -> Options Check the box for "Use the new Sakai Grader to grade assignments" Click Update Create an assignment worth some points and post it Click on Grade for the assignment (it doesn't matter if a student has submitted or not - the console error and blank screen display the first time the page is loaded in a fresh browser) Click on a student's name   Expected behavior: the grading form should display Current behavior: first time loading in a fresh browser does not display the grading form and there is a console error

      Description

      Not sure why I'm not seeing this in Win10: Firefox, but I can reproduce every time in Chrome after clearing the cache. The errors only display if I use the new option: Use the new Sakai Grader to grade assignments. I did not send the assignment to the gradebook, but I did select to use a rubric.

      1: With a fresh browser, cache cleared,and the option set to use the new sakai grader, the very first time the instructor clicks Grade and a student's name, the following console error displays in Chrome:

      sakai-gradable-data-mixin.js:70 Failed to load gradable data for d8ed036b-bb12-493b-aaba-73c14af8bb38 TypeError: Cannot read property 'back_to_user_list' of undefined
      at sakai-gradable-data-mixin.js:19
      (anonymous) @ sakai-gradable-data-mixin.js:70
      Promise.catch (async)
      (anonymous) @ sakai-gradable-data-mixin.js:70
      loadGradableData @ sakai-gradable-data-mixin.js:8
      loadData @ sakai-grader.js?version=4ca0ab86:508
      set gradableId @ sakai-grader.js?version=4ca0ab86:68
      _attributeToProperty @ updating-element.ts:548
      attributeChangedCallback @ updating-element.ts:503
      (anonymous) @ sakai-grader.js?version=4ca0ab86:809

      2: From the server logs:

      23-Dec-2019 10:09:24.648 WARN [http-nio-20013-exec-25] org.sakaiproject.assignment.entityproviders.AssignmentEntityProvider.<init> The property "prop_new_assignment_add_to_gradebook" is null for the assignment feed
      23-Dec-2019 10:09:24.910 WARN [http-nio-20013-exec-15] org.sakaiproject.util.Resource.getLoader WARN: Localized bundle not found: java.lang.NullPointerException
      23-Dec-2019 10:09:24.914 WARN [http-nio-20013-exec-6] org.sakaiproject.util.Resource.getLoader WARN: Localized bundle not found: java.lang.NullPointerException
      23-Dec-2019 10:09:25.035 WARN [http-nio-20013-exec-3] org.sakaiproject.util.Resource.getLoader WARN: Localized bundle not found: java.lang.NullPointerException
      23-Dec-2019 10:09:25.035 WARN [http-nio-20013-exec-22] org.sakaiproject.util.Resource.getLoader WARN: Localized bundle not found: java.lang.NullPointerException
      23-Dec-2019 10:10:00.627 WARN [http-nio-20013-exec-18] org.sakaiproject.assignment.entityproviders.AssignmentEntityProvider.<init> The property "prop_new_assignment_add_to_gradebook" is null for the assignment feed

       

       

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration