Test-Center / Mneme: Messy values heading to Gradebook

Description

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.

Attachments

1

Activity

Savitha Prakash July 5, 2012 at 7:41 AM

Tested..

Beth Kirschner June 11, 2012 at 8:36 AM

Adam York May 17, 2012 at 8:09 AM
Edited

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 PM
Edited

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

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created April 26, 2012 at 8:12 AM
Updated July 5, 2012 at 7:41 AM
Resolved June 11, 2012 at 8:36 AM