-
Notifications
You must be signed in to change notification settings - Fork 80
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: incorrect field validation on the grading page #919
fix: incorrect field validation on the grading page #919
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. |
adbc8ec
to
db5839a
Compare
db5839a
to
cccc106
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #919 +/- ##
==========================================
+ Coverage 91.93% 92.01% +0.08%
==========================================
Files 572 572
Lines 10166 10175 +9
Branches 2199 2204 +5
==========================================
+ Hits 9346 9363 +17
+ Misses 793 787 -6
+ Partials 27 25 -2 ☔ 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.
Thanks for these fixes! Everything works super well.
Would you mind just adding a tiny test that checks that droppable number will trigger an error if it's larger than total number? also, if I'm just blind and the test is there somewhere, please just correct me.
I just want to make sure there's no regression bug later.
Thanks for this and once that test is there I'll approve
Hi, @jesperhodge
|
Hi @DmytroAlipov , sorry for your troubles there! This was a tricky one. Apparently the problem is that the test mocks out the Now instead of changing the mocking, I'd do a simpler fix to get the test to work. Just do the following, that works:
This may not check which error message is displayed, but that's not very important, the test demonstrates that there is an error, so that's good enough. |
6a28e02
to
594e0e3
Compare
594e0e3
to
de73dd1
Compare
@jesperhodge Thank you very much for your help! |
Hi @PKulkoRaccoonGang. Could you help me correct this test? |
@DmytroAlipov 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. |
I closed this PR because a new one was opened to fix this bug. |
Description
space
forAssignment type name
Number of droppable
field with values more than theTotal number
value which leads to displaying errors all the timeWeight of total grade
field with empty values:Implemented so that when an error occurs, the modal window containing the
Save changes
button is not displayed:Fixed display of errors for the Number of droppable field: