Exercises: add success score
After a first usability work of HEAJ/ESIAJ, it appears the exercises tool could use a "minimum success score" data that would allow us to show the interface of the exercises results in a way that tells the user whether he succeeded or not.
Add a field "success_pct" in the "quiz" table, and add this field in the exercise creation and exercise edition screens.
It should be a percentage because this way it also allows for a success score on exercises that have a random number of questions.
The field should be optional, and if not defined, it should use the NULL value in the table.On the exercise_result screen, if a success_pct is defined:
- if the user reached it, show a line that says "Congratulations, you passed the test"
- if the user didn't reach it, show a line that says "You didn't reach the minimum score, sorry"
This indication should be both on top and at the bottom of the results list, so the user knows immediately whether he passed or failed.
Get some inspiration from this design, between others, you can re-use the colouring idea for each question (mark it green if all answers were right, red if no answer was right, grey if some were right and some other not)
In the future (or directly if you feel like it) it might be good to add a success_score for each question, so that we can base the colouring on this score (shouldn't be a percentage in this case as we know what the minimum should be with precision) and auto-fill it with 50% of the total score of all positive answers.
Updated by Julio Montoya over 7 years ago
- Status changed from Assigned to Needs more info
- Assignee deleted (
- % Done changed from 0 to 30
I added the new field pass_percentage in the exercise.
I can't do this for the moment:
"This indication should be both on top and at the bottom of the results list, so the user knows immediately whether he passed or failed"
It will require some "core" changes in the tool in order to achieve this. Let me know if you want really want this.
The message will be show even if we add the exercise in the LP (not sure about these).
Lang variables were added in translate.chamilo
Updated by Yannick Warnier over 7 years ago
- Status changed from Assigned to New
- Assignee deleted (
- Target version changed from 1.9 Beta to 1.9.2
- % Done changed from 70 to 50
It's OK for now. I still want to implement this feature (the message on top of the exercise) in the future, so I'm moving it to 1.9.1, but reducing the progress a little bit (don't be sad :p)
Updated by Yannick Warnier about 7 years ago
- Status changed from Needs more info to Assigned
- Assignee changed from Yannick Warnier to Yoselyn Castillo
- % Done changed from 80 to 70
When you pick the "Exam" mode (do not show score, do not show feedback), the score information appears twice, one below the other (without anything in-between). In this case (where nothing appears in the middle), it should not show the 2nd score bar.
Once this is taken care of, just screenshot to demonstrate and close the task.