Hi all,
There is currently an issue that is in progress on our tracker: https://tracker.moodle.org/browse/MDL-50062 and would like to make people aware of the changes that we are working on. Any feedback/opinions are very welcome and everything will be taken on board
<short summary of the tracker issue>
The current issue is that when a grade item that uses Weighted Mean as the aggregation method is changed to an aggregation method that uses extra credit, the item is then treated as extra credit.
</short summary of the tracker issue>
There are also some other similar bugs that could also be described, but they all stem from one main problem: We use aggregationcoef in the database to represent more than one piece of information. Specifically, we use it to represent the weighting of a grade item for Weighted Mean items and we also use it to represent whether or not an item is extra credit for Simple Weight Mean/Mean of Grades/Natural Weighted items. To add to this, Natural Weighted items also make use of a second aggregation coefficient column: aggregationcoef2.
So it's a bit of a mess.
At HQ, we have spent a lot of time discussing the issue and there have been a few suggestions put forward (as well as the ones on the tracker issue). In an ideal world, we would be able to preserve data when changing from one aggregation method to another (i.e. swapping from Weighted Mean -> Natural and then back to Weighted Mean) and keep weighting/extra credit information in an elegant manner. However, the task of doing that is exceptionally large, given the current database schema and the fact that in situations, switching from one aggregation method to another and expecting the weights to directly translate and maintain a sensible meaning just doesn't make sense.
We will be putting together a patch this sprint that does the following: when switching from one aggregation type to another, aggregationcoef (and aggregationcoef2) data will be wiped. This is the cleanest way to deal with the inconsistencies that are currently present (and doesn't require a huge overhaul). In addition to this, we will be updating help strings for the gradebook to ensure that users are made aware that changing aggregation methods will result in them not being able to retrieve previous weighting/extra credit information. We will also be documenting this in the docs pages too.
As mentioned at the beginning of this post, we strongly encourage the community to comment on this and voice their opinions/concerns, as this is extremely important to us.
Thanks,
Dave