CanDo07 competency gradebook changing all grades to floats

Bug #71798 reported by Jeffrey Elkner
2
Affects Status Importance Assigned to Milestone
CanDo
Fix Released
Low
Paul Carduner
Nominated for 2007 by Jason Straw

Bug Description

In the competency grade book interface, all the grades I enter are changed from ints to floats, so 3 becomes 3.0. Then the next time I click the Update button I get an error like the following:

Grades for Period 2
The grade 3.0 for Justin Ewigleben for competency 001 is not valid.
The grade 3.0 for Justin Ewigleben for competency 002 is not valid.
The grade 3.0 for Justin Ewigleben for competency 003 is not valid.
The grade 3.0 for Justin Ewigleben for competency 004 is not valid.
The grade 3.0 for Justin Ewigleben for competency 005 is not valid.
The grade 3.0 for Justin Ewigleben for competency 006 is not valid.
The grade 3.0 for Justin Ewigleben for competency 007 is not valid.
The grade 3.0 for Justin Ewigleben for competency 008 is not valid.
The grade 3.0 for Justin Ewigleben for competency 009 is not valid.
...

If I change all the grades back to ints I can update again, but once I do they will get converted back to floats.

Revision history for this message
Paul Carduner (pcardune) wrote :

ummm, works for me? I'd like to have someone else confirm this also. On my system, the scores appear as floats, but when I submit it works fine. I wonder whether we should display the floats as integers anyways just because that is how the score system is defined... any thoughts?

Revision history for this message
Jeffrey Elkner (jelkner) wrote :

Yes, we should definitely display the scores the same way the score system was defined. I want ints, not floats, displayed on my scores.

Revision history for this message
Paul Carduner (pcardune) wrote :

Ok. The problem was that the score values were being stored as floats rather than integers in the first place. The gradebook wasn't changing them at all. Now scores are stored as integers by default rather than floats. Existing scores need to be edited to change them from floats to integers as this will not be done automatically. To that effect, new code now allows you to edit existing scores in the scoresystem rather than having to delete them and recreate them.

Changed in cando:
assignee: nobody → paulcarduner
importance: Undecided → Low
status: Unconfirmed → Fix Committed
Jason Straw (jasonstraw)
Changed in cando:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.