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

Weight Defaults to Zero in Weighted Mean of Grades Aggregation Method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.3, 2.6.4, 2.7.1
    • Fix Version/s: 2.6.5, 2.7.2
    • Component/s: Gradebook
    • Labels:
    • Testing Instructions:
      Hide
      1. Enable outcomes globally (enableoutcomes).
      2. Create an outcome at the site level.
      3. Assign the outcome to the course.
      4. Create an Assignment (without enabling the outcome).
      5. Click Course Administration > Grades > Categories and Items > Full View.
      6. Notice Aggregation is set at default to "Simple weighted mean of grades"
      7. Select drop down menu for Aggregation, change to "Weighted mean of grades"
      8. Save changes
      9. Notice weight default shows up as 1.0 as intended.
      10. Return to your course, and add another assignment enabling the outcome.
      11. Save and Return to course
      12. Click Course Administration > Grades > Categories and Items > Full View.
      13. Make sure the weight of recently added assignment is 1.0 and the outcome is 1.0 as well.
      14. Return to the course and create a new workshop.
      15. Click Course Administration > Grades > Categories and Items > Full View.
      16. Make sure the weight of recently added workshop items is 1.0.
      17. Return to the course and create a new workshop (enabling outcomes).
      18. Click Course Administration > Grades > Categories and Items > Full View.
      19. Make sure the weight of recently added workshop items is 1.0 and the outcome is 1.0 as well.
      20. Set a different weight to the created grade items and Save changes.
      21. Return to the course and update the information of the same assignments you changed the grade.
      22. Update the information (description, title...) of these course module and save.
      23. Go to Course Administration > Grades > Categories and Items > Full View.
      24. Make sure the weight of recently changed assignments was not changed to 1 and the grades was not changed..
      Show
      Enable outcomes globally (enableoutcomes). Create an outcome at the site level. Assign the outcome to the course. Create an Assignment (without enabling the outcome). Click Course Administration > Grades > Categories and Items > Full View. Notice Aggregation is set at default to "Simple weighted mean of grades" Select drop down menu for Aggregation, change to "Weighted mean of grades" Save changes Notice weight default shows up as 1.0 as intended . Return to your course, and add another assignment enabling the outcome. Save and Return to course Click Course Administration > Grades > Categories and Items > Full View. Make sure the weight of recently added assignment is 1.0 and the outcome is 1.0 as well . Return to the course and create a new workshop. Click Course Administration > Grades > Categories and Items > Full View. Make sure the weight of recently added workshop items is 1.0 . Return to the course and create a new workshop (enabling outcomes). Click Course Administration > Grades > Categories and Items > Full View. Make sure the weight of recently added workshop items is 1.0 and the outcome is 1.0 as well . Set a different weight to the created grade items and Save changes. Return to the course and update the information of the same assignments you changed the grade. Update the information (description, title...) of these course module and save. Go to Course Administration > Grades > Categories and Items > Full View. Make sure the weight of recently changed assignments was not changed to 1 and the grades was not changed. .
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Epic Link:
    • Pull from Repository:
    • Pull Master Branch:
      MDL-45029-master
    • Story Points:
      20
    • Sprint:
      BACKEND Sprint 15

      Description

      When adding new assignments to new courses, weight of grade in gradebook defaults to zero with the "weighted mean of grades" aggregation method in certain situations.
      If new assignment is added, and gradebook has been set to "Simple Weighted Mean" then switched to desired "Weighted Mean of Grades" aggregation, default weight will show up as 1.0 as is intended.
      However, once grading aggregation has been switched to "Weighted Mean of Grades", subsequent assignments added will have a default weight of 0 in the gradebook instead of intended 1.0.

      Steps to Reproduce:

      1. Add new course and save.
      2. Go to new course main page, click "Turn on editing"
      3. Go to first available week, click "Add an Activity or Resource"
      4. Click Assignment and Add
      5. Name assignment, add description, click "Save and Return to Course"
      6. Click Course Administration<Grades<Categories and Items
      7. Click full view option
      8. Notice Aggregation is set at default to "Simple weighted mean of grades"
      9. Select drop down menu for Aggregation, change to "Weighted mean of grades"
      11. Save changes
      12. Notice weight default shows up as 1.0 as intended.
      13. Return to your course, and add new assignment with same steps detailed above within same week or in new week.
      14. Save and Return to course
      15. Click Course Administration<Grades<Categories and items
      16. Click full view
      17. Notice Aggregation is set to "Weighted mean of grades" as this setting was earlier changed and saved.
      18. Notice default weight of most recently added assignment is now showing as 0, when it should be 1.0

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Sep/14