The JSONs containing the questions/scores now have two extra fields:
Each question has a flag scoring_question. If this is false, the question should not be taken into account for the final scoring, so the variable counting the number of questions answered by the user (I think it was n) should not be incremented in this case.
Each answer option has a flag error_message. This is blank for most options, but if one or more algorithms score -1 on that answer, the message should be displayed. As an example, if "ISO" is checked at the standardisation question, the error message "You indicated you follow standardisation. ISO has not selected BIKE and HQC for standardisation, so they are not displayed as an option." should be displayed on the results page according to the JSON and these algorithms (BIKE and HQC) should not be shown in the scoring overview.
This logic should be added before this PR can be merged.
The JSONs containing the questions/scores now have two extra fields:
scoring_question
. If this is false, the question should not be taken into account for the final scoring, so the variable counting the number of questions answered by the user (I think it wasn
) should not be incremented in this case.error_message
. This is blank for most options, but if one or more algorithms score -1 on that answer, the message should be displayed. As an example, if "ISO" is checked at the standardisation question, the error message "You indicated you follow standardisation. ISO has not selected BIKE and HQC for standardisation, so they are not displayed as an option." should be displayed on the results page according to the JSON and these algorithms (BIKE and HQC) should not be shown in the scoring overview.This logic should be added before this PR can be merged.