Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70809

Support null grades in gradebook grade calculation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 3.9.4, 3.10.1
    • Fix Version/s: None
    • Component/s: Gradebook
    • Labels:
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE

      Description

      Gradebook calculation formula should support detecting null (ungraded) grades and it should be possible to return null grade for grade item effectively clearing/not setting the grade.

      Currently you can't create a formula that leaves course total grade empty when evaluating the formula with some assignments completed. Problem is that gradebook evaluation doesn't know if grade is missing or is actually 0 since null grades are automatically converted to 0 for grade calculation.

      Example formula that is not currently possible

      =if(max(isblank([[assignment]]), isblank([[exam]])) == 0, if(min([[assignment]], [[exam]]) >= 50, average([[assignment]], [[exam]]), 0), blank())
      

      Meaning

      • If both assignment and exam have grades with 50 or more points, calculate average of them for final grade (pass).
      • If both assignment and exam have grades but at least one of them is less than 50 points (can be 0), set final grade to 0 (fail).
      • If either or both assignment or exam grade is missing, do not set or clear final grade (unfinished).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              creex Erno Tukia
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: