Moodle

Allow decimals and easier marking in Assignments

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.2
  • Fix Version/s: 2.0.8
  • Component/s: Assignment
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

An oft-requested feature. Attached are two diffs to the 1.9.2 source which enable this. Unfortunately I had to alter weblib a little to make all of the features work, but it shouldn't break any existing code. The other changes are relatively minor. Please note that this patch does not do any validation on the text field inputs, and will silently accept erroneous values.

In order to use this modification, simply patch the files in mod/assignment with the assignment.diff file, and lib/weblib with the weblib.diff file. To allow decimal grades, you must also change the database field 'grade' in 'assigment_submissions'. On MySQL I used
ALTER TABLE `mdl_assignment_submissions` CHANGE `grade` `grade` DECIMAL( 10, 2 ) NOT NULL DEFAULT '0.00'
– your command will be similar.

  1. assignment.diff
    08/Sep/08 6:40 PM
    8 kB
    Tom Potts
  2. weblib.diff
    08/Sep/08 6:34 PM
    3 kB
    Tom Potts

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

My current plan is to completely refactor assignment module and move all grading into gradebook plugin. I am not sure yet if it gets approved though but it would solve this and many other known issues.

Show
Petr Škoda (skodak) added a comment - My current plan is to completely refactor assignment module and move all grading into gradebook plugin. I am not sure yet if it gets approved though but it would solve this and many other known issues.
Hide
Tom Potts added a comment -

Any particular reason? Personally I like having them separate – it seems to fit better with the idea of the gradebook being able to override grades submitted by other modules.

Show
Tom Potts added a comment - Any particular reason? Personally I like having them separate – it seems to fit better with the idea of the gradebook being able to override grades submitted by other modules.
Hide
Petr Škoda (skodak) added a comment -

The reason is simple, the gradebook is fully separate from activities - you can not have two manual grading interfaces for the same activity unless you break that rule.

Show
Petr Škoda (skodak) added a comment - The reason is simple, the gradebook is fully separate from activities - you can not have two manual grading interfaces for the same activity unless you break that rule.
Hide
Henning Bostelmann added a comment -

Hi Tom, Petr,

this seems to be a duplicate of the even more popular MDL-20368.

Show
Henning Bostelmann added a comment - Hi Tom, Petr, this seems to be a duplicate of the even more popular MDL-20368.

People

Vote (5)
Watch (5)

Dates

  • Created:
    Updated: