feat: add reset option to the Randomized Content Block - #29728
Conversation
|
Thanks for the pull request, @tecoholic! I've created OSPR-6366 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
|
@tecoholic Thank you for your contribution. Please let me know once this is ready for our review. |
8c4804d to
89cb0a6
Compare
89cb0a6 to
3b4f13c
Compare
Agrendalath
left a comment
There was a problem hiding this comment.
👍
- I tested this: tested the RCB reset feature locally
- I read through the code
- I checked for accessibility issues: n/a
- Includes documentation: n/a
- I made sure any change in configuration variables is reflected in the corresponding client's
configuration-securerepository: n/a
|
@natabene, this is ready for your review. |
3b4f13c to
a3fa13f
Compare
a3fa13f to
c473b41
Compare
ed511c6 to
e4b04c0
Compare
This makes the reset button to refresh the contents of a Randomized Content Block (RCB) without reloading the full page by fetching a new set of problems in the "reset" response and replacing the DOM contents. The reset button returns the student view as a string and the client uses the HtmlUtils package to replace the contents and reinitializes the XBlock. This allows students to use the RCB as a flash card system. Co-authored-by: tinumide <tinuade@opencraft.com>
e4b04c0 to
2b39da6
Compare
|
@natabene, just checking on this PR. |
|
@tecoholic Sorry, no news yet. |
|
I confirmed the default value of this feature is "False" so it should not impact existing nor newly created libraries unless they desire to activate this button. |
|
@tecoholic 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
Yay! :) |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
1 similar comment
|
EdX Release Notice: This PR has been deployed to the production environment. |
Description
This PR supersedes the previous one at #28624
This adds a reset option to the randomized content block. This way students can prepare themselves for exams by answering a series of questions at random from a pre-determined set (something similar to flashcards).
We have been doing it with Python scripts within the CAPA blocks - questions and answers were included directly in the script and the reset button was changing the seed used for determining the question set. This PR introduces a similar functionality by using built-in Open edX features, thus making it more user-friendly and available for less technical course authoring teams.
Supporting information
Testing instructions
tecoholic/add_reset_to_randomized_content_blockonedx-platform.Show Reset Buttonoption toTrue.Reset Problemsbutton on the bottom left part of the Randomized Content Block.Deadline
None
Other information
This feature is created with the use-case of using the Randomized Content Block as a Flash Card system for students to cycle through a prepared set of questions/problems.