Moodle

Calculation formulas

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/s: Gradebook
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

Interface must be implemented to add calculation formulas to each grade_item:

  • Calculator icons near each item in the report
  • Tooltip showing the formula when mouseover the item
  • Add/Edit Form with special element for building the formula
  • Apply calculation to grades in the report
  • Use some visual means of showing that a column is calculated rather than raw

Issue Links

Activity

Hide
Nicolas Connault added a comment -

grade_report_showcalculations setting and user preference has been added and the version bumped.

Show
Nicolas Connault added a comment - grade_report_showcalculations setting and user preference has been added and the version bumped.
Hide
Nicolas Connault added a comment -

( ! ) Notice: Undefined offset: -2 in F:\VertrigoServ\www\moodle_head\lib\evalmath\evalmath.class.php on line 425
Call Stack

  1. Time Function Location
    1 0.0603 {main}( ) ..(null):0
    2 1.0310 include_once( 'F:\VertrigoServ\www\moodle_head\grade\report\grader\index.php' ) ..(null):129
    3 1.8252 grade_regrade_final_grades( ) ..(null):43
    4 1.9843 grade_item->regrade_final_grades( ) ..(null):382
    5 1.9845 grade_item->compute( ) ..(null):578
    6 2.0527 calc_formula->calc_formula( ) ..(null):1365
    7 2.0530 EvalMath->nfx( ) ..(null):37
    8 2.0584 EvalMathStack->last( ) ..(null):223

Also, we need a help button/text next to the field to explain how this calculation thingy works. I am creating a sub-task for a "standardise" checkbox near that field.

Show
Nicolas Connault added a comment - ( ! ) Notice: Undefined offset: -2 in F:\VertrigoServ\www\moodle_head\lib\evalmath\evalmath.class.php on line 425 Call Stack
  1. Time Function Location 1 0.0603 {main}( ) ..(null):0 2 1.0310 include_once( 'F:\VertrigoServ\www\moodle_head\grade\report\grader\index.php' ) ..(null):129 3 1.8252 grade_regrade_final_grades( ) ..(null):43 4 1.9843 grade_item->regrade_final_grades( ) ..(null):382 5 1.9845 grade_item->compute( ) ..(null):578 6 2.0527 calc_formula->calc_formula( ) ..(null):1365 7 2.0530 EvalMath->nfx( ) ..(null):37 8 2.0584 EvalMathStack->last( ) ..(null):223
Also, we need a help button/text next to the field to explain how this calculation thingy works. I am creating a sub-task for a "standardise" checkbox near that field.
Hide
Petr Škoda (skodak) added a comment -

I ma changing the internal format to ##giXX## and [[idnumber]]

  • the [[ ]] is IMO more compatible with existing code in database module
  • ##gi ## allows faster regex and is easier to deal with
Show
Petr Škoda (skodak) added a comment - I ma changing the internal format to ##giXX## and [[idnumber]]
  • the [[ ]] is IMO more compatible with existing code in database module
  • ##gi ## allows faster regex and is easier to deal with
Hide
Martin Dougiamas added a comment -

I'm asuming the actual calculation is working now.

For 1.9, the edit page just needs:

1) A table listing of each item in the current course, together with the codes that will work for them. This will be a reference for manually editing the calculation.
2) A help page giving help about syntax, with examples.
3) A textarea so longer calculations can be more easily edited.

Show
Martin Dougiamas added a comment - I'm asuming the actual calculation is working now. For 1.9, the edit page just needs: 1) A table listing of each item in the current course, together with the codes that will work for them. This will be a reference for manually editing the calculation. 2) A help page giving help about syntax, with examples. 3) A textarea so longer calculations can be more easily edited.
Hide
Petr Škoda (skodak) added a comment -

should be implemented now, closing
thanks

Show
Petr Škoda (skodak) added a comment - should be implemented now, closing thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: