Test-Center / Mneme: Messy values heading to Gradebook
Description
Attachments
Activity

Savitha Prakash July 5, 2012 at 7:41 AM
Tested..

Beth Kirschner June 11, 2012 at 8:36 AM
Same https://source.sakaiproject.org/contrib/umich/PATCHED/test-center/branches/CTools-2.7.1 branch is being used in CTools 2.7.2A release

Adam York May 17, 2012 at 8:09 AMEdited
Resolved / checked in to: https://source.sakaiproject.org/contrib/umich/PATCHED/test-center/branches/CTools-2.7.1/
Keeping 'open' until we work out the 2.7.2 branch details. Once merged to final spot for the Ctools 2.7.2 A-release I will close the JIRA out.

Adam York May 14, 2012 at 11:48 AM
Patch made & passed testing. Will request it be committed by someone who has access.

Adam York May 10, 2012 at 1:41 PMEdited
I tried testing the attached patch I created, but local instance but couldn't get gradebook2 to load. I assume I don't have my db setup properly or am lacking a setting for gradebook2? I've attached the patch that I made which will work with our local branch: https://source.sakaiproject.org/contrib/umich/PATCHED/test-center/branches/CTools-2.7.1/
Am I missing a setting to get gradebook2 to work?
//stack trace
org.sakaiproject.portal.api.PortalHandlerException: java.lang.NullPointerException
at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:837)
caused by: java.lang.NullPointerException
at org.etudes.mneme.impl.AssessmentServiceImpl.getContextAssessments(AssessmentServiceImpl.java:366)
at org.etudes.mneme.tool.AssessmentsView.get(AssessmentsView.java:107)
at org.etudes.ambrosia.util.AmbrosiaServlet.doGet(AmbrosiaServlet.java:189)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:597)
//snip
Details
Assignee
Adam YorkAdam YorkReporter
Savitha PrakashSavitha PrakashComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee

Reporter

When question values use decimals, the values being sent to the gradebook are messy - instead of a nice clean "0.3" or "0.2" we are getting "0.300000011920929" and "0.200000002980232 in GB's database records. (Mneme's database is clean). This is leading to occasional incorrect rounding to whatever decimal precision GB is using, for example (as seen at U of M and reported by Diana Perpich), a score of XXXX.3 is sometimes reported as XXXX.29.
The problem is that Mneme's float precision does not match GB's double precision, and the float to double code is picking up noise. We can do a more careful conversion to avoid the noise.