-
Notifications
You must be signed in to change notification settings - Fork 60
Problem Builder: Add instance-wide option to hide previous answers for MCQs #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
blocks works in both Apros and the LMS.
| var steps = runtime.children(element).filter(function(c) { return c.element.className.indexOf('assessment_step_view') > -1; }); | ||
| var steps = runtime.children(element).filter(function(c) { | ||
| return $(c.element).attr("class").indexOf('assessment_step_view') > -1; | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case you're wondering why you had to make this change: https://openedx.atlassian.net/browse/TNL-4161
I believe the earlier version is "better" but it doesn't work with the latest edx-platform master. The new version you have here should always work, so we may as well keep this change.
|
@itsjeyd Just a couple of comments. |
1b1728e to
d2397fb
Compare
|
👍 Though please squash at least some of the commits first. |
MCQs are shown when users revisit them.
- Fix existing tests. - Add unit tests for code that deals with instance-wide options. - Add integration test for scenario where previous answers for MCQs are configured to be hidden.
- Refactor: Take advantage of mixins from xblock-utils accessing xblock settings.
d2397fb to
b17c0ee
Compare
|
@Kelketek Thanks, done. |
Problem Builder: Add instance-wide option to hide previous answers for MCQs
| @@ -63,6 +64,10 @@ | |||
| 'locations': ['public/themes/lms.css'] | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@itsjeyd Is this _default_theme_config being used? Looks to me like with ThemableXBlockMixin you need to define default_theme_config as an attribute on the class instead.
This PR introduces an instance-wide option to hide previous answers (and feedback) for MCQs in Problem Builder. When this option is enabled, students will still receive per-question feedback after providing answers to MCQs and submitting the containing block, but that feedback will not be visible when they return to the block, and all choices for a given MCQ will be unchecked.
cf. MCKIN-3861
Screenshots: LMS
Default settings:
Previous answers hidden:
Screenshots: Apros
Default settings:
Previous answers hidden:
Test instructions
Create a subsection with two units and add a Problem Builder block to each one.
Add a long answer, MCQ, Rating, MRQ, and Slider to one of the Problem Builder blocks.
Publish the units.
In LMS/Apros, provide answers to all questions and click "Submit".
Navigate to the other unit, then come back to the first unit. Observe that Problem Builder shows previous answers and feedback for all questions.
In
lms.env.json, enable the new option by modifying theXBLOCK_SETTINGSformentoring:Restart LMS/Apros and reload the page showing the first unit. Observe that Problem Builder does not show previous answers and feedback for MCQs.