166 Commits

Author SHA1 Message Date
Damyon Wiese
b50b12b3f9 MDL-46997 Grades: fix sum of grades with hidden items with differing maxgrades 2014-09-09 17:11:59 +08:00
Damyon Wiese
d6caf63789 MDL-35984 Grades: Fix deprecation of grade_category::aggregate_values 2014-08-11 15:53:47 +08:00
Damyon Wiese
5232d3f2c9 MDL-35984 grade: Recalculate min/max for sum of grades when hidden grades are involved. 2014-08-11 15:53:47 +08:00
Rajesh Taneja
134c514be0 MDL-21180 Gradebook: Consistent handling of change in aggregation
Change from/to GRADE_AGGREGATE_WEIGHTED_MEAN and GRADE_AGGREGATE_EXTRACREDIT_MEAN was only
handled prior to this patch. GRADE_AGGREGATE_SUM and GRADE_AGGREGATE_WEIGHTED_MEAN2 also
behave similar and should be handled same way
2013-12-16 09:57:42 +08:00
Tim Hunt
3987312883 MDL-31487 fix FEATURE_CONTROLS_GRADE_VISIBILITY for quiz.
This is a followup to MDL-18301. That fix missed the following points:

1. On the edit categories and items screens, all items had an eye-con to
control the visibility, even if the visibility was controlled by the
module.

2. Changing the visibility of a grade category change the visibility of
all items within it, even if the visibility was controlled by the
module.

3. The quiz ingored $cm->visible when controlling whether its grade item
was visible.
2013-08-08 10:03:47 +01:00
Andrew Davis
63354ab50d MDL-29877 core_grade:add some upgrade code to fix broken grade items introduced by bad restores 2013-04-10 08:05:50 +08:00
Andrew Davis
aee968da79 MDL-36761 core_grade:shifted a call to count() out of a loop 2012-11-30 11:05:44 +08:00
Andrew Davis
5292948648 MDL-31782 core_grade: fixed a potential infinite loop 2012-10-01 11:32:06 +08:00
Andrew Davis
fb80cb2aa4 MDL-13629 grade: added some unit tests to clarify the handling of droplow and improved apply_limit_rules() 2012-07-25 09:35:28 +08:00
Petr Skoda
e2bb3c9275 MDL-32094 some more E_STRICT fixes 2012-03-18 20:40:20 +01:00
Eloy Lafuente (stronk7)
a4d7604977 MDL-30999 grade phpdocs - change some inline @see by correct @link 2012-02-20 12:09:50 +01:00
Andrew Davis
a153c9f2fe MDL-30999 grade: updated Grade API phpdocs 2012-02-14 14:04:19 +07:00
Eloy Lafuente (stronk7)
1b42e67747 MDL-25708 recordsets - fix lib/grade/xxx stuff 2011-01-25 19:59:00 +01:00
Andrew Davis
b146d98455 gradebook MDL-24504 made grade item sorting work and prevented a bunch of sortorder shuffling 2010-10-04 08:05:05 +00:00
Petr Skoda
c10244114a spelling improvements 2010-09-18 10:46:53 +00:00
Petr Skoda
22a9b6d873 fixed phpdocs and marked methods as static 2010-09-18 10:43:50 +00:00
Andrew Davis
7bac377763 gradebook MDL-23543 made gradebook not display items with gradetype of no grade 2010-08-03 07:22:27 +00:00
Petr Skoda
7ad5a62727 MDL-21249 improved php docs and adding direct access prevention in editors 2010-07-25 13:56:54 +00:00
Andrew Davis
79b260cc88 gradebook MDL-21596 altered grade_category::set_properties() to try to intelligently set a default for weight and extra credit as a work around for those two properties sharing a single column 2010-06-08 02:10:21 +00:00
Petr Skoda
f7d515b6d3 fixed silly comment typos 2010-05-21 18:57:05 +00:00
David Mudrak
3869ab1ac6 MDL-21695 gradebook: Extra credit help strings
String aggregationcoefextraweight is used when editing an item which is
aggregated by Mean of grades (with extra credit) and was reworded to
Extra credit weight (because in fact it is the weight of the extra
credit - if it equals zero, the grade is not extra)

String aggregationcoefextrasum is used for Sum of grades and Simple
weighted mean of grades, meaning a checkbox extra credit yes/no

String aggregationcoefextra is used in the header of table Categories
and items (either Simple view or Full view). It must contain the information
about both meanings of aggregation.

AMOS BEGIN
 HLP grade/aggregationcoefcombo.html,[aggregationcoefextra_help,core_grades]
 HLP grade/aggregationcoefextra.html,[aggregationcoefextraweight_help,core_grades]
 HLP grade/aggregationcoefextrasum.html,[aggregationcoefextrasum_help,core_grades]
AMOS END
2010-05-21 13:46:28 +00:00
Andrew Davis
1762a2642a gradebook MDL-21514 Ironed out a bug with hiding course totals 2010-02-12 03:39:40 +00:00
Andrew Davis
d90aa63419 grader report MDL-21367 when an item is unhidden its category should unhide to 2010-02-03 02:31:46 +00:00
Andrew Davis
a25bb902f0 grader report MDL-19704 Added ability to hide course and category totals without hiding anything else 2010-01-11 07:35:40 +00:00
nicolasconnault
b79fe1899c MDL-19247 Few minor adjustments and cleanup of grade_category 2009-05-21 13:30:02 +00:00
skodak
793253ae05 MDL-19218 fixed missing method grade_category::is_extracredit_used() - not merged to HEAD 2009-05-17 19:19:33 +00:00
skodak
a9e38ac8a7 MDL-19008 extra credis should not be dropped when drop low or keep high specified (including unit tests) 2009-04-29 13:42:03 +00:00
skodak
b9b199beba MDL-18993 implemented frull support for droplow and keephigh in sum aggregation type 2009-04-29 10:05:55 +00:00
skodak
59080eee21 MDL-18993 implemented frull support for droplow and keephigh in sum aggregation type 2009-04-29 08:55:25 +00:00
skodak
b3d965212e MDL-17248 fixed incorrect sum when scales involved; merged from MOODLE_19_STABLE (regrading will be forced later) 2009-04-27 15:21:09 +00:00
skodak
d9ae2ab53b MDL-12942 new extra credit option for simple mean agg; merged from MOODLE_19_STABLE 2009-04-24 16:24:49 +00:00
skodak
121d8006e4 MDL-18927 fixed performance regression 2009-04-22 19:40:21 +00:00
nicolasconnault
653a86489e MDL-18083 Committing gradebook improvements to head 2009-04-16 07:16:44 +00:00
skodak
3a03653edf MDL-18772 fixed aut oupdating of grademax for SUM aggregation type 2009-04-05 20:17:04 +00:00
nicolasconnault
54c4a2cb4f MDL-18004 Separated gradebook course settings from report preferences 2009-02-17 09:01:48 +00:00
nicolasconnault
0198929cdb MDL-17825 Converting float grades to string when counting values using the Mode of Grades aggregation. Merging from MOODLE_19_STABLE 2009-01-08 16:02:11 +00:00
skodak
4e9ca99131 MDL-15007 is_aggregationcoef_used should be public 2008-05-27 09:34:03 +00:00
nicolasconnault
5b0af8c5e3 MDL-14967 More upgrades 2008-05-26 05:06:01 +00:00
nicolasconnault
da3801e84b MDL-14967 Upgraded gradebook code and unit tests. 4 failing tests in grade_item to fix. 2008-05-23 14:52:50 +00:00
dongsheng
2f137aa130 "MDL-14129, fix print_error" 2008-05-20 02:53:46 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak
25bcd90821 MDL-13845 rewritten rounding in grades classes again - rounding done also before storage into db so that we can compare the values properly and skip db updates if possible + some more optimisations; merged from MOODLE_19_STABLE 2008-03-12 19:45:17 +00:00
skodak
ec3717e1bd MDL-13853 automatic fixing of incorrect grade category paths; merged from MOODLE_19_STABLE 2008-03-08 23:23:41 +00:00
skodak
1909a12760 MDL-13853 incorrect paths when moving grade categories - affects aggregation in subcategories; merged from MOODLE_19_STABLE 2008-03-08 22:38:11 +00:00
skodak
6537035609 MDL-13851 fixed disappearing grade categories in PHP4; merged from MOODLE_19_STABLE 2008-03-08 22:12:45 +00:00
skodak
a450311936 add debug code for missing course id when getting course grading category; merged from MOODLE_19_STABLE 2008-03-08 15:10:35 +00:00
skodak
66690b6914 MDL-13845 major performance problems when regrading course; merged from MOODLE_19_STABLE 2008-03-08 12:51:16 +00:00
skodak
91f9a62c3f MDL-13730 site setting for aggregation of scales; merged from MOODLE_19_STABLE 2008-03-03 11:03:54 +00:00
nicolasconnault
8f6fdf4335 MDL-13674 Course category fullname field is no longer required. If set to empty it will be recorded in the DB as ?, and the course name will be used instead wherever the category name is displayed. Merging from MOODLE_19_STABLE. 2008-02-27 12:48:20 +00:00
skodak
d28f25a493 MDL-13653 droplow not ignoring ungraded items un sum aggregation; merged from MOODLE_19_STABLE 2008-02-25 12:17:46 +00:00