-
Notifications
You must be signed in to change notification settings - Fork 28
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
Validation results refactoring: centralize results for different reused origins, use _pydantic_errors_to_validation_results more #1176
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. |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
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_results
is correct -- I am not sure any test is hitting that code path at all - can someone come up with a unittest to hit it?