Fg/featExploration ORA student reset assessment #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR is created in order to include a new feature that allows student to retry assessment for a configurable time period.
Changes
CMS
In this section, I will describe the workflow I went through to add a configuration variable in the ORA edit for the CMS.
Set the following JS files in order to pass those context variables to backend:
Set the following *.py backend scripts in order to store the context variables:
LMS
Added the optional 'retry' button rendering to the following templates:
Create the function retry_assessment_enable, witch is capable of determinate if the 'retry' button has to be showed to the student:
Connect the 'retry' button with the platform function reset_student_attempts()
.JS
.PY
Testing
In order to test this feature, you have to go to the CMS site, create an ORA unit and click on edit.
Then go to settings, and set the Assessment Retry Max Time minutes and hours.
with the time set, you can go to the ORA assessment and verify the 'retry' button render.
After that, you can reset the assessment like this:
Test Cases
Assessment Retry Max Time
ORA Steps