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

Assignment Submission Grade Doesn't Scale After Assignment Max Grade is Changed

    Details

    • Testing Instructions:
      Hide

      TEST 1:

      1. Create an assignment 2.2 and set grade to "no grade"
      2. As a student submit assignment.
      3. As a teacher "edit assignment" and change grade to 100
      4. Make sure you don't see any warning pop-up
      5. As a teacher again "edit assignment" and change grade to 30
      6. Make sure you don't see any warning pop-up
      7. Now grade student submission
      8. As a teacher again "edit assignment" and change grade to 50
      9. Make sure you see warning message, showing grades will not be scaled.
      10. Repeat above for New assignment (on 23 and master)

      TEST 2: (only on Master and 2.3)

      1. Create an assignment (New assignment) and set grade to "100"
      2. As a student submit assignment
      3. Grade assignment submission (give 45)
      4. Now edit assignment and change grade to 50, you should see pop-up warning.
      5. Save and view submission grades and make sure grade is 45/50 and final grade is 45/50.
      Show
      TEST 1: Create an assignment 2.2 and set grade to "no grade" As a student submit assignment. As a teacher "edit assignment" and change grade to 100 Make sure you don't see any warning pop-up As a teacher again "edit assignment" and change grade to 30 Make sure you don't see any warning pop-up Now grade student submission As a teacher again "edit assignment" and change grade to 50 Make sure you see warning message, showing grades will not be scaled. Repeat above for New assignment (on 23 and master) TEST 2: (only on Master and 2.3) Create an assignment (New assignment) and set grade to "100" As a student submit assignment Grade assignment submission (give 45) Now edit assignment and change grade to 50, you should see pop-up warning. Save and view submission grades and make sure grade is 45/50 and final grade is 45/50.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull Master Branch:
      wip-mdl-32759-warning

      Description

      When an assignment's max grade is changed after assignment submissions have been graded, the existing grades aren't scaled to fit the new max grade.

      1. Create an assignment worth 100 points.
      2. As a student, submit the assignment.
      3. As a teacher/admin, grade the submission with 90 points (90%).
      4. Edit the assignment activity and change the grade value to 50 (half the original value).
      5. View the course gradebook and note that the student has 50 points for the assignment. Expected would be 45 (half the original grade and still 90% of the new max grade).
      6. View the assignment submissions (mod/assignment/submissions.php?id=XXXX). Note the Grade column shows 90/50 points and Final Grade column shows 50 points. Expected would be 45 for both.

      Similar behavior has also been observed when using rubrics to grade the assignment.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Sep/12