-
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: default display of "Show Answer" and "Show reset option" #403
Conversation
Thanks for the pull request, @DmytroAlipov! 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. |
b12cc88
to
ea37da9
Compare
@DmytroAlipov seeing some linting failures. |
ea37da9
to
0cf586c
Compare
@e0d I have fixed the linting issues. Although my changes only addressed one error, the other errors were related to the code written before me. It's strange that the checks passed previously. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #403 +/- ##
=======================================
Coverage 90.50% 90.51%
=======================================
Files 227 227
Lines 4108 4110 +2
Branches 823 825 +2
=======================================
+ Hits 3718 3720 +2
Misses 369 369
Partials 21 21 ☔ View full report in Codecov by Sentry. |
Hi @openedx/teaching-and-learning! This is ready for review :) |
@DmytroAlipov Can you resolve the branch conflicts so I can merge the PR? |
Hardcoding values for showAnswer and showResetButton in initialState leads to incorrect selection of additional states specified in Advanced settings.
0cf586c
to
3f8e6e3
Compare
@KristinAoki done 😉 |
@DmytroAlipov 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Description:
I created the issue.
Hardcoding values for showAnswer and showResetButton in initialState leads to incorrect selection of additional states specified in Advanced settings.
Advanced Settings:
Editor Page:
But the inscription
Default
is correctly attributed:If you save without changing anything, the value of the
Show answer
field for the course will be set toFinished
(although the default is “closed”, we didn’t change anything in the selection). And this problem is not only with this field. The same behavior for theShow reset option
field.The problem is that the state is being used (frontend-lib-content-components/src/editors/data/redux/problem/reducers.js):
For
Show reset option
: