You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exp-lookit-instrucions-video frame produces the following console error:
"Failed to compile frameSchemaProperties to use for validating researcher usage of frame type ..."
This is caused by a capitalization error in the frame's frameSchemeProperties (type: 'Boolean' should be type: 'boolean'). Thus the frameplayer is unable to validate the study protocol because the frame schema is invalid. Printing more information about the validation error would help identify the same type of problem in the future.
description: 'Whether to require that the participant watches the video (or reads the whole transcript) to move on',
default: true
},
There are at least two other frames that have capitalization errors in property specifications. However the errors in these two frames are in the data specification, rather than protocol parameters, so these frames do not produce console errors.
exp-lookit-change-detection: rightSequence and leftSequence data properties
Create a study with the exp-lookit-instructions-video frame type and run the study with console open. You should see the above console error message.
Expected behavior
The exp-lookit-instructions-video frame should not produce this console error.
Also, if a frame's schema has not been specified correctly, the console error should provide more detail to make it easier to identify the relevant parameter(s) (see below).
Additional information
More information about the specific schema validation error(s) could be added to the console by printing the value of error in the catch block here:
Describe the bug
The exp-lookit-instrucions-video frame produces the following console error:
This is caused by a capitalization error in the frame's
frameSchemeProperties
(type: 'Boolean'
should betype: 'boolean'
). Thus the frameplayer is unable to validate the study protocol because the frame schema is invalid. Printing more information about the validation error would help identify the same type of problem in the future.Which frame or frames does it affect?
exp-lookit-instructions-video
:requireWatchOrRead
parameterember-lookit-frameplayer/app/components/exp-lookit-instruction-video/component.js
Lines 129 to 133 in 48f1c7d
There are at least two other frames that have capitalization errors in property specifications. However the errors in these two frames are in the data specification, rather than protocol parameters, so these frames do not produce console errors.
exp-lookit-change-detection
:rightSequence
andleftSequence
data propertiesember-lookit-frameplayer/app/components/exp-lookit-change-detection/component.js
Lines 300 to 309 in 48f1c7d
exp-lookit-images-audio
:correctImageSelected
data propertyember-lookit-frameplayer/app/components/exp-lookit-images-audio/component.js
Lines 255 to 257 in 48f1c7d
To Reproduce
Create a study with the
exp-lookit-instructions-video
frame type and run the study with console open. You should see the above console error message.Expected behavior
The exp-lookit-instructions-video frame should not produce this console error.
Also, if a frame's schema has not been specified correctly, the console error should provide more detail to make it easier to identify the relevant parameter(s) (see below).
Additional information
More information about the specific schema validation error(s) could be added to the console by printing the value of
error
in thecatch
block here:ember-lookit-frameplayer/app/components/exp-frame-base/component.js
Lines 482 to 492 in 48f1c7d
Thanks to Alexander Maksiaev for reporting on slack 👍
The text was updated successfully, but these errors were encountered: