Validation results refactoring: centralize results for different reused origins, use _pydantic_errors_to_validation_results more#1176
Validation results refactoring: centralize results for different reused origins, use _pydantic_errors_to_validation_results more#1176yarikoptic wants to merge 3 commits intomasterfrom
Conversation
…g the same origins all over again
…on, pass dandiset_path to those
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1176 +/- ##
==========================================
- Coverage 89.15% 89.15% -0.01%
==========================================
Files 76 76
Lines 9510 9518 +8
==========================================
+ Hits 8479 8486 +7
- Misses 1031 1032 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
jwodder
left a comment
There was a problem hiding this comment.
Shouldn't this PR be labelled "internal" instead of "patch"? None of these changes appear to be externally visible.
There was a problem hiding this comment.
Looks good to me (in addition to #1176 (comment) ). The partial() definitions are pretty convenient. As for tests not hitting those two lines, I guess the “problem” is that nothing in our test suite is triggering those exceptions. This looks more like failsafe code, in case something that should never break by some coincidence does 🤔 not exactly sure how to make it break without breaking in other places before.
my thinking was "because it changes visible to user results" due to " use _pydantic_errors_to_validation_results more". but indeed, I guess, could just be |
hm, shouldn't that |
Co-authored-by: John T. Wodder II <jwodder@users.noreply.github.com>
a2c9ba6 to
d8e0558
Compare
|
ok, suggestions incorporated, issue filed, this is green -- let's proceed |
|
I think it might have been closed in error. Should be redone. |
|
too many conflicts and will be superseded by |
See individual commits messages for more information.
Please check (especially @TheChymera ) if my use of
_pydantic_errors_to_validation_resultsis correct -- I am not sure any test is hitting that code path at all - can someone come up with a unittest to hit it?