...
Update Object category definition through postman Add new field under the framework details include the new field called evaluable
Code Block |
---|
{ { "code":"evaluablemode", "name":"Evaluablemode", "label":"Select Evaluation Mode", "placeholder":"EvaluableSelect Evaluation Mode", "description":"IsSelect QuestionEvaluation isMode Evaluableclient", "defaultdataType":false,"text", "dataTypedefault":"boolean", "inputType":"select", "editable":true, "required":false, "visible":false,true, "depends":[ "primaryCategory" ], "renderingHints":{ "class":"sb-g-col-lg-1" required" }, "range":[ true, "server", "client" false ] }, |
2. Code changes
a. Add question type you want to set evaluable as true { mode: ‘server’ } in the editor.config.json
Example
Code Block |
---|
"evaluableQuestionSet": "PIAA Question Set", "server":{"mode":"server"}, "client":{"mode":"client"}, "editorModeCheck":"server", |
b. Depends on type of question set user select from the dropdown [“PIAA Question set“, “Practice Question set“ …] set evaluable flag to true/false. eval mode to { mode: 'server' } or { mode: 'client' }
c. If the selected question set matches to configured question set the evalauble eval will be set to true otherwise false { mode: ‘server' } otherwise { mode: 'client’ } in node update api.
d. Override the evaluation feature using evaluation mode field by choosing client or server.
Reference Commitbranch:
https://github.com/sohailamjad12/editor/commit/2d763b5e4dfc98c85ec2d25527265e259c0a85d4tree/upsmf-collection-editor
sunbird setup Editor:
https://inquiry.sunbird.org/use/developer-installation/question-set-editor
Player:
questionSetEvaluable
field differentiates between server or client evaluation in quml player code. From questionset hierarchy api and list api consists below object that decides evaluation should happen at server or client.
...
5. If mode is server, score should not be shown in end page of the quml player.
Example: https://inquiry.sunbird.org/use/developer-installation/question-set-player