Uh oh!
There was an error while loading. Please reload this page.
Validation error errors | ResourcePanel & DetailsTabView - #2328
Conversation
Codecov Report
@@ Coverage Diff @@## develop #2328 +/- ##
===========================================
- Coverage 82.65% 82.61% -0.05%
===========================================
Files 298 298 Lines 14708 14717 +9 ===========================================
+ Hits 12157 12158 +1 - Misses 2551 2559 +8
Continue to review full report at Codecov.
|
3028133 to
fc50463CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
5bd7cd4 to
c69f4d3CompareUh oh!
There was an error while loading. Please reload this page.
MisRob
commented
Oct 16, 2020
@nucleogenesis Thank you. I've left one more note. Also, it seems that we can't close all linked issues. I am going to do some validation updates soon, as mentioned in our conversations here. Before closing this PR, could you please update issues to reflect what you've found out or close issues that can't be replicated? |
Also check for `isExercise` in a question validation
… we just determine whether we should validate in the first place
3623446 to
250b257Compare27f1064 to
250b257Compare
micahscopes
left a comment
There was a problem hiding this comment.
It's working now 🥳
Thanks @jayoshih for catching this!
Description
Some validation fixes:
license_descriptionwas showing because logic didn't account for whether the selected license wasis_customor not.!they didn't need in their validation logic.isExerciseon a question-related validatorisNodeCompleterather thannode.completein the ContentNodeValidator component.Issue Addressed (if applicable)
Fixes#2314
Fixes#2334
Steps to Test
ResourcePanel:
Edit a node so that things are invalid and save the node, go back to the node listing page and select the node again to see that the proper error messages are shown and that there is a red
(!)on the item. Try all validated fieldscopyright_holderlicenseand - when you select the "Special Permissions" license, thelicense_descriptionfield and then finally the "Visible to" field.Details Tab View (Editing the Node Page):
I really couldn't replicate here (surprisingly because I definitely did during or before the bug bash). If you can give a reliable way to break validations here please let me know and I'll address them in this PR quickly.
Does this introduce any tech-debt items?
@MisRob the move to "isNodeComplete" in ContentNodeValidator was done because a node where
node.complete ==> falsebutisNodeComplete(node) ==> true. I'm thinking that some part of #2281 may not work as expected in this regard? I'd be happy to address this issue in a follow up PR.