Watts-Lab / surveys

Library of surveys for deliberation experiments
MIT License
3 stars 4 forks source link

Survey Elapsed Time is not computing properly #123

Closed JamesPHoughton closed 9 months ago

JamesPHoughton commented 1 year ago

secondsElapsed is reporting 0, rather than a true value

{
  "survey_RelatednessNeedSatisfaction_exit_3": {
  "surveySource": "@watts-lab/surveys",
   "version": "1.8.6",
   "surveySha": "a5891dacbcb0da4740364c5e6728fe592c11d165",
   "scoreSha": "899eebaeeb9a15369aaa79b2d0fe15bd96fac4e7",
   "surveyName": "relatednessNeedSatisfaction",
   "responses": {"closeness": 6, "distance": 3, "caredAbout": 6},
   "result": {"rawScore": 6.333333333333333, "normScore": 0.6666666666666666},
   "secondsElapsed": 0,
   "playerId": "01GTHVWN0NP8J15E9R85555RWV",
   "step": "exit_3"}
}
JamesPHoughton commented 1 year ago

In branch, needs PR

JamesPHoughton commented 9 months ago

Computes properly in the surveys test suite, but not when we use it kind deliberation-empirica... May have something to do with the fact that we create a new survey object every render. In the tests we may only have one render, but in deliberation-empirica there will be a ton.