Skip to content

feat: add reset option to the Randomized Content Block - #28624

Closed
tinuademargaret wants to merge 3 commits into
openedx:masterfrom
open-craft:tinumide/add_reset_to_randomized_content_block
Closed

feat: add reset option to the Randomized Content Block#28624
tinuademargaret wants to merge 3 commits into
openedx:masterfrom
open-craft:tinumide/add_reset_to_randomized_content_block

Conversation

@tinuademargaret

@tinuademargaret tinuademargaret commented Sep 1, 2021

Copy link
Copy Markdown
Contributor

Description

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

BB-4659

A video showing this feature.

Testing instructions

  • Check out to this branch tinumide/add_reset_to_randomized_content_block on edx-platform.
  • In Studio, create a randomized content block and set the Show Reset Button option to True.
  • View the live version of the new block and click on the Reset Problems button on the bottom left part of the Randomized Content Block.
  • Verify that the page is reloaded, answers are reset and the questions are changed.

@openedx-webhooks

openedx-webhooks commented Sep 1, 2021

Copy link
Copy Markdown

Thanks for the pull request, @tinumide! I've created OSPR-6013 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:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

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.

⚠️ We can't start reviewing your pull request until you've submitted a signed contributor agreement or indicated your institutional affiliation. Please see the CONTRIBUTING file for more information. If you've signed an agreement in the past, you may need to re-sign. See The New Home of the Open edX Codebase for details.

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. labels Sep 1, 2021
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
@tinuademargaret
tinuademargaret requested a review from a team September 6, 2021 02:15
@natabene

natabene commented Sep 7, 2021

Copy link
Copy Markdown
Contributor

@tinumide Thank you for your contribution. Let me kick the checks off.

@tinuademargaret tinuademargaret changed the title WIP: BB-4659 Add reset option to the randomized content block BB-4659 Add reset option to the randomized content block Sep 7, 2021
@openedx-webhooks openedx-webhooks added needs triage and removed waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. labels Sep 7, 2021
@natabene natabene added waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. and removed needs triage labels Sep 8, 2021
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/css/capa/display.scss Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread lms/templates/vert_module.html Outdated
@tinuademargaret
tinuademargaret force-pushed the tinumide/add_reset_to_randomized_content_block branch 2 times, most recently from a1003e2 to 46252f8 Compare September 15, 2021 00:56
Comment thread common/lib/xmodule/xmodule/css/capa/display.scss Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/tests/test_library_content.py Outdated
Comment thread lms/static/sass/course/courseware/_courseware.scss Outdated
Comment thread lms/static/sass/course/courseware/_courseware.scss Outdated
Comment thread lms/static/sass/course/courseware/_courseware.scss Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated

@Agrendalath Agrendalath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tinumide, I see that many of these comments are still not addressed.
Edit: ok, I'm seeing them now. That's odd.

Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/tests/test_library_content.py Outdated
Comment thread common/lib/xmodule/xmodule/tests/test_library_content.py Outdated
Comment thread cms/djangoapps/contentstore/tests/test_libraries.py Outdated
Comment thread common/lib/xmodule/xmodule/tests/test_library_content.py Outdated
Comment thread common/lib/xmodule/xmodule/tests/test_library_content.py Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/tests/test_library_content.py Outdated
Comment thread lms/static/sass/course/courseware/_courseware.scss Outdated
Comment thread lms/static/sass/course/courseware/_courseware.scss Outdated
Comment thread lms/templates/vert_module.html Outdated
Comment thread common/lib/xmodule/xmodule/tests/test_library_content.py Outdated

@Agrendalath Agrendalath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tinumide, please address the remaining comment and squash the commits into one with a meaningful description.

👍

  • I tested this: tested that it's possible to reset and reshuffle selected children of the RCB
  • 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-secure repository: n/a

Comment thread lms/static/sass/course/courseware/_courseware.scss Outdated
@tinuademargaret
tinuademargaret force-pushed the tinumide/add_reset_to_randomized_content_block branch 2 times, most recently from 58273b8 to a93a031 Compare October 6, 2021 20:49
@Agrendalath

Copy link
Copy Markdown
Member

@giovannicimolin, can we add this to the OSPR list? It might need a product review.
cc: @natabene

@giovannicimolin

Copy link
Copy Markdown
Contributor

@Agrendalath Done, I've added this to the OSPR list.

@tinuademargaret
tinuademargaret force-pushed the tinumide/add_reset_to_randomized_content_block branch from 6426866 to f33bdbb Compare October 18, 2021 12:54

@Agrendalath Agrendalath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tinumide, we need these two small changes. Please squash commits after addressing them and rebase this on the master branch to ensure that the CI works correctly.

Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
Comment thread common/lib/xmodule/xmodule/library_content_module.py Outdated
@tinuademargaret
tinuademargaret force-pushed the tinumide/add_reset_to_randomized_content_block branch 2 times, most recently from f01cbcc to 6aa10e9 Compare October 20, 2021 11:00
@openedx-webhooks openedx-webhooks added product review PR requires product review before merging and removed waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. labels Oct 28, 2021
@Agrendalath
Agrendalath force-pushed the tinumide/add_reset_to_randomized_content_block branch from 5a01e8b to 5e88115 Compare October 28, 2021 13:01
@Agrendalath Agrendalath changed the title BB-4659 Add reset option to the randomized content block feat: add reset option to the Randomized Content Block Oct 28, 2021
@edx-status-bot

Copy link
Copy Markdown

Your PR has finished running tests. There were no failures.

tinumide and others added 3 commits January 6, 2022 17:21
This adds a reset option to a Randomized Content Block (LibraryContentBlock)
to allow an OpenEdx user to reset questions in a Randomized Content Block.
This is achieved by adding a `Reset Problems` button to the UI of a vertical
with randomized content, and a reset handler to process the request.
@Agrendalath
Agrendalath force-pushed the tinumide/add_reset_to_randomized_content_block branch from 35c9244 to 4626db5 Compare January 6, 2022 16:28
@natabene

natabene commented Jan 6, 2022

Copy link
Copy Markdown
Contributor

@tinumide Can you please sign https://openedx.org/cla? Without it we, unfortunately, cannot review and merge your code.

@Agrendalath

Copy link
Copy Markdown
Member

@natabene, Tinuade is no longer working with OpenCraft. We will recreate this PR and link it for reference.

@natabene

Copy link
Copy Markdown
Contributor

@Agrendalath I see, thanks for clarifying. Do you want me to close this PR?

@Agrendalath

Copy link
Copy Markdown
Member

Closing, as we've replaced this with #29728.

cc: @natabene

@openedx-webhooks openedx-webhooks added rejected and removed product review PR requires product review before merging community manager review labels Jan 10, 2022
@openedx-webhooks

Copy link
Copy Markdown

@tinumide Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future.

@Agrendalath
Agrendalath deleted the tinumide/add_reset_to_randomized_content_block branch January 10, 2022 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U rejected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants