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

Assignment without rubric attached briefly displays rubric icon to students

    XMLWordPrintable

    Details

    • 19 status:
      Verified
    • Test Plan:
      Hide

      Instructor: In a site that does not have the rubrics tool added, add an assignment

      As the student:

      1. Open the browser console
      2. Click on Assignments - currently the rubric icon will flash briefly beside the assignment
      3. Click to open the assignment - currently you will see an error in the browser console

      Expected behavior:

      The rubric icon should not flash when there is no rubric attached 

      There should be no console errors regarding rubrics when there is no rubric attached

       

      Show
      Instructor: In a site that does not have the rubrics tool added, add an assignment As the student: Open the browser console Click on Assignments - currently the rubric icon will flash briefly beside the assignment Click to open the assignment - currently you will see an error in the browser console Expected behavior: The rubric icon should not flash when there is no rubric attached  There should be no console errors regarding rubrics when there is no rubric attached  

      Description

      SAK-41620 fixed the rubric displaying for assignments without a rubric, but now 19x is also affected by the flashing rubric.

      It doesn't matter if the site has the rubrics tool added or not, in either case, the rubric icon flashes briefly when the student views the assignments page.

      There are also browser console errors, in either case, when there is no rubric attached to the assignment.

      FF: TypeError: association is undefined[Learn More] sakai-rubric-student-preview-button.js:66:11

      Edge: 0: Unable to get property 'parameters' of undefined or null reference
      sakai-rubric-student-preview-button.js (65,6)

      Chrome: sakai-rubric-student-preview-button.js?version=97d0216b:66 Uncaught (in promise) TypeError: Cannot read property 'parameters' of undefined
      at sakai-rubric-student-preview-button.js?version=97d0216b:66
      (anonymous) @ sakai-rubric-student-preview-button.js?version=97d0216b:66
      Promise.then (async)
      getRubricId @ sakai-rubric-student-preview-button.js?version=97d0216b:63
      attributeChangedCallback @ sakai-rubric-student-preview-button.js?version=97d0216b:41
      (anonymous) @ sakai-rubric-student-preview-button.js?version=97d0216b:81

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jcebellan Jose Cebellán (Entornos de Formación)
                  Reporter:
                  agschmidt Andrea Schmidt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code