Moodle
  1. Moodle
  2. MDL-11483

Automatically generate proper min and max values for grade_items in calculation columns

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: Gradebook
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Rank:
      3872

      Description

      Each time a calculation is added to the gradebook, the min and max values for that new grade_item default to 0 and 100.

      This causes that, for a lot of calculations, the teacher has to edit the new grade_item in order to move those min and max values to get proper percentages and so on.

      I would propose (alternatively):

      1) Automatically calculate those min and max values for the new grade_item (by applying the formula to the min and max original values). Don't forbid ulterior editing.

      2) Decide, with one check in the formula editing, if that min/max calculation must be performed.

      Note that some formulas can present problems, so situations like max < min should be checked, perhaps defaulting to the default 0...100 interval (and potentially warning to the teacher about that).

      But most "increasing" formulas can use any of the approaches above saving some clicks and headaches to teachers by default.

      Ciao

        Activity

        Hide
        Martin Dougiamas added a comment -

        Petr is this still a problem?

        Show
        Martin Dougiamas added a comment - Petr is this still a problem?
        Hide
        Petr Škoda added a comment -

        I am afraid there is no automatic way of finding min/max in all cases, we can not make that fully automatic IMO.
        We could add min, max to that form at least and maybe also a "guess" button.

        Do you want it in 1.9.0?

        Show
        Petr Škoda added a comment - I am afraid there is no automatic way of finding min/max in all cases, we can not make that fully automatic IMO. We could add min, max to that form at least and maybe also a "guess" button. Do you want it in 1.9.0?
        Hide
        Anthony Borrow added a comment -

        One of the Jesuit schools recently pointed this issue out to me. I would think that adding a new item would automatically recalculate the max score given the aggregation type. While I am not familiar with the various details and possibilities, I do believe that we can make some reasonable improvements in this area. I'm going to add Andy on this in case he wants to take it on in his spare time Peace - Anthony

        Show
        Anthony Borrow added a comment - One of the Jesuit schools recently pointed this issue out to me. I would think that adding a new item would automatically recalculate the max score given the aggregation type. While I am not familiar with the various details and possibilities, I do believe that we can make some reasonable improvements in this area. I'm going to add Andy on this in case he wants to take it on in his spare time Peace - Anthony
        Hide
        Mark Drechsler added a comment -

        Hey Petr,

        Just wondering why this can't be done automatically by applying the same calculations to the max values as to the field itself? I am assuming that there is some use case I'm not thinking of which will break this logic, hence your suggestion of making a 'guess' function - even this would be a great feature to have for the folks I know who rely on Gradebook calculations.

        Cheers,

        Mark.

        Show
        Mark Drechsler added a comment - Hey Petr, Just wondering why this can't be done automatically by applying the same calculations to the max values as to the field itself? I am assuming that there is some use case I'm not thinking of which will break this logic, hence your suggestion of making a 'guess' function - even this would be a great feature to have for the folks I know who rely on Gradebook calculations. Cheers, Mark.

          People

          • Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: