Skip to content

Default course: Update feedback format #3765

Description

@swashbuck

Subject of the issue

The default course uses the older style of _feedback configuration. This should be updated to match the newer expanded format introduced in Core 6.20.5 / FW 5.22.8.

‼️ IMPORTANT: The related PR should not be merged until the question schemas/migration scripts have been updated to reflect the new feedback format.

Old format:

"_feedback": {
"title": "Feedback",
"altTitle": "",
"correct": "Correct feedback text.<br><br>That’s correct. The first large assessment to consist solely of the multiple choice question type was the Army Alpha test, used from <strong>1917</strong> to evaluate U.S. military recruits in the First World War.<br><br>Source: <a href='http://en.wikipedia.org/wiki/Multiple_choice' target='_blank'>Wikipedia</a><br><br><i>Component facts: <b>Multiple Choice Questions (or MCQs)</b> are a tried and tested method for presenting learners with a simple text-based question. Component is either single or spanned.</i>",
"_incorrect": {
"notFinal": "",
"final": "Incorrect feedback text.<br><br>That’s not right. The first large assessment to consist solely of the multiple choice question type was the Army Alpha test, used from <strong>1917</strong> to evaluate U.S. military recruits in the First World War.<br><br>Source: <a href='http://en.wikipedia.org/wiki/Multiple_choice' target='_blank'>Wikipedia</a><br><br><i>Component facts: <b>Multiple Choice Questions (or MCQs)</b> are a tried and tested method for presenting learners with a simple text-based question. Component is either single or spanned.</i>"
},
"_partlyCorrect": {
"notFinal": "",
"final": ""
}
},
"_pageLevelProgress": {

Newer format:
PR: adaptlearning/adapt-contrib-core#223

At _feedback._correct, _feedback._partlyCorrectNotFinal, _feedback._partlyCorrectFinal, _feedback._incorrectNotFinal, _feedback._incorrectFinal and for _items[].feedback

Use the object:

{
  "altTitle": "",
  "title": "",
  "body": "",
  "_classes": "",
  "_imageAlignment": "left",
  "_graphic": {
    "_src": "",
    "alt": "",
    "attribution": ""
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions