-
Notifications
You must be signed in to change notification settings - Fork 33
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
fix: switch to advanced editor for partial credit support #386
Conversation
This commit reverts to advanced editor when partial_credit attribute is added to multichoice, single select and numerical problems. Without this change, the partial_credit attribute is removed from the problem on the next edit.
Thanks for the pull request, @navinkarkera! 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. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #386 +/- ##
==========================================
+ Coverage 90.58% 90.59% +0.01%
==========================================
Files 230 230
Lines 4109 4116 +7
Branches 824 826 +2
==========================================
+ Hits 3722 3729 +7
Misses 366 366
Partials 21 21
☔ View full report in Codecov by Sentry. |
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.
@navinkarkera 👍 LGTM. In the testing instructions, did you mean to mention new_core_editors.use_new_problem_editor
waffle flag instead of new_core_editors.use_new_text_editor
? Because, I kept getting confused why changing that flag isn't doing anything and I kept loading the CMS editor for the Advanced problem.
- I tested this: Tested that with this change the advanced editor is always launched when partial credits are in the problems.
- I read through the code
- I checked for accessibility issues - NA
- Includes documentation
@tecoholic Sorry, I meant |
@navinkarkera Ah. That makes sense. I added all the 3 flags mentioned in the docs for good measure after the |
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.
ok
@navinkarkera 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
This commit reverts to advanced editor when partial_credit attribute is added to multichoice, single select and numerical problems. Without this change, the partial_credit attribute is removed from the problem on the next edit.
Test instructions:
new_core_editors.use_new_text_editor
waffle flag.partial_credit
attribute from the component.make build
.partial_credit="EDC"
back to the problem and save.single select
andnumerical problems
as mentioned in the documentation here.