-
Notifications
You must be signed in to change notification settings - Fork 196
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: add empty rubric validation #2173
fix: add empty rubric validation #2173
Conversation
Thanks for the pull request, @dyudyunov! 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. |
I created a new branch based on the master and applied Taras' fixes. I have the gettext version
I use the |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2173 +/- ##
=======================================
Coverage 94.94% 94.95%
=======================================
Files 191 191
Lines 20666 20675 +9
Branches 1878 1879 +1
=======================================
+ Hits 19622 19631 +9
Misses 780 780
Partials 264 264
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
528380b
to
2f80b93
Compare
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.
Thank you for resubmitting this change @dyudyunov ! It works great.
I'll merge this now in case you need to submit version bump PRs to edx-platform before they cut quince.2 tonight.
Here are some notes about translations (unresolved in the old PR).
Your translation changes on this PR look fine -- you've resolved the linebreaks that were in the previous diff, that's all I needed.
- I tested this on my devstack:
- Added a new ORA2 component to my test course
- Removed all "prompts" from the component and tried to Save:
Got the new error as expected: "You must provide at least one prompt." - Added a new prompt, and Saved without error.
- I read through the code
- I checked for accessibility issues by using my keyboard only during testing
-
Includes documentationN/A - User-facing strings are extracted for translation
@dyudyunov 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
I think the difference is that Taras ran those commands from the host machine (I was able to reproduce something very similar this way) instead of running them in the LMS container with ORA installed from the local dir. |
TL;DR - Add a validation to forbid saving ORA response with an empty prompt to avoid errors.
This PR reopens #2092
Developer Checklist
Testing Instructions
Reviewer Checklist
Collectively, these should be completed by reviewers of this PR:
FYI: @openedx/content-aurora