Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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 local setup Editor:

https://inquiry.sunbird.org/use/developer-installation/question-set-editor

Player:

  1. 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.

...

questionSetToken: "eyJrZXlJZCI6ImRldmljZTAiLCJ0eXBlIjoiand0IiwiYWxnIjoiUlMyNTYifQ.eyJkYXRhIjoie1wiY29udGVudElEXCI6XCJkb18xMTM4MzExNjgyMTEwODMyNjQxMTcxXCIsXCJldmFsLW1vZGVcIjpcInNlcnZlclwiLFwiY29sbGVjdGlvbklEXCI6XCJkb18xMTM4MzExNzgyNTMwODI2MjQxMTczXCIsXCJ1c2VySURcIjpcImJiNDdmMTliLTE1ZTQtNGVmYS05NzA5LWIwNjFmYzA2MGY4YVwiLFwicXVlc3Rpb25MaXN0XCI6XCJkb18xMTM4MzExNzA0ODIwNTMxMjAxMTgxLGRvXzExMzgxOTIyNjY3MTcyNjU5MjEzMjUsZG9fMTEzODEyMjExODUxMTQxMTIwMTQ4LGRvXzExMzgxNDA2MTgxNTU0NTg1NjE2OVwiLFwiYXR0ZW1wdElEXCI6XCJmZDU3Y2M0NjVkNmExOTkzMjNlMGNkNzZiODE2NjdlNFwifSIsImlhdCI6MTY4ODM3ODYyM30.YppB3lrH_DUZU0vM7QXMeQpccPFcLa9woW68H_LU6n1vQuo5O3V-a0kLh2U7nX0auIMSsZkjJyYC8ZxI9TidjsxNa2O7z0a6yrOYz4rqdW1cxRSjMe0gyrOHDlU9rnivGvZgQl7k8MKp_-Pt8a38_ZybR9eQ1YZVO-wSS4BwfpJDWjrPmHvtCsW1_91SXQSj7xMQYOBC9JXBQu1a8uBYxVlNvdNtnzRzZLTglOdr8iNn9adNWwddVUU8sbKLR440umhPmLfP6DS-angDR4FSYo3Th-lMSzUqDYP6xQlB37Y9GY0PdpbvYKre6gbOW1O1sSgz_KsbR9c_EAXA-WznPg"

serverEvaluable: true

5. If mode is server, score should not be shown in end page of the quml player.

Localsetup: https://inquiry.sunbird.org/use/developer-installation/question-set-player