Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel7

...

Question metadata which has some differences from the QuML specs are:-

  • responseDeclaration

  • media

responseDeclaration

Currently, the response declaration is stored in the below format but there are two properties that are not allowed in it, which are: maxScore and  outcomes

...

  • The player will check if the question is having the outcomeVariables in the metadata of the question and what’s the maxScore value present in it.

  • if the outcomeVariables property is found then the player will use it as is it.

  • If the question does not have the outcomeVariables property in the metadata then the player will look property in the responseDeclartion.

media

Currently, Question metadata contains media in the below format:

...

Code Block
"media": [{
   "id": "do_2136952965043896321346",
   "mediaType": "image",
   "src": "/assets/public/content/assets/do_2136952965043896321346/mountain.jpeg",
   "baseUrl": "https://dev.inquiry.sunbird.org"
}]

Proposed Solution for responseDeclaration

Editor Changes:
  • With migration

    • We can do the data migration for the old questions and update the question with the above-mentioned format.

  • Without migration

    • For the new question creation, we will store the media in a new format.

    • If the user edits the old question, we will check if the type is present in the media object, convert it to mediaType while editing the question.

...

QuestionSet metadata which has some differences from the QuML specs is:-

  • timeLimits

timeLimits

Time limits are currently being stored in the question set metadata as below:

...