Do Grade Calculations discount hidden grade items or not?

Do Grade Calculations discount hidden grade items or not?

by Damian Hippisley -
Number of replies: 0
Picture of Core developers

I have a user who applies a simple grade calculation for their course total as displayed in the User grade report. Something like this

=sum(#001*0.5+#002*0.5)

where the #001 and #002 are graded assignments. My question, if I now hide the grade item corresponding to #001 will my course total be updated to reflect this? So if #001 was 70 and #002 was 56 making the grade total 63 and I then hid #001 then would I have 28 or still 63 as my course total in the user grade report?

This user insists that the expected behaviour has been, until recently, the former, i.e. the hidden grade updates the calculation accordingly. At the moment on our performance instance and our archives, I can only see cases in which the latter happens, i.e. id displays the course total ignoring if the grade has been hidden. 

Can anyone from the community let me know which is the correct expected behaviour and how long has it been so? We are using 3.4 and we have recently moved up from 3.2.

Many thanks,

Damian