-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUGFIX] Validation Definition factory add_or_update doesnt allow updating batch definition #10960
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for niobium-lead-7998 canceled.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## develop #10960 +/- ##
===========================================
- Coverage 80.84% 80.84% -0.01%
===========================================
Files 471 471
Lines 40790 40791 +1
===========================================
Hits 32976 32976
- Misses 7814 7815 +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.
Looks totally legit, but I think this should have an accompanying test. LMK if that's prohibitively difficult
ValidationDefinitionFactory.add_or_update
overwrites the ID of the incoming batch definition with the ID of the existing batch definition, and then callsBatchDefinition.save
. This is ok if the BatchDefinition belongs to the same data source, but in the case that it does not, this errors unexpectedly.This PR updates the
ValidationDefinitionFactory
to use the ID of the new batch definition, if one is available.